Documentation ¶
Overview ¶
Package storage provides access to the Cloud Storage JSON API.
This package is DEPRECATED. Use package cloud.google.com/go/storage instead.
For product documentation, see: https://developers.google.com/storage/docs/json_api/
Creating a client ¶
Usage example:
import "google.golang.org/api/storage/v1beta2" ... ctx := context.Background() storageService, err := storage.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://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, use option.WithScopes:
storageService, err := storage.NewService(ctx, option.WithScopes(storage.DevstorageReadWriteScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
storageService, err := storage.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) storageService, err := storage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type Bucket
- type BucketAccessControl
- type BucketAccessControls
- type BucketAccessControlsDeleteCall
- func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccessControlsDeleteCall
- func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *BucketAccessControlsDeleteCall) Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall
- func (c *BucketAccessControlsDeleteCall) Header() http.Header
- type BucketAccessControlsGetCall
- func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessControlsGetCall
- func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
- func (c *BucketAccessControlsGetCall) Fields(s ...googleapi.Field) *BucketAccessControlsGetCall
- func (c *BucketAccessControlsGetCall) Header() http.Header
- func (c *BucketAccessControlsGetCall) IfNoneMatch(entityTag string) *BucketAccessControlsGetCall
- type BucketAccessControlsInsertCall
- func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccessControlsInsertCall
- func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
- func (c *BucketAccessControlsInsertCall) Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall
- func (c *BucketAccessControlsInsertCall) Header() http.Header
- type BucketAccessControlsListCall
- func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccessControlsListCall
- func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*BucketAccessControls, error)
- func (c *BucketAccessControlsListCall) Fields(s ...googleapi.Field) *BucketAccessControlsListCall
- func (c *BucketAccessControlsListCall) Header() http.Header
- func (c *BucketAccessControlsListCall) IfNoneMatch(entityTag string) *BucketAccessControlsListCall
- type BucketAccessControlsPatchCall
- func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccessControlsPatchCall
- func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
- func (c *BucketAccessControlsPatchCall) Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall
- func (c *BucketAccessControlsPatchCall) Header() http.Header
- type BucketAccessControlsService
- func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall
- func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall
- func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall
- func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall
- func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall
- func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall
- type BucketAccessControlsUpdateCall
- func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccessControlsUpdateCall
- func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
- func (c *BucketAccessControlsUpdateCall) Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall
- func (c *BucketAccessControlsUpdateCall) Header() http.Header
- type BucketCors
- type BucketLifecycle
- type BucketLifecycleRule
- type BucketLifecycleRuleAction
- type BucketLifecycleRuleCondition
- type BucketLogging
- type BucketOwner
- type BucketVersioning
- type BucketWebsite
- type Buckets
- type BucketsDeleteCall
- func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall
- func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *BucketsDeleteCall) Fields(s ...googleapi.Field) *BucketsDeleteCall
- func (c *BucketsDeleteCall) Header() http.Header
- func (c *BucketsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsDeleteCall
- func (c *BucketsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsDeleteCall
- type BucketsGetCall
- func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall
- func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall
- func (c *BucketsGetCall) Header() http.Header
- func (c *BucketsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsGetCall
- func (c *BucketsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsGetCall
- func (c *BucketsGetCall) IfNoneMatch(entityTag string) *BucketsGetCall
- func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall
- type BucketsInsertCall
- func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall
- func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *BucketsInsertCall) Fields(s ...googleapi.Field) *BucketsInsertCall
- func (c *BucketsInsertCall) Header() http.Header
- func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall
- type BucketsListCall
- func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall
- func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error)
- func (c *BucketsListCall) Fields(s ...googleapi.Field) *BucketsListCall
- func (c *BucketsListCall) Header() http.Header
- func (c *BucketsListCall) IfNoneMatch(entityTag string) *BucketsListCall
- func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall
- func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall
- func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) error
- func (c *BucketsListCall) Projection(projection string) *BucketsListCall
- type BucketsPatchCall
- func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall
- func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *BucketsPatchCall) Fields(s ...googleapi.Field) *BucketsPatchCall
- func (c *BucketsPatchCall) Header() http.Header
- func (c *BucketsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsPatchCall
- func (c *BucketsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsPatchCall
- func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall
- type BucketsService
- func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall
- func (r *BucketsService) Get(bucket string) *BucketsGetCall
- func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsertCall
- func (r *BucketsService) List(projectid string) *BucketsListCall
- func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall
- func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall
- type BucketsUpdateCall
- func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall
- func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
- func (c *BucketsUpdateCall) Fields(s ...googleapi.Field) *BucketsUpdateCall
- func (c *BucketsUpdateCall) Header() http.Header
- func (c *BucketsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsUpdateCall
- func (c *BucketsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsUpdateCall
- func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall
- type Channel
- type ChannelsService
- type ChannelsStopCall
- type ComposeRequest
- type ComposeRequestSourceObjects
- type ComposeRequestSourceObjectsObjectPreconditions
- type DefaultObjectAccessControlsDeleteCall
- func (c *DefaultObjectAccessControlsDeleteCall) Context(ctx context.Context) *DefaultObjectAccessControlsDeleteCall
- func (c *DefaultObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *DefaultObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsDeleteCall
- func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header
- type DefaultObjectAccessControlsGetCall
- func (c *DefaultObjectAccessControlsGetCall) Context(ctx context.Context) *DefaultObjectAccessControlsGetCall
- func (c *DefaultObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *DefaultObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsGetCall
- func (c *DefaultObjectAccessControlsGetCall) Header() http.Header
- func (c *DefaultObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsGetCall
- type DefaultObjectAccessControlsInsertCall
- func (c *DefaultObjectAccessControlsInsertCall) Context(ctx context.Context) *DefaultObjectAccessControlsInsertCall
- func (c *DefaultObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *DefaultObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsInsertCall
- func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header
- type DefaultObjectAccessControlsListCall
- func (c *DefaultObjectAccessControlsListCall) Context(ctx context.Context) *DefaultObjectAccessControlsListCall
- func (c *DefaultObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
- func (c *DefaultObjectAccessControlsListCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsListCall
- func (c *DefaultObjectAccessControlsListCall) Header() http.Header
- func (c *DefaultObjectAccessControlsListCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *DefaultObjectAccessControlsListCall
- func (c *DefaultObjectAccessControlsListCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *DefaultObjectAccessControlsListCall
- func (c *DefaultObjectAccessControlsListCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsListCall
- type DefaultObjectAccessControlsPatchCall
- func (c *DefaultObjectAccessControlsPatchCall) Context(ctx context.Context) *DefaultObjectAccessControlsPatchCall
- func (c *DefaultObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *DefaultObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsPatchCall
- func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header
- type DefaultObjectAccessControlsService
- func (r *DefaultObjectAccessControlsService) Delete(bucket string, entity string) *DefaultObjectAccessControlsDeleteCall
- func (r *DefaultObjectAccessControlsService) Get(bucket string, entity string) *DefaultObjectAccessControlsGetCall
- func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall
- func (r *DefaultObjectAccessControlsService) List(bucket string) *DefaultObjectAccessControlsListCall
- func (r *DefaultObjectAccessControlsService) Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall
- func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall
- type DefaultObjectAccessControlsUpdateCall
- func (c *DefaultObjectAccessControlsUpdateCall) Context(ctx context.Context) *DefaultObjectAccessControlsUpdateCall
- func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *DefaultObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsUpdateCall
- func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header
- type Object
- type ObjectAccessControl
- type ObjectAccessControls
- type ObjectAccessControlsDeleteCall
- func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccessControlsDeleteCall
- func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall
- func (c *ObjectAccessControlsDeleteCall) Generation(generation uint64) *ObjectAccessControlsDeleteCall
- func (c *ObjectAccessControlsDeleteCall) Header() http.Header
- type ObjectAccessControlsGetCall
- func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessControlsGetCall
- func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *ObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall
- func (c *ObjectAccessControlsGetCall) Generation(generation uint64) *ObjectAccessControlsGetCall
- func (c *ObjectAccessControlsGetCall) Header() http.Header
- func (c *ObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall
- type ObjectAccessControlsInsertCall
- func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccessControlsInsertCall
- func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *ObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall
- func (c *ObjectAccessControlsInsertCall) Generation(generation uint64) *ObjectAccessControlsInsertCall
- func (c *ObjectAccessControlsInsertCall) Header() http.Header
- type ObjectAccessControlsListCall
- func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccessControlsListCall
- func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
- func (c *ObjectAccessControlsListCall) Fields(s ...googleapi.Field) *ObjectAccessControlsListCall
- func (c *ObjectAccessControlsListCall) Generation(generation uint64) *ObjectAccessControlsListCall
- func (c *ObjectAccessControlsListCall) Header() http.Header
- func (c *ObjectAccessControlsListCall) IfNoneMatch(entityTag string) *ObjectAccessControlsListCall
- type ObjectAccessControlsPatchCall
- func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccessControlsPatchCall
- func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *ObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall
- func (c *ObjectAccessControlsPatchCall) Generation(generation uint64) *ObjectAccessControlsPatchCall
- func (c *ObjectAccessControlsPatchCall) Header() http.Header
- type ObjectAccessControlsService
- func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall
- func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall
- func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall
- func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall
- func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, ...) *ObjectAccessControlsPatchCall
- func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, ...) *ObjectAccessControlsUpdateCall
- type ObjectAccessControlsUpdateCall
- func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccessControlsUpdateCall
- func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
- func (c *ObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall
- func (c *ObjectAccessControlsUpdateCall) Generation(generation uint64) *ObjectAccessControlsUpdateCall
- func (c *ObjectAccessControlsUpdateCall) Header() http.Header
- type ObjectOwner
- type Objects
- type ObjectsComposeCall
- func (c *ObjectsComposeCall) Context(ctx context.Context) *ObjectsComposeCall
- func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsComposeCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *ObjectsComposeCall) Fields(s ...googleapi.Field) *ObjectsComposeCall
- func (c *ObjectsComposeCall) Header() http.Header
- func (c *ObjectsComposeCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsComposeCall
- func (c *ObjectsComposeCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsComposeCall
- type ObjectsCopyCall
- func (c *ObjectsCopyCall) Context(ctx context.Context) *ObjectsCopyCall
- func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsCopyCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *ObjectsCopyCall) Fields(s ...googleapi.Field) *ObjectsCopyCall
- func (c *ObjectsCopyCall) Header() http.Header
- func (c *ObjectsCopyCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfSourceGenerationMatch(ifSourceGenerationMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfSourceGenerationNotMatch(ifSourceGenerationNotMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfSourceMetagenerationMatch(ifSourceMetagenerationMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch uint64) *ObjectsCopyCall
- func (c *ObjectsCopyCall) Projection(projection string) *ObjectsCopyCall
- func (c *ObjectsCopyCall) SourceGeneration(sourceGeneration uint64) *ObjectsCopyCall
- type ObjectsDeleteCall
- func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ObjectsDeleteCall) Fields(s ...googleapi.Field) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) Generation(generation uint64) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) Header() http.Header
- func (c *ObjectsDeleteCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsDeleteCall
- func (c *ObjectsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsDeleteCall
- type ObjectsGetCall
- func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall
- func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall
- func (c *ObjectsGetCall) Generation(generation uint64) *ObjectsGetCall
- func (c *ObjectsGetCall) Header() http.Header
- func (c *ObjectsGetCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsGetCall
- func (c *ObjectsGetCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsGetCall
- func (c *ObjectsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsGetCall
- func (c *ObjectsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsGetCall
- func (c *ObjectsGetCall) IfNoneMatch(entityTag string) *ObjectsGetCall
- func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall
- type ObjectsInsertCall
- func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall
- func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsInsertCall) Fields(s ...googleapi.Field) *ObjectsInsertCall
- func (c *ObjectsInsertCall) Header() http.Header
- func (c *ObjectsInsertCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsInsertCall
- func (c *ObjectsInsertCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsInsertCall
- func (c *ObjectsInsertCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsInsertCall
- func (c *ObjectsInsertCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsInsertCall
- func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall
- func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall
- func (c *ObjectsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall
- func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall
- func (c *ObjectsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCalldeprecated
- type ObjectsListCall
- func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall
- func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall
- func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error)
- func (c *ObjectsListCall) Fields(s ...googleapi.Field) *ObjectsListCall
- func (c *ObjectsListCall) Header() http.Header
- func (c *ObjectsListCall) IfNoneMatch(entityTag string) *ObjectsListCall
- func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall
- func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall
- func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) error
- func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall
- func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall
- func (c *ObjectsListCall) Versions(versions bool) *ObjectsListCall
- type ObjectsPatchCall
- func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall
- func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall
- func (c *ObjectsPatchCall) Generation(generation uint64) *ObjectsPatchCall
- func (c *ObjectsPatchCall) Header() http.Header
- func (c *ObjectsPatchCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsPatchCall
- func (c *ObjectsPatchCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsPatchCall
- func (c *ObjectsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsPatchCall
- func (c *ObjectsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsPatchCall
- func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall
- type ObjectsService
- func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, ...) *ObjectsComposeCall
- func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, ...) *ObjectsCopyCall
- func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall
- func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall
- func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall
- func (r *ObjectsService) List(bucket string) *ObjectsListCall
- func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall
- func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall
- func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall
- type ObjectsUpdateCall
- func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error)
- func (c *ObjectsUpdateCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
- func (c *ObjectsUpdateCall) Fields(s ...googleapi.Field) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) Generation(generation uint64) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) Header() http.Header
- func (c *ObjectsUpdateCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsUpdateCall
- func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall
- type ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Context(ctx context.Context) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Delimiter(delimiter string) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Do(opts ...googleapi.CallOption) (*Channel, error)
- func (c *ObjectsWatchAllCall) Fields(s ...googleapi.Field) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Header() http.Header
- func (c *ObjectsWatchAllCall) MaxResults(maxResults int64) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) PageToken(pageToken string) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Prefix(prefix string) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Projection(projection string) *ObjectsWatchAllCall
- func (c *ObjectsWatchAllCall) Versions(versions bool) *ObjectsWatchAllCall
- type Service
Constants ¶
const ( // Manage your data and permissions in Google Cloud Storage DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control" // View your data in Google Cloud Storage DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only" // Manage your data in Google Cloud Storage DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { // Acl: Access controls on the bucket. Acl []*BucketAccessControl `json:"acl,omitempty"` // Cors: The bucket's Cross-Origin Resource Sharing (CORS) // configuration. Cors []*BucketCors `json:"cors,omitempty"` // DefaultObjectAcl: Default access controls to apply to new objects // when no ACL is provided. DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"` // Etag: HTTP 1.1 Entity tag for the bucket. Etag string `json:"etag,omitempty"` // Id: The ID of the bucket. Id string `json:"id,omitempty"` // Kind: The kind of item this is. For buckets, this is always // storage#bucket. Kind string `json:"kind,omitempty"` // Lifecycle: The bucket's lifecycle configuration. See object lifecycle // management for more information. Lifecycle *BucketLifecycle `json:"lifecycle,omitempty"` // Location: The location of the bucket. Object data for objects in the // bucket resides in physical storage within this region. Typical values // are US and EU. Defaults to US. See the developer's guide for the // authoritative list. Location string `json:"location,omitempty"` // Logging: The bucket's logging configuration, which defines the // destination bucket and optional name prefix for the current bucket's // logs. Logging *BucketLogging `json:"logging,omitempty"` // Metageneration: The metadata generation of this bucket. Metageneration int64 `json:"metageneration,omitempty,string"` // Name: The name of the bucket. Name string `json:"name,omitempty"` // Owner: The owner of the bucket. This is always the project team's // owner group. Owner *BucketOwner `json:"owner,omitempty"` // SelfLink: The URI of this bucket. SelfLink string `json:"selfLink,omitempty"` // StorageClass: The bucket's storage class. This defines how objects in // the bucket are stored and determines the SLA and the cost of storage. // Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. // Defaults to STANDARD. See the developer's guide for the authoritative // list. StorageClass string `json:"storageClass,omitempty"` // TimeCreated: Creation time of the bucket in RFC 3339 format. TimeCreated string `json:"timeCreated,omitempty"` // Versioning: The bucket's versioning configuration. Versioning *BucketVersioning `json:"versioning,omitempty"` // Website: The bucket's website configuration. Website *BucketWebsite `json:"website,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acl") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Bucket: A bucket.
func (*Bucket) MarshalJSON ¶
type BucketAccessControl ¶
type BucketAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` // Entity: The entity holding the permission, in one of the following // forms: // - user-userId // - user-email // - group-groupId // - group-email // - domain-domain // - allUsers // - allAuthenticatedUsers Examples: // - The user liz@example.com would be user-liz@example.com. // - The group example@googlegroups.com would be // group-example@googlegroups.com. // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` // Etag: HTTP 1.1 Entity tag for the access-control entry. Etag string `json:"etag,omitempty"` // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` // Kind: The kind of item this is. For bucket access control entries, // this is always storage#bucketAccessControl. Kind string `json:"kind,omitempty"` // Role: The access permission for the entity. Can be READER, WRITER, or // OWNER. Role string `json:"role,omitempty"` // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketAccessControl: An access-control entry.
func (*BucketAccessControl) MarshalJSON ¶
func (s *BucketAccessControl) MarshalJSON() ([]byte, error)
type BucketAccessControls ¶
type BucketAccessControls struct { // Items: The list of items. Items []*BucketAccessControl `json:"items,omitempty"` // Kind: The kind of item this is. For lists of bucket access control // entries, this is always storage#bucketAccessControls. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketAccessControls: An access-control list.
func (*BucketAccessControls) MarshalJSON ¶
func (s *BucketAccessControls) MarshalJSON() ([]byte, error)
type BucketAccessControlsDeleteCall ¶
type BucketAccessControlsDeleteCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsDeleteCall) Context ¶
func (c *BucketAccessControlsDeleteCall) Context(ctx context.Context) *BucketAccessControlsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsDeleteCall) Do ¶
func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.bucketAccessControls.delete" call.
func (*BucketAccessControlsDeleteCall) Fields ¶
func (c *BucketAccessControlsDeleteCall) Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsDeleteCall) Header ¶
func (c *BucketAccessControlsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BucketAccessControlsGetCall ¶
type BucketAccessControlsGetCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsGetCall) Context ¶
func (c *BucketAccessControlsGetCall) Context(ctx context.Context) *BucketAccessControlsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsGetCall) Do ¶
func (c *BucketAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
Do executes the "storage.bucketAccessControls.get" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketAccessControlsGetCall) Fields ¶
func (c *BucketAccessControlsGetCall) Fields(s ...googleapi.Field) *BucketAccessControlsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsGetCall) Header ¶
func (c *BucketAccessControlsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketAccessControlsGetCall) IfNoneMatch ¶
func (c *BucketAccessControlsGetCall) IfNoneMatch(entityTag string) *BucketAccessControlsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BucketAccessControlsInsertCall ¶
type BucketAccessControlsInsertCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsInsertCall) Context ¶
func (c *BucketAccessControlsInsertCall) Context(ctx context.Context) *BucketAccessControlsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsInsertCall) Do ¶
func (c *BucketAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
Do executes the "storage.bucketAccessControls.insert" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketAccessControlsInsertCall) Fields ¶
func (c *BucketAccessControlsInsertCall) Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsInsertCall) Header ¶
func (c *BucketAccessControlsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BucketAccessControlsListCall ¶
type BucketAccessControlsListCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsListCall) Context ¶
func (c *BucketAccessControlsListCall) Context(ctx context.Context) *BucketAccessControlsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsListCall) Do ¶
func (c *BucketAccessControlsListCall) Do(opts ...googleapi.CallOption) (*BucketAccessControls, error)
Do executes the "storage.bucketAccessControls.list" call. Exactly one of *BucketAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketAccessControlsListCall) Fields ¶
func (c *BucketAccessControlsListCall) Fields(s ...googleapi.Field) *BucketAccessControlsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsListCall) Header ¶
func (c *BucketAccessControlsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketAccessControlsListCall) IfNoneMatch ¶
func (c *BucketAccessControlsListCall) IfNoneMatch(entityTag string) *BucketAccessControlsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type BucketAccessControlsPatchCall ¶
type BucketAccessControlsPatchCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsPatchCall) Context ¶
func (c *BucketAccessControlsPatchCall) Context(ctx context.Context) *BucketAccessControlsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsPatchCall) Do ¶
func (c *BucketAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
Do executes the "storage.bucketAccessControls.patch" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketAccessControlsPatchCall) Fields ¶
func (c *BucketAccessControlsPatchCall) Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsPatchCall) Header ¶
func (c *BucketAccessControlsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BucketAccessControlsService ¶
type BucketAccessControlsService struct {
// contains filtered or unexported fields
}
func NewBucketAccessControlsService ¶
func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService
func (*BucketAccessControlsService) Delete ¶
func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall
Delete: Permanently deletes the ACL entry for the specified entity on the specified bucket.
func (*BucketAccessControlsService) Get ¶
func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall
Get: Returns the ACL entry for the specified entity on the specified bucket.
func (*BucketAccessControlsService) Insert ¶
func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall
Insert: Creates a new ACL entry on the specified bucket.
func (*BucketAccessControlsService) List ¶
func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall
List: Retrieves ACL entries on the specified bucket.
func (*BucketAccessControlsService) Patch ¶
func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall
Patch: Updates an ACL entry on the specified bucket. This method supports patch semantics.
func (*BucketAccessControlsService) Update ¶
func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall
Update: Updates an ACL entry on the specified bucket.
type BucketAccessControlsUpdateCall ¶
type BucketAccessControlsUpdateCall struct {
// contains filtered or unexported fields
}
func (*BucketAccessControlsUpdateCall) Context ¶
func (c *BucketAccessControlsUpdateCall) Context(ctx context.Context) *BucketAccessControlsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketAccessControlsUpdateCall) Do ¶
func (c *BucketAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
Do executes the "storage.bucketAccessControls.update" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketAccessControlsUpdateCall) Fields ¶
func (c *BucketAccessControlsUpdateCall) Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketAccessControlsUpdateCall) Header ¶
func (c *BucketAccessControlsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BucketCors ¶
type BucketCors struct { // MaxAgeSeconds: The value, in seconds, to return in the // Access-Control-Max-Age header used in preflight responses. MaxAgeSeconds int64 `json:"maxAgeSeconds,omitempty"` // Method: The list of HTTP methods on which to include CORS response // headers: GET, OPTIONS, POST, etc. Note, "*" is permitted in the list // of methods, and means "any method". Method []string `json:"method,omitempty"` // Origin: The list of Origins eligible to receive CORS response // headers. Note: "*" is permitted in the list of origins, and means // "any Origin". Origin []string `json:"origin,omitempty"` // ResponseHeader: The list of HTTP headers other than the simple // response headers to give permission for the user-agent to share // across domains. ResponseHeader []string `json:"responseHeader,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxAgeSeconds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxAgeSeconds") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BucketCors) MarshalJSON ¶
func (s *BucketCors) MarshalJSON() ([]byte, error)
type BucketLifecycle ¶
type BucketLifecycle struct { // Rule: A lifecycle management rule, which is made of an action to take // and the condition(s) under which the action will be taken. Rule []*BucketLifecycleRule `json:"rule,omitempty"` // ForceSendFields is a list of field names (e.g. "Rule") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Rule") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketLifecycle: The bucket's lifecycle configuration. See object lifecycle management for more information.
func (*BucketLifecycle) MarshalJSON ¶
func (s *BucketLifecycle) MarshalJSON() ([]byte, error)
type BucketLifecycleRule ¶
type BucketLifecycleRule struct { // Action: The action to take. Action *BucketLifecycleRuleAction `json:"action,omitempty"` // Condition: The condition(s) under which the action will be taken. Condition *BucketLifecycleRuleCondition `json:"condition,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BucketLifecycleRule) MarshalJSON ¶
func (s *BucketLifecycleRule) MarshalJSON() ([]byte, error)
type BucketLifecycleRuleAction ¶
type BucketLifecycleRuleAction struct { // Type: Type of the action. Currently only Delete is supported. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Type") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketLifecycleRuleAction: The action to take.
func (*BucketLifecycleRuleAction) MarshalJSON ¶
func (s *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error)
type BucketLifecycleRuleCondition ¶
type BucketLifecycleRuleCondition struct { // Age: Age of an object (in days). This condition is satisfied when an // object reaches the specified age. Age int64 `json:"age,omitempty"` // CreatedBefore: A date in RFC 3339 format with only the date part, // e.g. "2013-01-15". This condition is satisfied when an object is // created before midnight of the specified date in UTC. CreatedBefore string `json:"createdBefore,omitempty"` // IsLive: Relevant only for versioned objects. If the value is true, // this condition matches live objects; if the value is false, it // matches archived objects. IsLive *bool `json:"isLive,omitempty"` // NumNewerVersions: Relevant only for versioned objects. If the value // is N, this condition is satisfied when there are at least N versions // (including the live version) newer than this version of the object. NumNewerVersions int64 `json:"numNewerVersions,omitempty"` // ForceSendFields is a list of field names (e.g. "Age") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Age") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketLifecycleRuleCondition: The condition(s) under which the action will be taken.
func (*BucketLifecycleRuleCondition) MarshalJSON ¶
func (s *BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error)
type BucketLogging ¶
type BucketLogging struct { // LogBucket: The destination bucket where the current bucket's logs // should be placed. LogBucket string `json:"logBucket,omitempty"` // LogObjectPrefix: A prefix for log object names. LogObjectPrefix string `json:"logObjectPrefix,omitempty"` // ForceSendFields is a list of field names (e.g. "LogBucket") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LogBucket") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketLogging: The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
func (*BucketLogging) MarshalJSON ¶
func (s *BucketLogging) MarshalJSON() ([]byte, error)
type BucketOwner ¶
type BucketOwner struct { // Entity: The entity, in the form group-groupId. Entity string `json:"entity,omitempty"` // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` // ForceSendFields is a list of field names (e.g. "Entity") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entity") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketOwner: The owner of the bucket. This is always the project team's owner group.
func (*BucketOwner) MarshalJSON ¶
func (s *BucketOwner) MarshalJSON() ([]byte, error)
type BucketVersioning ¶
type BucketVersioning struct { // Enabled: While set to true, versioning is fully enabled for this // bucket. Enabled bool `json:"enabled,omitempty"` // ForceSendFields is a list of field names (e.g. "Enabled") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Enabled") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
BucketVersioning: The bucket's versioning configuration.
func (*BucketVersioning) MarshalJSON ¶
func (s *BucketVersioning) MarshalJSON() ([]byte, error)
type BucketWebsite ¶
type BucketWebsite struct { // MainPageSuffix: Behaves as the bucket's directory index where missing // objects are treated as potential directories. MainPageSuffix string `json:"mainPageSuffix,omitempty"` // NotFoundPage: The custom object to return when a requested resource // is not found. NotFoundPage string `json:"notFoundPage,omitempty"` // ForceSendFields is a list of field names (e.g. "MainPageSuffix") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MainPageSuffix") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
BucketWebsite: The bucket's website configuration.
func (*BucketWebsite) MarshalJSON ¶
func (s *BucketWebsite) MarshalJSON() ([]byte, error)
type Buckets ¶
type Buckets struct { // Items: The list of items. Items []*Bucket `json:"items,omitempty"` // Kind: The kind of item this is. For lists of buckets, this is always // storage#buckets. Kind string `json:"kind,omitempty"` // NextPageToken: The continuation token, used to page through large // result sets. Provide this value in a subsequent request to return the // next page of results. NextPageToken string `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. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Buckets: A list of buckets.
func (*Buckets) MarshalJSON ¶
type BucketsDeleteCall ¶
type BucketsDeleteCall struct {
// contains filtered or unexported fields
}
func (*BucketsDeleteCall) Context ¶
func (c *BucketsDeleteCall) Context(ctx context.Context) *BucketsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsDeleteCall) Do ¶
func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.buckets.delete" call.
func (*BucketsDeleteCall) Fields ¶
func (c *BucketsDeleteCall) Fields(s ...googleapi.Field) *BucketsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsDeleteCall) Header ¶
func (c *BucketsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsDeleteCall) IfMetagenerationMatch ¶
func (c *BucketsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsDeleteCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func (*BucketsDeleteCall) IfMetagenerationNotMatch ¶
func (c *BucketsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsDeleteCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
type BucketsGetCall ¶
type BucketsGetCall struct {
// contains filtered or unexported fields
}
func (*BucketsGetCall) Context ¶
func (c *BucketsGetCall) Context(ctx context.Context) *BucketsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsGetCall) Do ¶
func (c *BucketsGetCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
Do executes the "storage.buckets.get" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketsGetCall) Fields ¶
func (c *BucketsGetCall) Fields(s ...googleapi.Field) *BucketsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsGetCall) Header ¶
func (c *BucketsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsGetCall) IfMetagenerationMatch ¶
func (c *BucketsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsGetCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func (*BucketsGetCall) IfMetagenerationNotMatch ¶
func (c *BucketsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsGetCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func (*BucketsGetCall) IfNoneMatch ¶
func (c *BucketsGetCall) IfNoneMatch(entityTag string) *BucketsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BucketsGetCall) Projection ¶
func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.
Possible values:
"full" - Include all properties. "noAcl" - Omit acl and defaultObjectAcl properties.
type BucketsInsertCall ¶
type BucketsInsertCall struct {
// contains filtered or unexported fields
}
func (*BucketsInsertCall) Context ¶
func (c *BucketsInsertCall) Context(ctx context.Context) *BucketsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsInsertCall) Do ¶
func (c *BucketsInsertCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
Do executes the "storage.buckets.insert" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketsInsertCall) Fields ¶
func (c *BucketsInsertCall) Fields(s ...googleapi.Field) *BucketsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsInsertCall) Header ¶
func (c *BucketsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsInsertCall) Projection ¶
func (c *BucketsInsertCall) Projection(projection string) *BucketsInsertCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit acl and defaultObjectAcl properties.
type BucketsListCall ¶
type BucketsListCall struct {
// contains filtered or unexported fields
}
func (*BucketsListCall) Context ¶
func (c *BucketsListCall) Context(ctx context.Context) *BucketsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsListCall) Do ¶
func (c *BucketsListCall) Do(opts ...googleapi.CallOption) (*Buckets, error)
Do executes the "storage.buckets.list" call. Exactly one of *Buckets or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Buckets.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketsListCall) Fields ¶
func (c *BucketsListCall) Fields(s ...googleapi.Field) *BucketsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsListCall) Header ¶
func (c *BucketsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsListCall) IfNoneMatch ¶
func (c *BucketsListCall) IfNoneMatch(entityTag string) *BucketsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BucketsListCall) MaxResults ¶
func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of buckets to return.
func (*BucketsListCall) PageToken ¶
func (c *BucketsListCall) PageToken(pageToken string) *BucketsListCall
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func (*BucketsListCall) Pages ¶
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.
func (*BucketsListCall) Projection ¶
func (c *BucketsListCall) Projection(projection string) *BucketsListCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.
Possible values:
"full" - Include all properties. "noAcl" - Omit acl and defaultObjectAcl properties.
type BucketsPatchCall ¶
type BucketsPatchCall struct {
// contains filtered or unexported fields
}
func (*BucketsPatchCall) Context ¶
func (c *BucketsPatchCall) Context(ctx context.Context) *BucketsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsPatchCall) Do ¶
func (c *BucketsPatchCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
Do executes the "storage.buckets.patch" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketsPatchCall) Fields ¶
func (c *BucketsPatchCall) Fields(s ...googleapi.Field) *BucketsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsPatchCall) Header ¶
func (c *BucketsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsPatchCall) IfMetagenerationMatch ¶
func (c *BucketsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsPatchCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func (*BucketsPatchCall) IfMetagenerationNotMatch ¶
func (c *BucketsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsPatchCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func (*BucketsPatchCall) Projection ¶
func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit acl and defaultObjectAcl properties.
type BucketsService ¶
type BucketsService struct {
// contains filtered or unexported fields
}
func NewBucketsService ¶
func NewBucketsService(s *Service) *BucketsService
func (*BucketsService) Delete ¶
func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall
Delete: Permanently deletes an empty bucket.
func (*BucketsService) Get ¶
func (r *BucketsService) Get(bucket string) *BucketsGetCall
Get: Returns metadata for the specified bucket.
func (*BucketsService) Insert ¶
func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsertCall
Insert: Creates a new bucket.
func (*BucketsService) List ¶
func (r *BucketsService) List(projectid string) *BucketsListCall
List: Retrieves a list of buckets for a given project.
func (*BucketsService) Patch ¶
func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall
Patch: Updates a bucket. This method supports patch semantics.
func (*BucketsService) Update ¶
func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall
Update: Updates a bucket.
type BucketsUpdateCall ¶
type BucketsUpdateCall struct {
// contains filtered or unexported fields
}
func (*BucketsUpdateCall) Context ¶
func (c *BucketsUpdateCall) Context(ctx context.Context) *BucketsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BucketsUpdateCall) Do ¶
func (c *BucketsUpdateCall) Do(opts ...googleapi.CallOption) (*Bucket, error)
Do executes the "storage.buckets.update" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BucketsUpdateCall) Fields ¶
func (c *BucketsUpdateCall) Fields(s ...googleapi.Field) *BucketsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BucketsUpdateCall) Header ¶
func (c *BucketsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BucketsUpdateCall) IfMetagenerationMatch ¶
func (c *BucketsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *BucketsUpdateCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func (*BucketsUpdateCall) IfMetagenerationNotMatch ¶
func (c *BucketsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *BucketsUpdateCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func (*BucketsUpdateCall) Projection ¶
func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit acl and defaultObjectAcl properties.
type Channel ¶
type Channel struct { // Address: The address where notifications are delivered for this // channel. Address string `json:"address,omitempty"` // Expiration: Date and time of notification channel expiration, // expressed as a Unix timestamp, in milliseconds. Optional. Expiration int64 `json:"expiration,omitempty,string"` // Id: A UUID or similar unique string that identifies this channel. Id string `json:"id,omitempty"` // Kind: Identifies this as a notification channel used to watch for // changes to a resource, which is "api#channel". Kind string `json:"kind,omitempty"` // Params: Additional parameters controlling delivery channel behavior. // Optional. Params map[string]string `json:"params,omitempty"` // Payload: A Boolean value to indicate whether payload is wanted. // Optional. Payload bool `json:"payload,omitempty"` // ResourceId: An opaque ID that identifies the resource being watched // on this channel. Stable across different API versions. ResourceId string `json:"resourceId,omitempty"` // ResourceUri: A version-specific identifier for the watched resource. ResourceUri string `json:"resourceUri,omitempty"` // Token: An arbitrary string delivered to the target address with each // notification delivered over this channel. Optional. Token string `json:"token,omitempty"` // Type: The type of delivery mechanism used for this channel. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Address") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Address") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Channel: An notification channel used to watch for resource changes.
func (*Channel) MarshalJSON ¶
type ChannelsService ¶
type ChannelsService struct {
// contains filtered or unexported fields
}
func NewChannelsService ¶
func NewChannelsService(s *Service) *ChannelsService
func (*ChannelsService) Stop ¶
func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall
Stop: Stop watching resources through this channel
type ChannelsStopCall ¶
type ChannelsStopCall struct {
// contains filtered or unexported fields
}
func (*ChannelsStopCall) Context ¶
func (c *ChannelsStopCall) Context(ctx context.Context) *ChannelsStopCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ChannelsStopCall) Do ¶
func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.channels.stop" call.
func (*ChannelsStopCall) Fields ¶
func (c *ChannelsStopCall) Fields(s ...googleapi.Field) *ChannelsStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ChannelsStopCall) Header ¶
func (c *ChannelsStopCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ComposeRequest ¶
type ComposeRequest struct { // Destination: Properties of the resulting object Destination *Object `json:"destination,omitempty"` // Kind: The kind of item this is. Kind string `json:"kind,omitempty"` // SourceObjects: The list of source objects that will be concatenated // into a single object. SourceObjects []*ComposeRequestSourceObjects `json:"sourceObjects,omitempty"` // ForceSendFields is a list of field names (e.g. "Destination") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destination") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ComposeRequest: A Compose request.
func (*ComposeRequest) MarshalJSON ¶
func (s *ComposeRequest) MarshalJSON() ([]byte, error)
type ComposeRequestSourceObjects ¶
type ComposeRequestSourceObjects struct { // Generation: The generation of this object to use as the source. Generation int64 `json:"generation,omitempty,string"` // Name: The source object's name. All source objects must reside in the // same bucket. Name string `json:"name,omitempty"` // ObjectPreconditions: Conditions that must be met for this operation // to execute. ObjectPreconditions *ComposeRequestSourceObjectsObjectPreconditions `json:"objectPreconditions,omitempty"` // ForceSendFields is a list of field names (e.g. "Generation") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Generation") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ComposeRequestSourceObjects) MarshalJSON ¶
func (s *ComposeRequestSourceObjects) MarshalJSON() ([]byte, error)
type ComposeRequestSourceObjectsObjectPreconditions ¶
type ComposeRequestSourceObjectsObjectPreconditions struct { // IfGenerationMatch: Only perform the composition if the generation of // the source object that would be used matches this value. If this // value and a generation are both specified, they must be the same // value or the call will fail. IfGenerationMatch int64 `json:"ifGenerationMatch,omitempty,string"` // ForceSendFields is a list of field names (e.g. "IfGenerationMatch") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IfGenerationMatch") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ComposeRequestSourceObjectsObjectPreconditions: Conditions that must be met for this operation to execute.
func (*ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON ¶
func (s *ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error)
type DefaultObjectAccessControlsDeleteCall ¶
type DefaultObjectAccessControlsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsDeleteCall) Context ¶
func (c *DefaultObjectAccessControlsDeleteCall) Context(ctx context.Context) *DefaultObjectAccessControlsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsDeleteCall) Do ¶
func (c *DefaultObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.defaultObjectAccessControls.delete" call.
func (*DefaultObjectAccessControlsDeleteCall) Fields ¶
func (c *DefaultObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsDeleteCall) Header ¶
func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type DefaultObjectAccessControlsGetCall ¶
type DefaultObjectAccessControlsGetCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsGetCall) Context ¶
func (c *DefaultObjectAccessControlsGetCall) Context(ctx context.Context) *DefaultObjectAccessControlsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsGetCall) Do ¶
func (c *DefaultObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.defaultObjectAccessControls.get" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DefaultObjectAccessControlsGetCall) Fields ¶
func (c *DefaultObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsGetCall) Header ¶
func (c *DefaultObjectAccessControlsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DefaultObjectAccessControlsGetCall) IfNoneMatch ¶
func (c *DefaultObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DefaultObjectAccessControlsInsertCall ¶
type DefaultObjectAccessControlsInsertCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsInsertCall) Context ¶
func (c *DefaultObjectAccessControlsInsertCall) Context(ctx context.Context) *DefaultObjectAccessControlsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsInsertCall) Do ¶
func (c *DefaultObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.defaultObjectAccessControls.insert" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DefaultObjectAccessControlsInsertCall) Fields ¶
func (c *DefaultObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsInsertCall) Header ¶
func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type DefaultObjectAccessControlsListCall ¶
type DefaultObjectAccessControlsListCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsListCall) Context ¶
func (c *DefaultObjectAccessControlsListCall) Context(ctx context.Context) *DefaultObjectAccessControlsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsListCall) Do ¶
func (c *DefaultObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
Do executes the "storage.defaultObjectAccessControls.list" call. Exactly one of *ObjectAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DefaultObjectAccessControlsListCall) Fields ¶
func (c *DefaultObjectAccessControlsListCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsListCall) Header ¶
func (c *DefaultObjectAccessControlsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*DefaultObjectAccessControlsListCall) IfMetagenerationMatch ¶
func (c *DefaultObjectAccessControlsListCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *DefaultObjectAccessControlsListCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": If present, only return default ACL listing if the bucket's current metageneration matches this value.
func (*DefaultObjectAccessControlsListCall) IfMetagenerationNotMatch ¶
func (c *DefaultObjectAccessControlsListCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *DefaultObjectAccessControlsListCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": If present, only return default ACL listing if the bucket's current metageneration does not match the given value.
func (*DefaultObjectAccessControlsListCall) IfNoneMatch ¶
func (c *DefaultObjectAccessControlsListCall) IfNoneMatch(entityTag string) *DefaultObjectAccessControlsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DefaultObjectAccessControlsPatchCall ¶
type DefaultObjectAccessControlsPatchCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsPatchCall) Context ¶
func (c *DefaultObjectAccessControlsPatchCall) Context(ctx context.Context) *DefaultObjectAccessControlsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsPatchCall) Do ¶
func (c *DefaultObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.defaultObjectAccessControls.patch" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DefaultObjectAccessControlsPatchCall) Fields ¶
func (c *DefaultObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsPatchCall) Header ¶
func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type DefaultObjectAccessControlsService ¶
type DefaultObjectAccessControlsService struct {
// contains filtered or unexported fields
}
func NewDefaultObjectAccessControlsService ¶
func NewDefaultObjectAccessControlsService(s *Service) *DefaultObjectAccessControlsService
func (*DefaultObjectAccessControlsService) Delete ¶
func (r *DefaultObjectAccessControlsService) Delete(bucket string, entity string) *DefaultObjectAccessControlsDeleteCall
Delete: Permanently deletes the default object ACL entry for the specified entity on the specified bucket.
func (*DefaultObjectAccessControlsService) Get ¶
func (r *DefaultObjectAccessControlsService) Get(bucket string, entity string) *DefaultObjectAccessControlsGetCall
Get: Returns the default object ACL entry for the specified entity on the specified bucket.
func (*DefaultObjectAccessControlsService) Insert ¶
func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall
Insert: Creates a new default object ACL entry on the specified bucket.
func (*DefaultObjectAccessControlsService) List ¶
func (r *DefaultObjectAccessControlsService) List(bucket string) *DefaultObjectAccessControlsListCall
List: Retrieves default object ACL entries on the specified bucket.
func (*DefaultObjectAccessControlsService) Patch ¶
func (r *DefaultObjectAccessControlsService) Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall
Patch: Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
func (*DefaultObjectAccessControlsService) Update ¶
func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall
Update: Updates a default object ACL entry on the specified bucket.
type DefaultObjectAccessControlsUpdateCall ¶
type DefaultObjectAccessControlsUpdateCall struct {
// contains filtered or unexported fields
}
func (*DefaultObjectAccessControlsUpdateCall) Context ¶
func (c *DefaultObjectAccessControlsUpdateCall) Context(ctx context.Context) *DefaultObjectAccessControlsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DefaultObjectAccessControlsUpdateCall) Do ¶
func (c *DefaultObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.defaultObjectAccessControls.update" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DefaultObjectAccessControlsUpdateCall) Fields ¶
func (c *DefaultObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *DefaultObjectAccessControlsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DefaultObjectAccessControlsUpdateCall) Header ¶
func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type Object ¶
type Object struct { // Acl: Access controls on the object. Acl []*ObjectAccessControl `json:"acl,omitempty"` // Bucket: The bucket containing this object. Bucket string `json:"bucket,omitempty"` // CacheControl: Cache-Control directive for the object data. CacheControl string `json:"cacheControl,omitempty"` // ComponentCount: Number of underlying components that make up this // object. Components are accumulated by compose operations and are // limited to a count of 32. ComponentCount int64 `json:"componentCount,omitempty"` // ContentDisposition: Content-Disposition of the object data. ContentDisposition string `json:"contentDisposition,omitempty"` // ContentEncoding: Content-Encoding of the object data. ContentEncoding string `json:"contentEncoding,omitempty"` // ContentLanguage: Content-Language of the object data. ContentLanguage string `json:"contentLanguage,omitempty"` // ContentType: Content-Type of the object data. ContentType string `json:"contentType,omitempty"` // Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B; // encoded using base64. Crc32c string `json:"crc32c,omitempty"` // Etag: HTTP 1.1 Entity tag for the object. Etag string `json:"etag,omitempty"` // Generation: The content generation of this object. Used for object // versioning. Generation int64 `json:"generation,omitempty,string"` // Id: The ID of the object. Id string `json:"id,omitempty"` // Kind: The kind of item this is. For objects, this is always // storage#object. Kind string `json:"kind,omitempty"` // Md5Hash: MD5 hash of the data; encoded using base64. Md5Hash string `json:"md5Hash,omitempty"` // MediaLink: Media download link. MediaLink string `json:"mediaLink,omitempty"` // Metadata: User-provided metadata, in key/value pairs. Metadata map[string]string `json:"metadata,omitempty"` // Metageneration: The generation of the metadata for this object at // this generation. Used for metadata versioning. Has no meaning outside // of the context of this generation. Metageneration int64 `json:"metageneration,omitempty,string"` // Name: The name of this object. Required if not specified by URL // parameter. Name string `json:"name,omitempty"` // Owner: The owner of the object. This will always be the uploader of // the object. Owner *ObjectOwner `json:"owner,omitempty"` // SelfLink: The link to this object. SelfLink string `json:"selfLink,omitempty"` // Size: Content-Length of the data in bytes. Size uint64 `json:"size,omitempty,string"` // StorageClass: Storage class of the object. StorageClass string `json:"storageClass,omitempty"` // TimeDeleted: Deletion time of the object in RFC 3339 format. Will be // returned if and only if this version of the object has been deleted. TimeDeleted string `json:"timeDeleted,omitempty"` // Updated: Modification time of the object metadata in RFC 3339 format. Updated string `json:"updated,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acl") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Object: An object.
func (*Object) MarshalJSON ¶
type ObjectAccessControl ¶
type ObjectAccessControl struct { // Bucket: The name of the bucket. Bucket string `json:"bucket,omitempty"` // Domain: The domain associated with the entity, if any. Domain string `json:"domain,omitempty"` // Email: The email address associated with the entity, if any. Email string `json:"email,omitempty"` // Entity: The entity holding the permission, in one of the following // forms: // - user-userId // - user-email // - group-groupId // - group-email // - domain-domain // - allUsers // - allAuthenticatedUsers Examples: // - The user liz@example.com would be user-liz@example.com. // - The group example@googlegroups.com would be // group-example@googlegroups.com. // - To refer to all members of the Google Apps for Business domain // example.com, the entity would be domain-example.com. Entity string `json:"entity,omitempty"` // EntityId: The ID for the entity, if any. EntityId string `json:"entityId,omitempty"` // Etag: HTTP 1.1 Entity tag for the access-control entry. Etag string `json:"etag,omitempty"` // Generation: The content generation of the object. Generation int64 `json:"generation,omitempty,string"` // Id: The ID of the access-control entry. Id string `json:"id,omitempty"` // Kind: The kind of item this is. For object access control entries, // this is always storage#objectAccessControl. Kind string `json:"kind,omitempty"` // Object: The name of the object. Object string `json:"object,omitempty"` // Role: The access permission for the entity. Can be READER or OWNER. Role string `json:"role,omitempty"` // SelfLink: The link to this access-control entry. SelfLink string `json:"selfLink,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 values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. 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. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ObjectAccessControl: An access-control entry.
func (*ObjectAccessControl) MarshalJSON ¶
func (s *ObjectAccessControl) MarshalJSON() ([]byte, error)
type ObjectAccessControls ¶
type ObjectAccessControls struct { // Items: The list of items. Items []interface{} `json:"items,omitempty"` // Kind: The kind of item this is. For lists of object access control // entries, this is always storage#objectAccessControls. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ObjectAccessControls: An access-control list.
func (*ObjectAccessControls) MarshalJSON ¶
func (s *ObjectAccessControls) MarshalJSON() ([]byte, error)
type ObjectAccessControlsDeleteCall ¶
type ObjectAccessControlsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsDeleteCall) Context ¶
func (c *ObjectAccessControlsDeleteCall) Context(ctx context.Context) *ObjectAccessControlsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsDeleteCall) Do ¶
func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.objectAccessControls.delete" call.
func (*ObjectAccessControlsDeleteCall) Fields ¶
func (c *ObjectAccessControlsDeleteCall) Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsDeleteCall) Generation ¶
func (c *ObjectAccessControlsDeleteCall) Generation(generation uint64) *ObjectAccessControlsDeleteCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsDeleteCall) Header ¶
func (c *ObjectAccessControlsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ObjectAccessControlsGetCall ¶
type ObjectAccessControlsGetCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsGetCall) Context ¶
func (c *ObjectAccessControlsGetCall) Context(ctx context.Context) *ObjectAccessControlsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsGetCall) Do ¶
func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.objectAccessControls.get" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectAccessControlsGetCall) Fields ¶
func (c *ObjectAccessControlsGetCall) Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsGetCall) Generation ¶
func (c *ObjectAccessControlsGetCall) Generation(generation uint64) *ObjectAccessControlsGetCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsGetCall) Header ¶
func (c *ObjectAccessControlsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectAccessControlsGetCall) IfNoneMatch ¶
func (c *ObjectAccessControlsGetCall) IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ObjectAccessControlsInsertCall ¶
type ObjectAccessControlsInsertCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsInsertCall) Context ¶
func (c *ObjectAccessControlsInsertCall) Context(ctx context.Context) *ObjectAccessControlsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsInsertCall) Do ¶
func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.objectAccessControls.insert" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectAccessControlsInsertCall) Fields ¶
func (c *ObjectAccessControlsInsertCall) Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsInsertCall) Generation ¶
func (c *ObjectAccessControlsInsertCall) Generation(generation uint64) *ObjectAccessControlsInsertCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsInsertCall) Header ¶
func (c *ObjectAccessControlsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ObjectAccessControlsListCall ¶
type ObjectAccessControlsListCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsListCall) Context ¶
func (c *ObjectAccessControlsListCall) Context(ctx context.Context) *ObjectAccessControlsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsListCall) Do ¶
func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
Do executes the "storage.objectAccessControls.list" call. Exactly one of *ObjectAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectAccessControlsListCall) Fields ¶
func (c *ObjectAccessControlsListCall) Fields(s ...googleapi.Field) *ObjectAccessControlsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsListCall) Generation ¶
func (c *ObjectAccessControlsListCall) Generation(generation uint64) *ObjectAccessControlsListCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsListCall) Header ¶
func (c *ObjectAccessControlsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectAccessControlsListCall) IfNoneMatch ¶
func (c *ObjectAccessControlsListCall) IfNoneMatch(entityTag string) *ObjectAccessControlsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ObjectAccessControlsPatchCall ¶
type ObjectAccessControlsPatchCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsPatchCall) Context ¶
func (c *ObjectAccessControlsPatchCall) Context(ctx context.Context) *ObjectAccessControlsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsPatchCall) Do ¶
func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.objectAccessControls.patch" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectAccessControlsPatchCall) Fields ¶
func (c *ObjectAccessControlsPatchCall) Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsPatchCall) Generation ¶
func (c *ObjectAccessControlsPatchCall) Generation(generation uint64) *ObjectAccessControlsPatchCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsPatchCall) Header ¶
func (c *ObjectAccessControlsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ObjectAccessControlsService ¶
type ObjectAccessControlsService struct {
// contains filtered or unexported fields
}
func NewObjectAccessControlsService ¶
func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService
func (*ObjectAccessControlsService) Delete ¶
func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall
Delete: Permanently deletes the ACL entry for the specified entity on the specified object.
func (*ObjectAccessControlsService) Get ¶
func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall
Get: Returns the ACL entry for the specified entity on the specified object.
func (*ObjectAccessControlsService) Insert ¶
func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall
Insert: Creates a new ACL entry on the specified object.
func (*ObjectAccessControlsService) List ¶
func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall
List: Retrieves ACL entries on the specified object.
func (*ObjectAccessControlsService) Patch ¶
func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall
Patch: Updates an ACL entry on the specified object. This method supports patch semantics.
func (*ObjectAccessControlsService) Update ¶
func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall
Update: Updates an ACL entry on the specified object.
type ObjectAccessControlsUpdateCall ¶
type ObjectAccessControlsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ObjectAccessControlsUpdateCall) Context ¶
func (c *ObjectAccessControlsUpdateCall) Context(ctx context.Context) *ObjectAccessControlsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectAccessControlsUpdateCall) Do ¶
func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
Do executes the "storage.objectAccessControls.update" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectAccessControlsUpdateCall) Fields ¶
func (c *ObjectAccessControlsUpdateCall) Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectAccessControlsUpdateCall) Generation ¶
func (c *ObjectAccessControlsUpdateCall) Generation(generation uint64) *ObjectAccessControlsUpdateCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectAccessControlsUpdateCall) Header ¶
func (c *ObjectAccessControlsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ObjectOwner ¶
type ObjectOwner struct { // Entity: The entity, in the form user-userId. Entity string `json:"entity,omitempty"` // EntityId: The ID for the entity. EntityId string `json:"entityId,omitempty"` // ForceSendFields is a list of field names (e.g. "Entity") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entity") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ObjectOwner: The owner of the object. This will always be the uploader of the object.
func (*ObjectOwner) MarshalJSON ¶
func (s *ObjectOwner) MarshalJSON() ([]byte, error)
type Objects ¶
type Objects struct { // Items: The list of items. Items []*Object `json:"items,omitempty"` // Kind: The kind of item this is. For lists of objects, this is always // storage#objects. Kind string `json:"kind,omitempty"` // NextPageToken: The continuation token, used to page through large // result sets. Provide this value in a subsequent request to return the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Prefixes: The list of prefixes of objects matching-but-not-listed up // to and including the requested delimiter. Prefixes []string `json:"prefixes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Objects: A list of objects.
func (*Objects) MarshalJSON ¶
type ObjectsComposeCall ¶
type ObjectsComposeCall struct {
// contains filtered or unexported fields
}
func (*ObjectsComposeCall) Context ¶
func (c *ObjectsComposeCall) Context(ctx context.Context) *ObjectsComposeCall
Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsComposeCall) Do ¶
func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.compose" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsComposeCall) Download ¶
func (c *ObjectsComposeCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func (*ObjectsComposeCall) Fields ¶
func (c *ObjectsComposeCall) Fields(s ...googleapi.Field) *ObjectsComposeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsComposeCall) Header ¶
func (c *ObjectsComposeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsComposeCall) IfGenerationMatch ¶
func (c *ObjectsComposeCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsComposeCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value.
func (*ObjectsComposeCall) IfMetagenerationMatch ¶
func (c *ObjectsComposeCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsComposeCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
type ObjectsCopyCall ¶
type ObjectsCopyCall struct {
// contains filtered or unexported fields
}
func (*ObjectsCopyCall) Context ¶
func (c *ObjectsCopyCall) Context(ctx context.Context) *ObjectsCopyCall
Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsCopyCall) Do ¶
func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.copy" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsCopyCall) Download ¶
func (c *ObjectsCopyCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func (*ObjectsCopyCall) Fields ¶
func (c *ObjectsCopyCall) Fields(s ...googleapi.Field) *ObjectsCopyCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsCopyCall) Header ¶
func (c *ObjectsCopyCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsCopyCall) IfGenerationMatch ¶
func (c *ObjectsCopyCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsCopyCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the destination object's current generation matches the given value.
func (*ObjectsCopyCall) IfGenerationNotMatch ¶
func (c *ObjectsCopyCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsCopyCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the destination object's current generation does not match the given value.
func (*ObjectsCopyCall) IfMetagenerationMatch ¶
func (c *ObjectsCopyCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsCopyCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the destination object's current metageneration matches the given value.
func (*ObjectsCopyCall) IfMetagenerationNotMatch ¶
func (c *ObjectsCopyCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsCopyCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
func (*ObjectsCopyCall) IfSourceGenerationMatch ¶
func (c *ObjectsCopyCall) IfSourceGenerationMatch(ifSourceGenerationMatch uint64) *ObjectsCopyCall
IfSourceGenerationMatch sets the optional parameter "ifSourceGenerationMatch": Makes the operation conditional on whether the source object's generation matches the given value.
func (*ObjectsCopyCall) IfSourceGenerationNotMatch ¶
func (c *ObjectsCopyCall) IfSourceGenerationNotMatch(ifSourceGenerationNotMatch uint64) *ObjectsCopyCall
IfSourceGenerationNotMatch sets the optional parameter "ifSourceGenerationNotMatch": Makes the operation conditional on whether the source object's generation does not match the given value.
func (*ObjectsCopyCall) IfSourceMetagenerationMatch ¶
func (c *ObjectsCopyCall) IfSourceMetagenerationMatch(ifSourceMetagenerationMatch uint64) *ObjectsCopyCall
IfSourceMetagenerationMatch sets the optional parameter "ifSourceMetagenerationMatch": Makes the operation conditional on whether the source object's current metageneration matches the given value.
func (*ObjectsCopyCall) IfSourceMetagenerationNotMatch ¶
func (c *ObjectsCopyCall) IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch uint64) *ObjectsCopyCall
IfSourceMetagenerationNotMatch sets the optional parameter "ifSourceMetagenerationNotMatch": Makes the operation conditional on whether the source object's current metageneration does not match the given value.
func (*ObjectsCopyCall) Projection ¶
func (c *ObjectsCopyCall) Projection(projection string) *ObjectsCopyCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
func (*ObjectsCopyCall) SourceGeneration ¶
func (c *ObjectsCopyCall) SourceGeneration(sourceGeneration uint64) *ObjectsCopyCall
SourceGeneration sets the optional parameter "sourceGeneration": If present, selects a specific revision of the source object (as opposed to the latest version, the default).
type ObjectsDeleteCall ¶
type ObjectsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ObjectsDeleteCall) Context ¶
func (c *ObjectsDeleteCall) Context(ctx context.Context) *ObjectsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsDeleteCall) Do ¶
func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "storage.objects.delete" call.
func (*ObjectsDeleteCall) Fields ¶
func (c *ObjectsDeleteCall) Fields(s ...googleapi.Field) *ObjectsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsDeleteCall) Generation ¶
func (c *ObjectsDeleteCall) Generation(generation uint64) *ObjectsDeleteCall
Generation sets the optional parameter "generation": If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectsDeleteCall) Header ¶
func (c *ObjectsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsDeleteCall) IfGenerationMatch ¶
func (c *ObjectsDeleteCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsDeleteCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value.
func (*ObjectsDeleteCall) IfGenerationNotMatch ¶
func (c *ObjectsDeleteCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsDeleteCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value.
func (*ObjectsDeleteCall) IfMetagenerationMatch ¶
func (c *ObjectsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsDeleteCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func (*ObjectsDeleteCall) IfMetagenerationNotMatch ¶
func (c *ObjectsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsDeleteCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
type ObjectsGetCall ¶
type ObjectsGetCall struct {
// contains filtered or unexported fields
}
func (*ObjectsGetCall) Context ¶
func (c *ObjectsGetCall) Context(ctx context.Context) *ObjectsGetCall
Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsGetCall) Do ¶
func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.get" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsGetCall) Download ¶
func (c *ObjectsGetCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func (*ObjectsGetCall) Fields ¶
func (c *ObjectsGetCall) Fields(s ...googleapi.Field) *ObjectsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsGetCall) Generation ¶
func (c *ObjectsGetCall) Generation(generation uint64) *ObjectsGetCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectsGetCall) Header ¶
func (c *ObjectsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsGetCall) IfGenerationMatch ¶
func (c *ObjectsGetCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsGetCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's generation matches the given value.
func (*ObjectsGetCall) IfGenerationNotMatch ¶
func (c *ObjectsGetCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsGetCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's generation does not match the given value.
func (*ObjectsGetCall) IfMetagenerationMatch ¶
func (c *ObjectsGetCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsGetCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func (*ObjectsGetCall) IfMetagenerationNotMatch ¶
func (c *ObjectsGetCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsGetCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func (*ObjectsGetCall) IfNoneMatch ¶
func (c *ObjectsGetCall) IfNoneMatch(entityTag string) *ObjectsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ObjectsGetCall) Projection ¶
func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
type ObjectsInsertCall ¶
type ObjectsInsertCall struct {
// contains filtered or unexported fields
}
func (*ObjectsInsertCall) Context ¶
func (c *ObjectsInsertCall) Context(ctx context.Context) *ObjectsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.
func (*ObjectsInsertCall) Do ¶
func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.insert" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsInsertCall) Fields ¶
func (c *ObjectsInsertCall) Fields(s ...googleapi.Field) *ObjectsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsInsertCall) Header ¶
func (c *ObjectsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsInsertCall) IfGenerationMatch ¶
func (c *ObjectsInsertCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsInsertCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value.
func (*ObjectsInsertCall) IfGenerationNotMatch ¶
func (c *ObjectsInsertCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsInsertCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value.
func (*ObjectsInsertCall) IfMetagenerationMatch ¶
func (c *ObjectsInsertCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsInsertCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func (*ObjectsInsertCall) IfMetagenerationNotMatch ¶
func (c *ObjectsInsertCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsInsertCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func (*ObjectsInsertCall) Media ¶
func (c *ObjectsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall
Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.
func (*ObjectsInsertCall) Name ¶
func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall
Name sets the optional parameter "name": Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
func (*ObjectsInsertCall) ProgressUpdater ¶
func (c *ObjectsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall
ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).
func (*ObjectsInsertCall) Projection ¶
func (c *ObjectsInsertCall) Projection(projection string) *ObjectsInsertCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
func (*ObjectsInsertCall) ResumableMedia
deprecated
func (c *ObjectsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCall
ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.
type ObjectsListCall ¶
type ObjectsListCall struct {
// contains filtered or unexported fields
}
func (*ObjectsListCall) Context ¶
func (c *ObjectsListCall) Context(ctx context.Context) *ObjectsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsListCall) Delimiter ¶
func (c *ObjectsListCall) Delimiter(delimiter string) *ObjectsListCall
Delimiter sets the optional parameter "delimiter": Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
func (*ObjectsListCall) Do ¶
func (c *ObjectsListCall) Do(opts ...googleapi.CallOption) (*Objects, error)
Do executes the "storage.objects.list" call. Exactly one of *Objects or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Objects.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsListCall) Fields ¶
func (c *ObjectsListCall) Fields(s ...googleapi.Field) *ObjectsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsListCall) Header ¶
func (c *ObjectsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsListCall) IfNoneMatch ¶
func (c *ObjectsListCall) IfNoneMatch(entityTag string) *ObjectsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ObjectsListCall) MaxResults ¶
func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
func (*ObjectsListCall) PageToken ¶
func (c *ObjectsListCall) PageToken(pageToken string) *ObjectsListCall
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func (*ObjectsListCall) Pages ¶
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.
func (*ObjectsListCall) Prefix ¶
func (c *ObjectsListCall) Prefix(prefix string) *ObjectsListCall
Prefix sets the optional parameter "prefix": Filter results to objects whose names begin with this prefix.
func (*ObjectsListCall) Projection ¶
func (c *ObjectsListCall) Projection(projection string) *ObjectsListCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
func (*ObjectsListCall) Versions ¶
func (c *ObjectsListCall) Versions(versions bool) *ObjectsListCall
Versions sets the optional parameter "versions": If true, lists all versions of a file as distinct results.
type ObjectsPatchCall ¶
type ObjectsPatchCall struct {
// contains filtered or unexported fields
}
func (*ObjectsPatchCall) Context ¶
func (c *ObjectsPatchCall) Context(ctx context.Context) *ObjectsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsPatchCall) Do ¶
func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.patch" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsPatchCall) Fields ¶
func (c *ObjectsPatchCall) Fields(s ...googleapi.Field) *ObjectsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsPatchCall) Generation ¶
func (c *ObjectsPatchCall) Generation(generation uint64) *ObjectsPatchCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectsPatchCall) Header ¶
func (c *ObjectsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsPatchCall) IfGenerationMatch ¶
func (c *ObjectsPatchCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsPatchCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value.
func (*ObjectsPatchCall) IfGenerationNotMatch ¶
func (c *ObjectsPatchCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsPatchCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value.
func (*ObjectsPatchCall) IfMetagenerationMatch ¶
func (c *ObjectsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsPatchCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func (*ObjectsPatchCall) IfMetagenerationNotMatch ¶
func (c *ObjectsPatchCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsPatchCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func (*ObjectsPatchCall) Projection ¶
func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
type ObjectsService ¶
type ObjectsService struct {
// contains filtered or unexported fields
}
func NewObjectsService ¶
func NewObjectsService(s *Service) *ObjectsService
func (*ObjectsService) Compose ¶
func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall
Compose: Concatenates a list of existing objects into a new object in the same bucket.
func (*ObjectsService) Copy ¶
func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall
Copy: Copies an object to a destination in the same location. Optionally overrides metadata.
func (*ObjectsService) Delete ¶
func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall
Delete: Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
func (*ObjectsService) Get ¶
func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall
Get: Retrieves objects or their associated metadata.
func (*ObjectsService) Insert ¶
func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall
Insert: Stores new data blobs and associated metadata.
func (*ObjectsService) List ¶
func (r *ObjectsService) List(bucket string) *ObjectsListCall
List: Retrieves a list of objects matching the criteria.
func (*ObjectsService) Patch ¶
func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall
Patch: Updates a data blob's associated metadata. This method supports patch semantics.
func (*ObjectsService) Update ¶
func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall
Update: Updates a data blob's associated metadata.
func (*ObjectsService) WatchAll ¶
func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall
WatchAll: Watch for changes on all objects in a bucket.
type ObjectsUpdateCall ¶
type ObjectsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ObjectsUpdateCall) Context ¶
func (c *ObjectsUpdateCall) Context(ctx context.Context) *ObjectsUpdateCall
Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsUpdateCall) Do ¶
func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error)
Do executes the "storage.objects.update" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsUpdateCall) Download ¶
func (c *ObjectsUpdateCall) Download(opts ...googleapi.CallOption) (*http.Response, error)
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func (*ObjectsUpdateCall) Fields ¶
func (c *ObjectsUpdateCall) Fields(s ...googleapi.Field) *ObjectsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsUpdateCall) Generation ¶
func (c *ObjectsUpdateCall) Generation(generation uint64) *ObjectsUpdateCall
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func (*ObjectsUpdateCall) Header ¶
func (c *ObjectsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsUpdateCall) IfGenerationMatch ¶
func (c *ObjectsUpdateCall) IfGenerationMatch(ifGenerationMatch uint64) *ObjectsUpdateCall
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value.
func (*ObjectsUpdateCall) IfGenerationNotMatch ¶
func (c *ObjectsUpdateCall) IfGenerationNotMatch(ifGenerationNotMatch uint64) *ObjectsUpdateCall
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value.
func (*ObjectsUpdateCall) IfMetagenerationMatch ¶
func (c *ObjectsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch uint64) *ObjectsUpdateCall
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func (*ObjectsUpdateCall) IfMetagenerationNotMatch ¶
func (c *ObjectsUpdateCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch uint64) *ObjectsUpdateCall
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func (*ObjectsUpdateCall) Projection ¶
func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
type ObjectsWatchAllCall ¶
type ObjectsWatchAllCall struct {
// contains filtered or unexported fields
}
func (*ObjectsWatchAllCall) Context ¶
func (c *ObjectsWatchAllCall) Context(ctx context.Context) *ObjectsWatchAllCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ObjectsWatchAllCall) Delimiter ¶
func (c *ObjectsWatchAllCall) Delimiter(delimiter string) *ObjectsWatchAllCall
Delimiter sets the optional parameter "delimiter": Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
func (*ObjectsWatchAllCall) Do ¶
func (c *ObjectsWatchAllCall) Do(opts ...googleapi.CallOption) (*Channel, error)
Do executes the "storage.objects.watchAll" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ObjectsWatchAllCall) Fields ¶
func (c *ObjectsWatchAllCall) Fields(s ...googleapi.Field) *ObjectsWatchAllCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ObjectsWatchAllCall) Header ¶
func (c *ObjectsWatchAllCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ObjectsWatchAllCall) MaxResults ¶
func (c *ObjectsWatchAllCall) MaxResults(maxResults int64) *ObjectsWatchAllCall
MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
func (*ObjectsWatchAllCall) PageToken ¶
func (c *ObjectsWatchAllCall) PageToken(pageToken string) *ObjectsWatchAllCall
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func (*ObjectsWatchAllCall) Prefix ¶
func (c *ObjectsWatchAllCall) Prefix(prefix string) *ObjectsWatchAllCall
Prefix sets the optional parameter "prefix": Filter results to objects whose names begin with this prefix.
func (*ObjectsWatchAllCall) Projection ¶
func (c *ObjectsWatchAllCall) Projection(projection string) *ObjectsWatchAllCall
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.
Possible values:
"full" - Include all properties. "noAcl" - Omit the acl property.
func (*ObjectsWatchAllCall) Versions ¶
func (c *ObjectsWatchAllCall) Versions(versions bool) *ObjectsWatchAllCall
Versions sets the optional parameter "versions": If true, lists all versions of a file as distinct results.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment BucketAccessControls *BucketAccessControlsService Buckets *BucketsService Channels *ChannelsService DefaultObjectAccessControls *DefaultObjectAccessControlsService ObjectAccessControls *ObjectAccessControlsService Objects *ObjectsService // contains filtered or unexported fields }
func New
deprecated
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.
func NewService ¶
NewService creates a new Service.