storage

package
v0.0.0-...-3374899 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package storage provides access to the Cloud Storage API.

See https://developers.google.com/storage/docs/json_api/

Usage example:

import "camlistore.org/third_party/code.google.com/p/google-api-go-client/storage/v1"
...
storageService, err := storage.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your data and permissions in Google Cloud Storage
	DevstorageFull_controlScope = "https://www.googleapis.com/auth/devstorage.full_control"

	// View your data in Google Cloud Storage
	DevstorageRead_onlyScope = "https://www.googleapis.com/auth/devstorage.read_only"

	// Manage your data in Google Cloud Storage
	DevstorageRead_writeScope = "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 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. 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"`

	// ProjectNumber: The project number of the project the bucket belongs
	// to.
	ProjectNumber uint64 `json:"projectNumber,omitempty,string"`

	// 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"`
}

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
	// - project-team-projectId
	// - 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"`

	// ProjectTeam: The project team associated with the entity, if any.
	ProjectTeam *BucketAccessControlProjectTeam `json:"projectTeam,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"`
}

type BucketAccessControlProjectTeam

type BucketAccessControlProjectTeam struct {
	// ProjectNumber: The project number.
	ProjectNumber string `json:"projectNumber,omitempty"`

	// Team: The team. Can be owners, editors, or viewers.
	Team string `json:"team,omitempty"`
}

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"`
}

type BucketAccessControlsDeleteCall

type BucketAccessControlsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsDeleteCall) Do

type BucketAccessControlsGetCall

type BucketAccessControlsGetCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsGetCall) Do

type BucketAccessControlsInsertCall

type BucketAccessControlsInsertCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsInsertCall) Do

type BucketAccessControlsListCall

type BucketAccessControlsListCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsListCall) Do

type BucketAccessControlsPatchCall

type BucketAccessControlsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BucketAccessControlsPatchCall) Do

type BucketAccessControlsService

type BucketAccessControlsService struct {
	// contains filtered or unexported fields
}

func NewBucketAccessControlsService

func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService

func (*BucketAccessControlsService) Delete

Delete: Permanently deletes the ACL entry for the specified entity on the specified bucket.

func (*BucketAccessControlsService) Get

Get: Returns the ACL entry for the specified entity on the specified bucket.

func (*BucketAccessControlsService) Insert

Insert: Creates a new ACL entry on the specified bucket.

func (*BucketAccessControlsService) List

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) Do

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"`
}

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"`
}

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"`
}

type BucketLifecycleRuleAction

type BucketLifecycleRuleAction struct {
	// Type: Type of the action. Currently, only Delete is supported.
	Type string `json:"type,omitempty"`
}

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 (for
	// instance, "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"`
}

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"`
}

type BucketOwner

type BucketOwner struct {
	// Entity: The entity, in the form project-owner-projectId.
	Entity string `json:"entity,omitempty"`

	// EntityId: The ID for the entity.
	EntityId string `json:"entityId,omitempty"`
}

type BucketVersioning

type BucketVersioning struct {
	// Enabled: While set to true, versioning is fully enabled for this
	// bucket.
	Enabled bool `json:"enabled,omitempty"`
}

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"`
}

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"`
}

type BucketsDeleteCall

type BucketsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*BucketsDeleteCall) Do

func (c *BucketsDeleteCall) Do() error

func (*BucketsDeleteCall) IfMetagenerationMatch

func (c *BucketsDeleteCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *BucketsDeleteCall

IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": If set, only deletes the bucket if its metageneration matches this value.

func (*BucketsDeleteCall) IfMetagenerationNotMatch

func (c *BucketsDeleteCall) IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *BucketsDeleteCall

IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": If set, only deletes the bucket if its metageneration does not match this value.

type BucketsGetCall

type BucketsGetCall struct {
	// contains filtered or unexported fields
}

func (*BucketsGetCall) Do

func (c *BucketsGetCall) Do() (*Bucket, error)

func (*BucketsGetCall) IfMetagenerationMatch

func (c *BucketsGetCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *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 int64) *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) Projection

func (c *BucketsGetCall) Projection(projection string) *BucketsGetCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.

type BucketsInsertCall

type BucketsInsertCall struct {
	// contains filtered or unexported fields
}

func (*BucketsInsertCall) Do

func (c *BucketsInsertCall) Do() (*Bucket, error)

func (*BucketsInsertCall) PredefinedAcl

func (c *BucketsInsertCall) PredefinedAcl(predefinedAcl string) *BucketsInsertCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket.

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.

type BucketsListCall

type BucketsListCall struct {
	// contains filtered or unexported fields
}

func (*BucketsListCall) Do

func (c *BucketsListCall) Do() (*Buckets, error)

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) Projection

func (c *BucketsListCall) Projection(projection string) *BucketsListCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.

type BucketsPatchCall

type BucketsPatchCall struct {
	// contains filtered or unexported fields
}

func (*BucketsPatchCall) Do

func (c *BucketsPatchCall) Do() (*Bucket, error)

func (*BucketsPatchCall) IfMetagenerationMatch

func (c *BucketsPatchCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *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 int64) *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) PredefinedAcl

func (c *BucketsPatchCall) PredefinedAcl(predefinedAcl string) *BucketsPatchCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket.

func (*BucketsPatchCall) Projection

func (c *BucketsPatchCall) Projection(projection string) *BucketsPatchCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

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) Do

func (c *BucketsUpdateCall) Do() (*Bucket, error)

func (*BucketsUpdateCall) IfMetagenerationMatch

func (c *BucketsUpdateCall) IfMetagenerationMatch(ifMetagenerationMatch int64) *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 int64) *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) PredefinedAcl

func (c *BucketsUpdateCall) PredefinedAcl(predefinedAcl string) *BucketsUpdateCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket.

func (*BucketsUpdateCall) Projection

func (c *BucketsUpdateCall) Projection(projection string) *BucketsUpdateCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

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. Value: the fixed string "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"`
}

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) Do

func (c *ChannelsStopCall) Do() error

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"`
}

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. The source object's bucket is
	// implicitly the destination bucket.
	Name string `json:"name,omitempty"`

	// ObjectPreconditions: Conditions that must be met for this operation
	// to execute.
	ObjectPreconditions *ComposeRequestSourceObjectsObjectPreconditions `json:"objectPreconditions,omitempty"`
}

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"`
}

type DefaultObjectAccessControlsDeleteCall

type DefaultObjectAccessControlsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsDeleteCall) Do

type DefaultObjectAccessControlsGetCall

type DefaultObjectAccessControlsGetCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsGetCall) Do

type DefaultObjectAccessControlsInsertCall

type DefaultObjectAccessControlsInsertCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsInsertCall) Do

type DefaultObjectAccessControlsListCall

type DefaultObjectAccessControlsListCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsListCall) Do

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.

type DefaultObjectAccessControlsPatchCall

type DefaultObjectAccessControlsPatchCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsPatchCall) Do

type DefaultObjectAccessControlsService

type DefaultObjectAccessControlsService struct {
	// contains filtered or unexported fields
}

func NewDefaultObjectAccessControlsService

func NewDefaultObjectAccessControlsService(s *Service) *DefaultObjectAccessControlsService

func (*DefaultObjectAccessControlsService) Delete

Delete: Permanently deletes the default object ACL entry for the specified entity on the specified bucket.

func (*DefaultObjectAccessControlsService) Get

Get: Returns the default object ACL entry for the specified entity on the specified bucket.

func (*DefaultObjectAccessControlsService) Insert

Insert: Creates a new default object ACL entry on the specified bucket.

func (*DefaultObjectAccessControlsService) List

List: Retrieves default object ACL entries on the specified bucket.

func (*DefaultObjectAccessControlsService) Patch

Patch: Updates a default object ACL entry on the specified bucket. This method supports patch semantics.

func (*DefaultObjectAccessControlsService) Update

Update: Updates a default object ACL entry on the specified bucket.

type DefaultObjectAccessControlsUpdateCall

type DefaultObjectAccessControlsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*DefaultObjectAccessControlsUpdateCall) Do

type Object

type Object struct {
	// Acl: Access controls on the object.
	Acl []*ObjectAccessControl `json:"acl,omitempty"`

	// Bucket: The name of 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.
	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 version of the metadata for this object at this
	// generation. Used for preconditions and for detecting changes in
	// metadata. A metageneration number is only meaningful in the context
	// of a particular generation of a particular object.
	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"`
}

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
	// - project-team-projectId
	// - 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"`

	// ProjectTeam: The project team associated with the entity, if any.
	ProjectTeam *ObjectAccessControlProjectTeam `json:"projectTeam,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"`
}

type ObjectAccessControlProjectTeam

type ObjectAccessControlProjectTeam struct {
	// ProjectNumber: The project number.
	ProjectNumber string `json:"projectNumber,omitempty"`

	// Team: The team. Can be owners, editors, or viewers.
	Team string `json:"team,omitempty"`
}

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"`
}

type ObjectAccessControlsDeleteCall

type ObjectAccessControlsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsDeleteCall) Do

func (*ObjectAccessControlsDeleteCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

type ObjectAccessControlsGetCall

type ObjectAccessControlsGetCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsGetCall) Do

func (*ObjectAccessControlsGetCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

type ObjectAccessControlsInsertCall

type ObjectAccessControlsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsInsertCall) Do

func (*ObjectAccessControlsInsertCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

type ObjectAccessControlsListCall

type ObjectAccessControlsListCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsListCall) Do

func (*ObjectAccessControlsListCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

type ObjectAccessControlsPatchCall

type ObjectAccessControlsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ObjectAccessControlsPatchCall) Do

func (*ObjectAccessControlsPatchCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

type ObjectAccessControlsService

type ObjectAccessControlsService struct {
	// contains filtered or unexported fields
}

func NewObjectAccessControlsService

func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService

func (*ObjectAccessControlsService) Delete

Delete: Permanently deletes the ACL entry for the specified entity on the specified object.

func (*ObjectAccessControlsService) Get

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

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) Do

func (*ObjectAccessControlsUpdateCall) Generation

Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).

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"`
}

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"`
}

type ObjectsComposeCall

type ObjectsComposeCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsComposeCall) DestinationPredefinedAcl

func (c *ObjectsComposeCall) DestinationPredefinedAcl(destinationPredefinedAcl string) *ObjectsComposeCall

DestinationPredefinedAcl sets the optional parameter "destinationPredefinedAcl": Apply a predefined set of access controls to the destination object.

func (*ObjectsComposeCall) Do

func (c *ObjectsComposeCall) Do() (*Object, error)

func (*ObjectsComposeCall) IfGenerationMatch

func (c *ObjectsComposeCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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) DestinationPredefinedAcl

func (c *ObjectsCopyCall) DestinationPredefinedAcl(destinationPredefinedAcl string) *ObjectsCopyCall

DestinationPredefinedAcl sets the optional parameter "destinationPredefinedAcl": Apply a predefined set of access controls to the destination object.

func (*ObjectsCopyCall) Do

func (c *ObjectsCopyCall) Do() (*Object, error)

func (*ObjectsCopyCall) IfGenerationMatch

func (c *ObjectsCopyCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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 int64) *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 int64) *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 int64) *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 int64) *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.

func (*ObjectsCopyCall) SourceGeneration

func (c *ObjectsCopyCall) SourceGeneration(sourceGeneration int64) *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) Do

func (c *ObjectsDeleteCall) Do() error

func (*ObjectsDeleteCall) Generation

func (c *ObjectsDeleteCall) Generation(generation int64) *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) IfGenerationMatch

func (c *ObjectsDeleteCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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) Do

func (c *ObjectsGetCall) Do() (*Object, error)

func (*ObjectsGetCall) Generation

func (c *ObjectsGetCall) Generation(generation int64) *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) IfGenerationMatch

func (c *ObjectsGetCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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) Projection

func (c *ObjectsGetCall) Projection(projection string) *ObjectsGetCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl.

type ObjectsInsertCall

type ObjectsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ObjectsInsertCall) ContentEncoding

func (c *ObjectsInsertCall) ContentEncoding(contentEncoding string) *ObjectsInsertCall

ContentEncoding sets the optional parameter "contentEncoding": If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.

func (*ObjectsInsertCall) Do

func (c *ObjectsInsertCall) Do() (*Object, error)

func (*ObjectsInsertCall) IfGenerationMatch

func (c *ObjectsInsertCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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 (*ObjectsInsertCall) Name

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) PredefinedAcl

func (c *ObjectsInsertCall) PredefinedAcl(predefinedAcl string) *ObjectsInsertCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object.

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.

type ObjectsListCall

type ObjectsListCall struct {
	// contains filtered or unexported fields
}

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() (*Objects, error)

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) 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.

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) Do

func (c *ObjectsPatchCall) Do() (*Object, error)

func (*ObjectsPatchCall) Generation

func (c *ObjectsPatchCall) Generation(generation int64) *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) IfGenerationMatch

func (c *ObjectsPatchCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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) PredefinedAcl

func (c *ObjectsPatchCall) PredefinedAcl(predefinedAcl string) *ObjectsPatchCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object.

func (*ObjectsPatchCall) Projection

func (c *ObjectsPatchCall) Projection(projection string) *ObjectsPatchCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

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 specified location. Optionally overrides metadata.

func (*ObjectsService) Delete

func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall

Delete: Deletes an object and its 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 metadata.

func (*ObjectsService) Insert

func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall

Insert: Stores a new object and 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 an object's metadata. This method supports patch semantics.

func (*ObjectsService) Update

func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall

Update: Updates an object's 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) Do

func (c *ObjectsUpdateCall) Do() (*Object, error)

func (*ObjectsUpdateCall) Generation

func (c *ObjectsUpdateCall) Generation(generation int64) *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) IfGenerationMatch

func (c *ObjectsUpdateCall) IfGenerationMatch(ifGenerationMatch int64) *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 int64) *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 int64) *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 int64) *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) PredefinedAcl

func (c *ObjectsUpdateCall) PredefinedAcl(predefinedAcl string) *ObjectsUpdateCall

PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object.

func (*ObjectsUpdateCall) Projection

func (c *ObjectsUpdateCall) Projection(projection string) *ObjectsUpdateCall

Projection sets the optional parameter "projection": Set of properties to return. Defaults to full.

type ObjectsWatchAllCall

type ObjectsWatchAllCall struct {
	// contains filtered or unexported fields
}

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() (*Channel, error)

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.

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

	BucketAccessControls *BucketAccessControlsService

	Buckets *BucketsService

	Channels *ChannelsService

	DefaultObjectAccessControls *DefaultObjectAccessControlsService

	ObjectAccessControls *ObjectAccessControlsService

	Objects *ObjectsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL