api: google.golang.org/api/storage/v1 Index | Files

package storage

import "google.golang.org/api/storage/v1"

Package storage provides access to the Cloud Storage JSON API.

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

Usage example:

import "google.golang.org/api/storage/v1"
...
storageService, err := storage.New(oauthHttpClient)

Index

Package Files

storage-gen.go

Constants

const (
    // View and manage your data across Google Cloud Platform services
    CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"

    // View your data across Google Cloud Platform services
    CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"

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

type Bucket Uses

type Bucket struct {
    // Acl: Access controls on the bucket.
    Acl []*BucketAccessControl `json:"acl,omitempty"`

    // Billing: The bucket's billing configuration.
    Billing *BucketBilling `json:"billing,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"`

    // Encryption: Encryption configuration used by default for newly
    // inserted objects, when no encryption config is specified.
    Encryption *BucketEncryption `json:"encryption,omitempty"`

    // Etag: HTTP 1.1 Entity tag for the bucket.
    Etag string `json:"etag,omitempty"`

    // Id: The ID of the bucket. For buckets, the id and name properities
    // are the same.
    Id  string `json:"id,omitempty"`

    // Kind: The kind of item this is. For buckets, this is always
    // storage#bucket.
    Kind string `json:"kind,omitempty"`

    // Labels: User-provided labels, in key/value pairs.
    Labels map[string]string `json:"labels,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 default storage class, used whenever no
    // storageClass is specified for a newly-created object. This defines
    // how objects in the bucket are stored and determines the SLA and the
    // cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD,
    // NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If this value
    // is not specified when the bucket is created, it will default to
    // STANDARD. For more information, see storage classes.
    StorageClass string `json:"storageClass,omitempty"`

    // TimeCreated: The creation time of the bucket in RFC 3339 format.
    TimeCreated string `json:"timeCreated,omitempty"`

    // Updated: The modification time of the bucket in RFC 3339 format.
    Updated string `json:"updated,omitempty"`

    // Versioning: The bucket's versioning configuration.
    Versioning *BucketVersioning `json:"versioning,omitempty"`

    // Website: The bucket's website configuration, controlling how the
    // service behaves when accessing bucket contents as a web site. See the
    // Static Website Examples for more information.
    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 Uses

func (s *Bucket) MarshalJSON() ([]byte, error)

type BucketAccessControl Uses

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

func (s *BucketAccessControl) MarshalJSON() ([]byte, error)

type BucketAccessControlProjectTeam Uses

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

    // Team: The team.
    Team string `json:"team,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ProjectNumber") 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. "ProjectNumber") 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:"-"`
}

BucketAccessControlProjectTeam: The project team associated with the entity, if any.

func (*BucketAccessControlProjectTeam) MarshalJSON Uses

func (s *BucketAccessControlProjectTeam) MarshalJSON() ([]byte, error)

type BucketAccessControls Uses

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 Uses

func (s *BucketAccessControls) MarshalJSON() ([]byte, error)

type BucketAccessControlsDeleteCall Uses

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

func (*BucketAccessControlsDeleteCall) Context Uses

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 Uses

func (c *BucketAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.bucketAccessControls.delete" call.

func (*BucketAccessControlsDeleteCall) Fields Uses

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 Uses

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.

func (*BucketAccessControlsDeleteCall) UserProject Uses

func (c *BucketAccessControlsDeleteCall) UserProject(userProject string) *BucketAccessControlsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketAccessControlsGetCall Uses

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

func (*BucketAccessControlsGetCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketAccessControlsGetCall) UserProject Uses

func (c *BucketAccessControlsGetCall) UserProject(userProject string) *BucketAccessControlsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketAccessControlsInsertCall Uses

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

func (*BucketAccessControlsInsertCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketAccessControlsInsertCall) UserProject Uses

func (c *BucketAccessControlsInsertCall) UserProject(userProject string) *BucketAccessControlsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketAccessControlsListCall Uses

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

func (*BucketAccessControlsListCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketAccessControlsListCall) UserProject Uses

func (c *BucketAccessControlsListCall) UserProject(userProject string) *BucketAccessControlsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketAccessControlsPatchCall Uses

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

func (*BucketAccessControlsPatchCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketAccessControlsPatchCall) UserProject Uses

func (c *BucketAccessControlsPatchCall) UserProject(userProject string) *BucketAccessControlsPatchCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketAccessControlsService Uses

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

func NewBucketAccessControlsService Uses

func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService

func (*BucketAccessControlsService) Delete Uses

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 Uses

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 Uses

func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall

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

func (*BucketAccessControlsService) List Uses

func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall

List: Retrieves ACL entries on the specified bucket.

func (*BucketAccessControlsService) Patch Uses

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 Uses

func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall

Update: Updates an ACL entry on the specified bucket.

type BucketAccessControlsUpdateCall Uses

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

func (*BucketAccessControlsUpdateCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketAccessControlsUpdateCall) UserProject Uses

func (c *BucketAccessControlsUpdateCall) UserProject(userProject string) *BucketAccessControlsUpdateCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketBilling Uses

type BucketBilling struct {
    // RequesterPays: When set to true, bucket is requester pays.
    RequesterPays bool `json:"requesterPays,omitempty"`

    // ForceSendFields is a list of field names (e.g. "RequesterPays") 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. "RequesterPays") 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:"-"`
}

BucketBilling: The bucket's billing configuration.

func (*BucketBilling) MarshalJSON Uses

func (s *BucketBilling) MarshalJSON() ([]byte, error)

type BucketCors Uses

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 Uses

func (s *BucketCors) MarshalJSON() ([]byte, error)

type BucketEncryption Uses

type BucketEncryption struct {
    DefaultKmsKeyName string `json:"defaultKmsKeyName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DefaultKmsKeyName")
    // 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. "DefaultKmsKeyName") 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:"-"`
}

BucketEncryption: Encryption configuration used by default for newly inserted objects, when no encryption config is specified.

func (*BucketEncryption) MarshalJSON Uses

func (s *BucketEncryption) MarshalJSON() ([]byte, error)

type BucketLifecycle Uses

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 lifecycle management for more information.

func (*BucketLifecycle) MarshalJSON Uses

func (s *BucketLifecycle) MarshalJSON() ([]byte, error)

type BucketLifecycleRule Uses

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 Uses

func (s *BucketLifecycleRule) MarshalJSON() ([]byte, error)

type BucketLifecycleRuleAction Uses

type BucketLifecycleRuleAction struct {
    // StorageClass: Target storage class. Required iff the type of the
    // action is SetStorageClass.
    StorageClass string `json:"storageClass,omitempty"`

    // Type: Type of the action. Currently, only Delete and SetStorageClass
    // are supported.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "StorageClass") 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. "StorageClass") 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 Uses

func (s *BucketLifecycleRuleAction) MarshalJSON() ([]byte, error)

type BucketLifecycleRuleCondition Uses

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

    // MatchesStorageClass: Objects having any of the storage classes
    // specified by this condition will be matched. Values include
    // MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD, and
    // DURABLE_REDUCED_AVAILABILITY.
    MatchesStorageClass []string `json:"matchesStorageClass,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 Uses

func (s *BucketLifecycleRuleCondition) MarshalJSON() ([]byte, error)

type BucketLogging Uses

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 Uses

func (s *BucketLogging) MarshalJSON() ([]byte, error)

type BucketOwner Uses

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

    // 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 Uses

func (s *BucketOwner) MarshalJSON() ([]byte, error)

type BucketVersioning Uses

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 Uses

func (s *BucketVersioning) MarshalJSON() ([]byte, error)

type BucketWebsite Uses

type BucketWebsite struct {
    // MainPageSuffix: If the requested object path is missing, the service
    // will ensure the path has a trailing '/', append this suffix, and
    // attempt to retrieve the resulting object. This allows the creation of
    // index.html objects to represent directory pages.
    MainPageSuffix string `json:"mainPageSuffix,omitempty"`

    // NotFoundPage: If the requested object path is missing, and any
    // mainPageSuffix object is missing, if applicable, the service will
    // return the named object from this bucket as the content for a 404 Not
    // Found result.
    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, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.

func (*BucketWebsite) MarshalJSON Uses

func (s *BucketWebsite) MarshalJSON() ([]byte, error)

type Buckets Uses

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 Uses

func (s *Buckets) MarshalJSON() ([]byte, error)

type BucketsDeleteCall Uses

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

func (*BucketsDeleteCall) Context Uses

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 Uses

func (c *BucketsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.buckets.delete" call.

func (*BucketsDeleteCall) Fields Uses

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 Uses

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 Uses

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 Uses

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.

func (*BucketsDeleteCall) UserProject Uses

func (c *BucketsDeleteCall) UserProject(userProject string) *BucketsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsGetCall Uses

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

func (*BucketsGetCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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) IfNoneMatch Uses

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 Uses

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 owner, acl and defaultObjectAcl properties.

func (*BucketsGetCall) UserProject Uses

func (c *BucketsGetCall) UserProject(userProject string) *BucketsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsGetIamPolicyCall Uses

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

func (*BucketsGetIamPolicyCall) Context Uses

func (c *BucketsGetIamPolicyCall) Context(ctx context.Context) *BucketsGetIamPolicyCall

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 (*BucketsGetIamPolicyCall) Do Uses

func (c *BucketsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

Do executes the "storage.buckets.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*BucketsGetIamPolicyCall) Fields Uses

func (c *BucketsGetIamPolicyCall) Fields(s ...googleapi.Field) *BucketsGetIamPolicyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsGetIamPolicyCall) Header Uses

func (c *BucketsGetIamPolicyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BucketsGetIamPolicyCall) IfNoneMatch Uses

func (c *BucketsGetIamPolicyCall) IfNoneMatch(entityTag string) *BucketsGetIamPolicyCall

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 (*BucketsGetIamPolicyCall) UserProject Uses

func (c *BucketsGetIamPolicyCall) UserProject(userProject string) *BucketsGetIamPolicyCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsInsertCall Uses

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

func (*BucketsInsertCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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

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

Possible values:

"authenticatedRead" - Project team owners get OWNER access, and

allAuthenticatedUsers get READER access.

"private" - Project team owners get OWNER access.
"projectPrivate" - Project team members get access according to

their roles.

"publicRead" - Project team owners get OWNER access, and allUsers

get READER access.

"publicReadWrite" - Project team owners get OWNER access, and

allUsers get WRITER access.

func (*BucketsInsertCall) PredefinedDefaultObjectAcl Uses

func (c *BucketsInsertCall) PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsInsertCall

PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket.

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*BucketsInsertCall) Projection Uses

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 owner, acl and defaultObjectAcl properties.

func (*BucketsInsertCall) UserProject Uses

func (c *BucketsInsertCall) UserProject(userProject string) *BucketsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsListCall Uses

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

func (*BucketsListCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (c *BucketsListCall) MaxResults(maxResults int64) *BucketsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.

func (*BucketsListCall) PageToken Uses

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 Uses

func (c *BucketsListCall) Pages(ctx context.Context, f func(*Buckets) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*BucketsListCall) Prefix Uses

func (c *BucketsListCall) Prefix(prefix string) *BucketsListCall

Prefix sets the optional parameter "prefix": Filter results to buckets whose names begin with this prefix.

func (*BucketsListCall) Projection Uses

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 owner, acl and defaultObjectAcl properties.

func (*BucketsListCall) UserProject Uses

func (c *BucketsListCall) UserProject(userProject string) *BucketsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsPatchCall Uses

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

func (*BucketsPatchCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

Possible values:

"authenticatedRead" - Project team owners get OWNER access, and

allAuthenticatedUsers get READER access.

"private" - Project team owners get OWNER access.
"projectPrivate" - Project team members get access according to

their roles.

"publicRead" - Project team owners get OWNER access, and allUsers

get READER access.

"publicReadWrite" - Project team owners get OWNER access, and

allUsers get WRITER access.

func (*BucketsPatchCall) PredefinedDefaultObjectAcl Uses

func (c *BucketsPatchCall) PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsPatchCall

PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket.

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*BucketsPatchCall) Projection Uses

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 owner, acl and defaultObjectAcl properties.

func (*BucketsPatchCall) UserProject Uses

func (c *BucketsPatchCall) UserProject(userProject string) *BucketsPatchCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsService Uses

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

func NewBucketsService Uses

func NewBucketsService(s *Service) *BucketsService

func (*BucketsService) Delete Uses

func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall

Delete: Permanently deletes an empty bucket.

func (*BucketsService) Get Uses

func (r *BucketsService) Get(bucket string) *BucketsGetCall

Get: Returns metadata for the specified bucket.

func (*BucketsService) GetIamPolicy Uses

func (r *BucketsService) GetIamPolicy(bucket string) *BucketsGetIamPolicyCall

GetIamPolicy: Returns an IAM policy for the specified bucket.

func (*BucketsService) Insert Uses

func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsertCall

Insert: Creates a new bucket.

func (*BucketsService) List Uses

func (r *BucketsService) List(projectid string) *BucketsListCall

List: Retrieves a list of buckets for a given project.

func (*BucketsService) Patch Uses

func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall

Patch: Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate. This method supports patch semantics.

func (*BucketsService) SetIamPolicy Uses

func (r *BucketsService) SetIamPolicy(bucket string, policy *Policy) *BucketsSetIamPolicyCall

SetIamPolicy: Updates an IAM policy for the specified bucket.

func (*BucketsService) TestIamPermissions Uses

func (r *BucketsService) TestIamPermissions(bucket string, permissions []string) *BucketsTestIamPermissionsCall

TestIamPermissions: Tests a set of permissions on the given bucket to see which, if any, are held by the caller.

func (*BucketsService) Update Uses

func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall

Update: Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.

type BucketsSetIamPolicyCall Uses

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

func (*BucketsSetIamPolicyCall) Context Uses

func (c *BucketsSetIamPolicyCall) Context(ctx context.Context) *BucketsSetIamPolicyCall

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 (*BucketsSetIamPolicyCall) Do Uses

func (c *BucketsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

Do executes the "storage.buckets.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*BucketsSetIamPolicyCall) Fields Uses

func (c *BucketsSetIamPolicyCall) Fields(s ...googleapi.Field) *BucketsSetIamPolicyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsSetIamPolicyCall) Header Uses

func (c *BucketsSetIamPolicyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BucketsSetIamPolicyCall) UserProject Uses

func (c *BucketsSetIamPolicyCall) UserProject(userProject string) *BucketsSetIamPolicyCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsTestIamPermissionsCall Uses

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

func (*BucketsTestIamPermissionsCall) Context Uses

func (c *BucketsTestIamPermissionsCall) Context(ctx context.Context) *BucketsTestIamPermissionsCall

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 (*BucketsTestIamPermissionsCall) Do Uses

func (c *BucketsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)

Do executes the "storage.buckets.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*BucketsTestIamPermissionsCall) Fields Uses

func (c *BucketsTestIamPermissionsCall) Fields(s ...googleapi.Field) *BucketsTestIamPermissionsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BucketsTestIamPermissionsCall) Header Uses

func (c *BucketsTestIamPermissionsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BucketsTestIamPermissionsCall) IfNoneMatch Uses

func (c *BucketsTestIamPermissionsCall) IfNoneMatch(entityTag string) *BucketsTestIamPermissionsCall

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 (*BucketsTestIamPermissionsCall) UserProject Uses

func (c *BucketsTestIamPermissionsCall) UserProject(userProject string) *BucketsTestIamPermissionsCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type BucketsUpdateCall Uses

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

func (*BucketsUpdateCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

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

Possible values:

"authenticatedRead" - Project team owners get OWNER access, and

allAuthenticatedUsers get READER access.

"private" - Project team owners get OWNER access.
"projectPrivate" - Project team members get access according to

their roles.

"publicRead" - Project team owners get OWNER access, and allUsers

get READER access.

"publicReadWrite" - Project team owners get OWNER access, and

allUsers get WRITER access.

func (*BucketsUpdateCall) PredefinedDefaultObjectAcl Uses

func (c *BucketsUpdateCall) PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsUpdateCall

PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket.

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*BucketsUpdateCall) Projection Uses

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 owner, acl and defaultObjectAcl properties.

func (*BucketsUpdateCall) UserProject Uses

func (c *BucketsUpdateCall) UserProject(userProject string) *BucketsUpdateCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type Channel Uses

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

    // 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 Uses

func (s *Channel) MarshalJSON() ([]byte, error)

type ChannelsService Uses

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

func NewChannelsService Uses

func NewChannelsService(s *Service) *ChannelsService

func (*ChannelsService) Stop Uses

func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall

Stop: Stop watching resources through this channel

type ChannelsStopCall Uses

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

func (*ChannelsStopCall) Context Uses

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 Uses

func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.channels.stop" call.

func (*ChannelsStopCall) Fields Uses

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 Uses

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 Uses

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 Uses

func (s *ComposeRequest) MarshalJSON() ([]byte, error)

type ComposeRequestSourceObjects Uses

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

    // 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 Uses

func (s *ComposeRequestSourceObjects) MarshalJSON() ([]byte, error)

type ComposeRequestSourceObjectsObjectPreconditions Uses

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 Uses

func (s *ComposeRequestSourceObjectsObjectPreconditions) MarshalJSON() ([]byte, error)

type DefaultObjectAccessControlsDeleteCall Uses

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

func (*DefaultObjectAccessControlsDeleteCall) Context Uses

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 Uses

func (c *DefaultObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.defaultObjectAccessControls.delete" call.

func (*DefaultObjectAccessControlsDeleteCall) Fields Uses

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 Uses

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.

func (*DefaultObjectAccessControlsDeleteCall) UserProject Uses

func (c *DefaultObjectAccessControlsDeleteCall) UserProject(userProject string) *DefaultObjectAccessControlsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type DefaultObjectAccessControlsGetCall Uses

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

func (*DefaultObjectAccessControlsGetCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

func (*DefaultObjectAccessControlsGetCall) UserProject Uses

func (c *DefaultObjectAccessControlsGetCall) UserProject(userProject string) *DefaultObjectAccessControlsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type DefaultObjectAccessControlsInsertCall Uses

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

func (*DefaultObjectAccessControlsInsertCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*DefaultObjectAccessControlsInsertCall) UserProject Uses

func (c *DefaultObjectAccessControlsInsertCall) UserProject(userProject string) *DefaultObjectAccessControlsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type DefaultObjectAccessControlsListCall Uses

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

func (*DefaultObjectAccessControlsListCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

func (*DefaultObjectAccessControlsListCall) UserProject Uses

func (c *DefaultObjectAccessControlsListCall) UserProject(userProject string) *DefaultObjectAccessControlsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type DefaultObjectAccessControlsPatchCall Uses

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

func (*DefaultObjectAccessControlsPatchCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*DefaultObjectAccessControlsPatchCall) UserProject Uses

func (c *DefaultObjectAccessControlsPatchCall) UserProject(userProject string) *DefaultObjectAccessControlsPatchCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type DefaultObjectAccessControlsService Uses

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

func NewDefaultObjectAccessControlsService Uses

func NewDefaultObjectAccessControlsService(s *Service) *DefaultObjectAccessControlsService

func (*DefaultObjectAccessControlsService) Delete Uses

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 Uses

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 Uses

func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall

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

func (*DefaultObjectAccessControlsService) List Uses

func (r *DefaultObjectAccessControlsService) List(bucket string) *DefaultObjectAccessControlsListCall

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

func (*DefaultObjectAccessControlsService) Patch Uses

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 Uses

func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall

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

type DefaultObjectAccessControlsUpdateCall Uses

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

func (*DefaultObjectAccessControlsUpdateCall) Context Uses

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 Uses

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 Uses

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 Uses

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.

func (*DefaultObjectAccessControlsUpdateCall) UserProject Uses

func (c *DefaultObjectAccessControlsUpdateCall) UserProject(userProject string) *DefaultObjectAccessControlsUpdateCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type Notification Uses

type Notification struct {
    // CustomAttributes: An optional list of additional attributes to attach
    // to each Cloud PubSub message published for this notification
    // subscription.
    CustomAttributes map[string]string `json:"custom_attributes,omitempty"`

    // Etag: HTTP 1.1 Entity tag for this subscription notification.
    Etag string `json:"etag,omitempty"`

    // EventTypes: If present, only send notifications about listed event
    // types. If empty, sent notifications for all event types.
    EventTypes []string `json:"event_types,omitempty"`

    // Id: The ID of the notification.
    Id  string `json:"id,omitempty"`

    // Kind: The kind of item this is. For notifications, this is always
    // storage#notification.
    Kind string `json:"kind,omitempty"`

    // ObjectNamePrefix: If present, only apply this notification
    // configuration to object names that begin with this prefix.
    ObjectNamePrefix string `json:"object_name_prefix,omitempty"`

    // PayloadFormat: The desired content of the Payload.
    PayloadFormat string `json:"payload_format,omitempty"`

    // SelfLink: The canonical URL of this notification.
    SelfLink string `json:"selfLink,omitempty"`

    // Topic: The Cloud PubSub topic to which this subscription publishes.
    // Formatted as:
    // '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topi
    // c}'
    Topic string `json:"topic,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CustomAttributes") 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. "CustomAttributes") 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:"-"`
}

Notification: A subscription to receive Google PubSub notifications.

func (*Notification) MarshalJSON Uses

func (s *Notification) MarshalJSON() ([]byte, error)

type Notifications Uses

type Notifications struct {
    // Items: The list of items.
    Items []*Notification `json:"items,omitempty"`

    // Kind: The kind of item this is. For lists of notifications, this is
    // always storage#notifications.
    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:"-"`
}

Notifications: A list of notification subscriptions.

func (*Notifications) MarshalJSON Uses

func (s *Notifications) MarshalJSON() ([]byte, error)

type NotificationsDeleteCall Uses

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

func (*NotificationsDeleteCall) Context Uses

func (c *NotificationsDeleteCall) Context(ctx context.Context) *NotificationsDeleteCall

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 (*NotificationsDeleteCall) Do Uses

func (c *NotificationsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.notifications.delete" call.

func (*NotificationsDeleteCall) Fields Uses

func (c *NotificationsDeleteCall) Fields(s ...googleapi.Field) *NotificationsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsDeleteCall) Header Uses

func (c *NotificationsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsDeleteCall) UserProject Uses

func (c *NotificationsDeleteCall) UserProject(userProject string) *NotificationsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type NotificationsGetCall Uses

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

func (*NotificationsGetCall) Context Uses

func (c *NotificationsGetCall) Context(ctx context.Context) *NotificationsGetCall

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 (*NotificationsGetCall) Do Uses

func (c *NotificationsGetCall) Do(opts ...googleapi.CallOption) (*Notification, error)

Do executes the "storage.notifications.get" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.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 (*NotificationsGetCall) Fields Uses

func (c *NotificationsGetCall) Fields(s ...googleapi.Field) *NotificationsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsGetCall) Header Uses

func (c *NotificationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsGetCall) IfNoneMatch Uses

func (c *NotificationsGetCall) IfNoneMatch(entityTag string) *NotificationsGetCall

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 (*NotificationsGetCall) UserProject Uses

func (c *NotificationsGetCall) UserProject(userProject string) *NotificationsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type NotificationsInsertCall Uses

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

func (*NotificationsInsertCall) Context Uses

func (c *NotificationsInsertCall) Context(ctx context.Context) *NotificationsInsertCall

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 (*NotificationsInsertCall) Do Uses

func (c *NotificationsInsertCall) Do(opts ...googleapi.CallOption) (*Notification, error)

Do executes the "storage.notifications.insert" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.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 (*NotificationsInsertCall) Fields Uses

func (c *NotificationsInsertCall) Fields(s ...googleapi.Field) *NotificationsInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsInsertCall) Header Uses

func (c *NotificationsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsInsertCall) UserProject Uses

func (c *NotificationsInsertCall) UserProject(userProject string) *NotificationsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type NotificationsListCall Uses

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

func (*NotificationsListCall) Context Uses

func (c *NotificationsListCall) Context(ctx context.Context) *NotificationsListCall

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 (*NotificationsListCall) Do Uses

func (c *NotificationsListCall) Do(opts ...googleapi.CallOption) (*Notifications, error)

Do executes the "storage.notifications.list" call. Exactly one of *Notifications or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notifications.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 (*NotificationsListCall) Fields Uses

func (c *NotificationsListCall) Fields(s ...googleapi.Field) *NotificationsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsListCall) Header Uses

func (c *NotificationsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsListCall) IfNoneMatch Uses

func (c *NotificationsListCall) IfNoneMatch(entityTag string) *NotificationsListCall

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 (*NotificationsListCall) UserProject Uses

func (c *NotificationsListCall) UserProject(userProject string) *NotificationsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type NotificationsService Uses

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

func NewNotificationsService Uses

func NewNotificationsService(s *Service) *NotificationsService

func (*NotificationsService) Delete Uses

func (r *NotificationsService) Delete(bucket string, notification string) *NotificationsDeleteCall

Delete: Permanently deletes a notification subscription.

func (*NotificationsService) Get Uses

func (r *NotificationsService) Get(bucket string, notification string) *NotificationsGetCall

Get: View a notification configuration.

func (*NotificationsService) Insert Uses

func (r *NotificationsService) Insert(bucket string, notification *Notification) *NotificationsInsertCall

Insert: Creates a notification subscription for a given bucket.

func (*NotificationsService) List Uses

func (r *NotificationsService) List(bucket string) *NotificationsListCall

List: Retrieves a list of notification subscriptions for a given bucket.

type Object Uses

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. If
    // omitted, and the object is accessible to all anonymous users, the
    // default will be public, max-age=3600.
    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. If an object is stored
    // without a Content-Type, it is served as application/octet-stream.
    ContentType string `json:"contentType,omitempty"`

    // Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B;
    // encoded using base64 in big-endian byte order. For more information
    // about using the CRC32c checksum, see Hashes and ETags: Best
    // Practices.
    Crc32c string `json:"crc32c,omitempty"`

    // CustomerEncryption: Metadata of customer-supplied encryption key, if
    // the object is encrypted by such a key.
    CustomerEncryption *ObjectCustomerEncryption `json:"customerEncryption,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, including the bucket name, object name, and
    // generation number.
    Id  string `json:"id,omitempty"`

    // Kind: The kind of item this is. For objects, this is always
    // storage#object.
    Kind string `json:"kind,omitempty"`

    // KmsKeyName: Cloud KMS Key used to encrypt this object, if the object
    // is encrypted by such a key.
    KmsKeyName string `json:"kmsKeyName,omitempty"`

    // Md5Hash: MD5 hash of the data; encoded using base64. For more
    // information about using the MD5 hash, see Hashes and ETags: Best
    // Practices.
    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 the 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"`

    // TimeCreated: The creation time of the object in RFC 3339 format.
    TimeCreated string `json:"timeCreated,omitempty"`

    // TimeDeleted: The 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"`

    // TimeStorageClassUpdated: The time at which the object's storage class
    // was last changed. When the object is initially created, it will be
    // set to timeCreated.
    TimeStorageClassUpdated string `json:"timeStorageClassUpdated,omitempty"`

    // Updated: The 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 Uses

func (s *Object) MarshalJSON() ([]byte, error)

type ObjectAccessControl Uses

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, if applied to an
    // 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, if applied to an 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.
    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 Uses

func (s *ObjectAccessControl) MarshalJSON() ([]byte, error)

type ObjectAccessControlProjectTeam Uses

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

    // Team: The team.
    Team string `json:"team,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ProjectNumber") 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. "ProjectNumber") 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:"-"`
}

ObjectAccessControlProjectTeam: The project team associated with the entity, if any.

func (*ObjectAccessControlProjectTeam) MarshalJSON Uses

func (s *ObjectAccessControlProjectTeam) MarshalJSON() ([]byte, error)

type ObjectAccessControls Uses

type ObjectAccessControls struct {
    // Items: The list of items.
    Items []*ObjectAccessControl `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 Uses

func (s *ObjectAccessControls) MarshalJSON() ([]byte, error)

type ObjectAccessControlsDeleteCall Uses

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

func (*ObjectAccessControlsDeleteCall) Context Uses

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 Uses

func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.objectAccessControls.delete" call.

func (*ObjectAccessControlsDeleteCall) Fields Uses

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 Uses

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

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.

func (*ObjectAccessControlsDeleteCall) UserProject Uses

func (c *ObjectAccessControlsDeleteCall) UserProject(userProject string) *ObjectAccessControlsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectAccessControlsGetCall Uses

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

func (*ObjectAccessControlsGetCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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 Uses

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.

func (*ObjectAccessControlsGetCall) UserProject Uses

func (c *ObjectAccessControlsGetCall) UserProject(userProject string) *ObjectAccessControlsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectAccessControlsInsertCall Uses

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

func (*ObjectAccessControlsInsertCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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.

func (*ObjectAccessControlsInsertCall) UserProject Uses

func (c *ObjectAccessControlsInsertCall) UserProject(userProject string) *ObjectAccessControlsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectAccessControlsListCall Uses

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

func (*ObjectAccessControlsListCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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 Uses

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.

func (*ObjectAccessControlsListCall) UserProject Uses

func (c *ObjectAccessControlsListCall) UserProject(userProject string) *ObjectAccessControlsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectAccessControlsPatchCall Uses

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

func (*ObjectAccessControlsPatchCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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.

func (*ObjectAccessControlsPatchCall) UserProject Uses

func (c *ObjectAccessControlsPatchCall) UserProject(userProject string) *ObjectAccessControlsPatchCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectAccessControlsService Uses

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

func NewObjectAccessControlsService Uses

func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService

func (*ObjectAccessControlsService) Delete Uses

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 Uses

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 Uses

func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall

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

func (*ObjectAccessControlsService) List Uses

func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall

List: Retrieves ACL entries on the specified object.

func (*ObjectAccessControlsService) Patch Uses

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 Uses

func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall

Update: Updates an ACL entry on the specified object.

type ObjectAccessControlsUpdateCall Uses

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

func (*ObjectAccessControlsUpdateCall) Context Uses

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 Uses

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 Uses

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 Uses

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

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.

func (*ObjectAccessControlsUpdateCall) UserProject Uses

func (c *ObjectAccessControlsUpdateCall) UserProject(userProject string) *ObjectAccessControlsUpdateCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectCustomerEncryption Uses

type ObjectCustomerEncryption struct {
    // EncryptionAlgorithm: The encryption algorithm.
    EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`

    // KeySha256: SHA256 hash value of the encryption key.
    KeySha256 string `json:"keySha256,omitempty"`

    // ForceSendFields is a list of field names (e.g. "EncryptionAlgorithm")
    // 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. "EncryptionAlgorithm") 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:"-"`
}

ObjectCustomerEncryption: Metadata of customer-supplied encryption key, if the object is encrypted by such a key.

func (*ObjectCustomerEncryption) MarshalJSON Uses

func (s *ObjectCustomerEncryption) MarshalJSON() ([]byte, error)

type ObjectOwner Uses

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 Uses

func (s *ObjectOwner) MarshalJSON() ([]byte, error)

type Objects Uses

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 Uses

func (s *Objects) MarshalJSON() ([]byte, error)

type ObjectsComposeCall Uses

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

func (*ObjectsComposeCall) Context Uses

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) DestinationPredefinedAcl Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsComposeCall) Do Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsComposeCall) IfMetagenerationMatch Uses

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.

func (*ObjectsComposeCall) KmsKeyName Uses

func (c *ObjectsComposeCall) KmsKeyName(kmsKeyName string) *ObjectsComposeCall

KmsKeyName sets the optional parameter "kmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,

that will be used to encrypt the object. Overrides the object

metadata's kms_key_name value, if any.

func (*ObjectsComposeCall) UserProject Uses

func (c *ObjectsComposeCall) UserProject(userProject string) *ObjectsComposeCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsCopyCall Uses

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

func (*ObjectsCopyCall) Context Uses

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) DestinationPredefinedAcl Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsCopyCall) Do Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsCopyCall) IfGenerationNotMatch Uses

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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsCopyCall) IfMetagenerationMatch Uses

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 Uses

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 Uses

func (c *ObjectsCopyCall) IfSourceGenerationMatch(ifSourceGenerationMatch int64) *ObjectsCopyCall

IfSourceGenerationMatch sets the optional parameter "ifSourceGenerationMatch": Makes the operation conditional on whether the source object's current generation matches the given value.

func (*ObjectsCopyCall) IfSourceGenerationNotMatch Uses

func (c *ObjectsCopyCall) IfSourceGenerationNotMatch(ifSourceGenerationNotMatch int64) *ObjectsCopyCall

IfSourceGenerationNotMatch sets the optional parameter "ifSourceGenerationNotMatch": Makes the operation conditional on whether the source object's current generation does not match the given value.

func (*ObjectsCopyCall) IfSourceMetagenerationMatch Uses

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 Uses

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 Uses

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 owner, acl property.

func (*ObjectsCopyCall) SourceGeneration Uses

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

func (*ObjectsCopyCall) UserProject Uses

func (c *ObjectsCopyCall) UserProject(userProject string) *ObjectsCopyCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsDeleteCall Uses

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

func (*ObjectsDeleteCall) Context Uses

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 Uses

func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "storage.objects.delete" call.

func (*ObjectsDeleteCall) Fields Uses

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 Uses

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) Header Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsDeleteCall) IfGenerationNotMatch Uses

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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsDeleteCall) IfMetagenerationMatch Uses

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 Uses

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.

func (*ObjectsDeleteCall) UserProject Uses

func (c *ObjectsDeleteCall) UserProject(userProject string) *ObjectsDeleteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsGetCall Uses

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

func (*ObjectsGetCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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) Header Uses

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 Uses

func (c *ObjectsGetCall) IfGenerationMatch(ifGenerationMatch int64) *ObjectsGetCall

IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsGetCall) IfGenerationNotMatch Uses

func (c *ObjectsGetCall) IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsGetCall

IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsGetCall) IfMetagenerationMatch Uses

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 Uses

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) IfNoneMatch Uses

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 Uses

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 owner, acl property.

func (*ObjectsGetCall) UserProject Uses

func (c *ObjectsGetCall) UserProject(userProject string) *ObjectsGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsGetIamPolicyCall Uses

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

func (*ObjectsGetIamPolicyCall) Context Uses

func (c *ObjectsGetIamPolicyCall) Context(ctx context.Context) *ObjectsGetIamPolicyCall

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 (*ObjectsGetIamPolicyCall) Do Uses

func (c *ObjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

Do executes the "storage.objects.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ObjectsGetIamPolicyCall) Fields Uses

func (c *ObjectsGetIamPolicyCall) Fields(s ...googleapi.Field) *ObjectsGetIamPolicyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsGetIamPolicyCall) Generation Uses

func (c *ObjectsGetIamPolicyCall) Generation(generation int64) *ObjectsGetIamPolicyCall

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

func (*ObjectsGetIamPolicyCall) Header Uses

func (c *ObjectsGetIamPolicyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ObjectsGetIamPolicyCall) IfNoneMatch Uses

func (c *ObjectsGetIamPolicyCall) IfNoneMatch(entityTag string) *ObjectsGetIamPolicyCall

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 (*ObjectsGetIamPolicyCall) UserProject Uses

func (c *ObjectsGetIamPolicyCall) UserProject(userProject string) *ObjectsGetIamPolicyCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsInsertCall Uses

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

func (*ObjectsInsertCall) ContentEncoding Uses

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) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsInsertCall) IfGenerationNotMatch Uses

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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsInsertCall) IfMetagenerationMatch Uses

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 Uses

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) KmsKeyName Uses

func (c *ObjectsInsertCall) KmsKeyName(kmsKeyName string) *ObjectsInsertCall

KmsKeyName sets the optional parameter "kmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,

that will be used to encrypt the object. Overrides the object

metadata's kms_key_name value, if any.

func (*ObjectsInsertCall) Media Uses

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 Uses

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. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.

func (*ObjectsInsertCall) PredefinedAcl Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsInsertCall) ProgressUpdater Uses

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 Uses

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 owner, acl property.

func (*ObjectsInsertCall) ResumableMedia Uses

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.

func (*ObjectsInsertCall) UserProject Uses

func (c *ObjectsInsertCall) UserProject(userProject string) *ObjectsInsertCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsListCall Uses

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

func (*ObjectsListCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (c *ObjectsListCall) MaxResults(maxResults int64) *ObjectsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.

func (*ObjectsListCall) PageToken Uses

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 Uses

func (c *ObjectsListCall) Pages(ctx context.Context, f func(*Objects) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ObjectsListCall) Prefix Uses

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 Uses

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 owner, acl property.

func (*ObjectsListCall) UserProject Uses

func (c *ObjectsListCall) UserProject(userProject string) *ObjectsListCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

func (*ObjectsListCall) Versions Uses

func (c *ObjectsListCall) Versions(versions bool) *ObjectsListCall

Versions sets the optional parameter "versions": If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning.

type ObjectsPatchCall Uses

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

func (*ObjectsPatchCall) Context Uses

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 Uses

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 Uses

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 Uses

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) Header Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsPatchCall) IfGenerationNotMatch Uses

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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsPatchCall) IfMetagenerationMatch Uses

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 Uses

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 Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsPatchCall) Projection Uses

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 owner, acl property.

func (*ObjectsPatchCall) UserProject Uses

func (c *ObjectsPatchCall) UserProject(userProject string) *ObjectsPatchCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsRewriteCall Uses

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

func (*ObjectsRewriteCall) Context Uses

func (c *ObjectsRewriteCall) Context(ctx context.Context) *ObjectsRewriteCall

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 (*ObjectsRewriteCall) DestinationKmsKeyName Uses

func (c *ObjectsRewriteCall) DestinationKmsKeyName(destinationKmsKeyName string) *ObjectsRewriteCall

DestinationKmsKeyName sets the optional parameter "destinationKmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key,

that will be used to encrypt the object. Overrides the object

metadata's kms_key_name value, if any.

func (*ObjectsRewriteCall) DestinationPredefinedAcl Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsRewriteCall) Do Uses

func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse, error)

Do executes the "storage.objects.rewrite" call. Exactly one of *RewriteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RewriteResponse.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 (*ObjectsRewriteCall) Fields Uses

func (c *ObjectsRewriteCall) Fields(s ...googleapi.Field) *ObjectsRewriteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsRewriteCall) Header Uses

func (c *ObjectsRewriteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ObjectsRewriteCall) IfGenerationMatch Uses

func (c *ObjectsRewriteCall) IfGenerationMatch(ifGenerationMatch int64) *ObjectsRewriteCall

IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsRewriteCall) IfGenerationNotMatch Uses

func (c *ObjectsRewriteCall) IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsRewriteCall

IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsRewriteCall) IfMetagenerationMatch Uses

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

IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the destination object's current metageneration matches the given value.

func (*ObjectsRewriteCall) IfMetagenerationNotMatch Uses

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

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 (*ObjectsRewriteCall) IfSourceGenerationMatch Uses

func (c *ObjectsRewriteCall) IfSourceGenerationMatch(ifSourceGenerationMatch int64) *ObjectsRewriteCall

IfSourceGenerationMatch sets the optional parameter "ifSourceGenerationMatch": Makes the operation conditional on whether the source object's current generation matches the given value.

func (*ObjectsRewriteCall) IfSourceGenerationNotMatch Uses

func (c *ObjectsRewriteCall) IfSourceGenerationNotMatch(ifSourceGenerationNotMatch int64) *ObjectsRewriteCall

IfSourceGenerationNotMatch sets the optional parameter "ifSourceGenerationNotMatch": Makes the operation conditional on whether the source object's current generation does not match the given value.

func (*ObjectsRewriteCall) IfSourceMetagenerationMatch Uses

func (c *ObjectsRewriteCall) IfSourceMetagenerationMatch(ifSourceMetagenerationMatch int64) *ObjectsRewriteCall

IfSourceMetagenerationMatch sets the optional parameter "ifSourceMetagenerationMatch": Makes the operation conditional on whether the source object's current metageneration matches the given value.

func (*ObjectsRewriteCall) IfSourceMetagenerationNotMatch Uses

func (c *ObjectsRewriteCall) IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch int64) *ObjectsRewriteCall

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 (*ObjectsRewriteCall) MaxBytesRewrittenPerCall Uses

func (c *ObjectsRewriteCall) MaxBytesRewrittenPerCall(maxBytesRewrittenPerCall int64) *ObjectsRewriteCall

MaxBytesRewrittenPerCall sets the optional parameter "maxBytesRewrittenPerCall": The maximum number of bytes that will be rewritten per rewrite request. Most callers shouldn't need to specify this parameter - it is primarily in place to support testing. If specified the value must be an integral multiple of 1 MiB (1048576). Also, this only applies to requests where the source and destination span locations and/or storage classes. Finally, this value must not change across rewrite calls else you'll get an error that the rewriteToken is invalid.

func (*ObjectsRewriteCall) Projection Uses

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

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 owner, acl property.

func (*ObjectsRewriteCall) RewriteToken Uses

func (c *ObjectsRewriteCall) RewriteToken(rewriteToken string) *ObjectsRewriteCall

RewriteToken sets the optional parameter "rewriteToken": Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request.

func (*ObjectsRewriteCall) SourceGeneration Uses

func (c *ObjectsRewriteCall) SourceGeneration(sourceGeneration int64) *ObjectsRewriteCall

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

func (*ObjectsRewriteCall) UserProject Uses

func (c *ObjectsRewriteCall) UserProject(userProject string) *ObjectsRewriteCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsService Uses

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

func NewObjectsService Uses

func NewObjectsService(s *Service) *ObjectsService

func (*ObjectsService) Compose Uses

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 Uses

func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall

Copy: Copies a source object to a destination object. Optionally overrides metadata.

func (*ObjectsService) Delete Uses

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 Uses

func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall

Get: Retrieves an object or its metadata.

func (*ObjectsService) GetIamPolicy Uses

func (r *ObjectsService) GetIamPolicy(bucket string, object string) *ObjectsGetIamPolicyCall

GetIamPolicy: Returns an IAM policy for the specified object.

func (*ObjectsService) Insert Uses

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

Insert: Stores a new object and metadata.

func (*ObjectsService) List Uses

func (r *ObjectsService) List(bucket string) *ObjectsListCall

List: Retrieves a list of objects matching the criteria.

func (*ObjectsService) Patch Uses

func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall

Patch: Updates an object's metadata. This method supports patch semantics.

func (*ObjectsService) Rewrite Uses

func (r *ObjectsService) Rewrite(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsRewriteCall

Rewrite: Rewrites a source object to a destination object. Optionally overrides metadata.

func (*ObjectsService) SetIamPolicy Uses

func (r *ObjectsService) SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall

SetIamPolicy: Updates an IAM policy for the specified object.

func (*ObjectsService) TestIamPermissions Uses

func (r *ObjectsService) TestIamPermissions(bucket string, object string, permissions []string) *ObjectsTestIamPermissionsCall

TestIamPermissions: Tests a set of permissions on the given object to see which, if any, are held by the caller.

func (*ObjectsService) Update Uses

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

Update: Updates an object's metadata.

func (*ObjectsService) WatchAll Uses

func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall

WatchAll: Watch for changes on all objects in a bucket.

type ObjectsSetIamPolicyCall Uses

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

func (*ObjectsSetIamPolicyCall) Context Uses

func (c *ObjectsSetIamPolicyCall) Context(ctx context.Context) *ObjectsSetIamPolicyCall

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 (*ObjectsSetIamPolicyCall) Do Uses

func (c *ObjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error)

Do executes the "storage.objects.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.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 (*ObjectsSetIamPolicyCall) Fields Uses

func (c *ObjectsSetIamPolicyCall) Fields(s ...googleapi.Field) *ObjectsSetIamPolicyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsSetIamPolicyCall) Generation Uses

func (c *ObjectsSetIamPolicyCall) Generation(generation int64) *ObjectsSetIamPolicyCall

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

func (*ObjectsSetIamPolicyCall) Header Uses

func (c *ObjectsSetIamPolicyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ObjectsSetIamPolicyCall) UserProject Uses

func (c *ObjectsSetIamPolicyCall) UserProject(userProject string) *ObjectsSetIamPolicyCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsTestIamPermissionsCall Uses

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

func (*ObjectsTestIamPermissionsCall) Context Uses

func (c *ObjectsTestIamPermissionsCall) Context(ctx context.Context) *ObjectsTestIamPermissionsCall

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 (*ObjectsTestIamPermissionsCall) Do Uses

func (c *ObjectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)

Do executes the "storage.objects.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.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 (*ObjectsTestIamPermissionsCall) Fields Uses

func (c *ObjectsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ObjectsTestIamPermissionsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ObjectsTestIamPermissionsCall) Generation Uses

func (c *ObjectsTestIamPermissionsCall) Generation(generation int64) *ObjectsTestIamPermissionsCall

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

func (*ObjectsTestIamPermissionsCall) Header Uses

func (c *ObjectsTestIamPermissionsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ObjectsTestIamPermissionsCall) IfNoneMatch Uses

func (c *ObjectsTestIamPermissionsCall) IfNoneMatch(entityTag string) *ObjectsTestIamPermissionsCall

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 (*ObjectsTestIamPermissionsCall) UserProject Uses

func (c *ObjectsTestIamPermissionsCall) UserProject(userProject string) *ObjectsTestIamPermissionsCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsUpdateCall Uses

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

func (*ObjectsUpdateCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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) Header Uses

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 Uses

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. Setting to 0 makes the operation succeed only if there are no live versions of the object.

func (*ObjectsUpdateCall) IfGenerationNotMatch Uses

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. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.

func (*ObjectsUpdateCall) IfMetagenerationMatch Uses

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 Uses

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 Uses

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

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

Possible values:

"authenticatedRead" - Object owner gets OWNER access, and

allAuthenticatedUsers get READER access.

"bucketOwnerFullControl" - Object owner gets OWNER access, and

project team owners get OWNER access.

"bucketOwnerRead" - Object owner gets OWNER access, and project

team owners get READER access.

"private" - Object owner gets OWNER access.
"projectPrivate" - Object owner gets OWNER access, and project team

members get access according to their roles.

"publicRead" - Object owner gets OWNER access, and allUsers get

READER access.

func (*ObjectsUpdateCall) Projection Uses

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 owner, acl property.

func (*ObjectsUpdateCall) UserProject Uses

func (c *ObjectsUpdateCall) UserProject(userProject string) *ObjectsUpdateCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ObjectsWatchAllCall Uses

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

func (*ObjectsWatchAllCall) Context Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (c *ObjectsWatchAllCall) MaxResults(maxResults int64) *ObjectsWatchAllCall

MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.

func (*ObjectsWatchAllCall) PageToken Uses

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 Uses

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 Uses

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 owner, acl property.

func (*ObjectsWatchAllCall) UserProject Uses

func (c *ObjectsWatchAllCall) UserProject(userProject string) *ObjectsWatchAllCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

func (*ObjectsWatchAllCall) Versions Uses

func (c *ObjectsWatchAllCall) Versions(versions bool) *ObjectsWatchAllCall

Versions sets the optional parameter "versions": If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning.

type Policy Uses

type Policy struct {
    // Bindings: An association between a role, which comes with a set of
    // permissions, and members who may assume that role.
    Bindings []*PolicyBindings `json:"bindings,omitempty"`

    // Etag: HTTP 1.1  Entity tag for the policy.
    Etag string `json:"etag,omitempty"`

    // Kind: The kind of item this is. For policies, this is always
    // storage#policy. This field is ignored on input.
    Kind string `json:"kind,omitempty"`

    // ResourceId: The ID of the resource to which this policy belongs. Will
    // be of the form projects/_/buckets/bucket for buckets, and
    // projects/_/buckets/bucket/objects/object for objects. A specific
    // generation may be specified by appending #generationNumber to the end
    // of the object name, e.g.
    // projects/_/buckets/my-bucket/objects/data.txt#17. The current
    // generation can be denoted with #0. This field is ignored on input.
    ResourceId string `json:"resourceId,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Bindings") 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. "Bindings") 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:"-"`
}

Policy: A bucket/object IAM policy.

func (*Policy) MarshalJSON Uses

func (s *Policy) MarshalJSON() ([]byte, error)

type PolicyBindings Uses

type PolicyBindings struct {
    Condition interface{} `json:"condition,omitempty"`

    // Members: A collection of identifiers for members who may assume the
    // provided role. Recognized identifiers are as follows:
    // - allUsers — A special identifier that represents anyone on the
    // internet; with or without a Google account.
    // - allAuthenticatedUsers — A special identifier that represents
    // anyone who is authenticated with a Google account or a service
    // account.
    // - user:emailid — An email address that represents a specific
    // account. For example, user:alice@gmail.com or user:joe@example.com.
    //
    // - serviceAccount:emailid — An email address that represents a
    // service account. For example,
    // serviceAccount:my-other-app@appspot.gserviceaccount.com .
    // - group:emailid — An email address that represents a Google group.
    // For example, group:admins@example.com.
    // - domain:domain — A Google Apps domain name that represents all the
    // users of that domain. For example, domain:google.com or
    // domain:example.com.
    // - projectOwner:projectid — Owners of the given project. For
    // example, projectOwner:my-example-project
    // - projectEditor:projectid — Editors of the given project. For
    // example, projectEditor:my-example-project
    // - projectViewer:projectid — Viewers of the given project. For
    // example, projectViewer:my-example-project
    Members []string `json:"members,omitempty"`

    // Role: The role to which members belong. Two types of roles are
    // supported: new IAM roles, which grant permissions that do not map
    // directly to those provided by ACLs, and legacy IAM roles, which do
    // map directly to ACL permissions. All roles are of the format
    // roles/storage.specificRole.
    // The new IAM roles are:
    // - roles/storage.admin — Full control of Google Cloud Storage
    // resources.
    // - roles/storage.objectViewer — Read-Only access to Google Cloud
    // Storage objects.
    // - roles/storage.objectCreator — Access to create objects in Google
    // Cloud Storage.
    // - roles/storage.objectAdmin — Full control of Google Cloud Storage
    // objects.   The legacy IAM roles are:
    // - roles/storage.legacyObjectReader — Read-only access to objects
    // without listing. Equivalent to an ACL entry on an object with the
    // READER role.
    // - roles/storage.legacyObjectOwner — Read/write access to existing
    // objects without listing. Equivalent to an ACL entry on an object with
    // the OWNER role.
    // - roles/storage.legacyBucketReader — Read access to buckets with
    // object listing. Equivalent to an ACL entry on a bucket with the
    // READER role.
    // - roles/storage.legacyBucketWriter — Read access to buckets with
    // object listing/creation/deletion. Equivalent to an ACL entry on a
    // bucket with the WRITER role.
    // - roles/storage.legacyBucketOwner — Read and write access to
    // existing buckets with object listing/creation/deletion. Equivalent to
    // an ACL entry on a bucket with the OWNER role.
    Role string `json:"role,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 (*PolicyBindings) MarshalJSON Uses

func (s *PolicyBindings) MarshalJSON() ([]byte, error)

type ProjectsService Uses

type ProjectsService struct {
    ServiceAccount *ProjectsServiceAccountService
    // contains filtered or unexported fields
}

func NewProjectsService Uses

func NewProjectsService(s *Service) *ProjectsService

type ProjectsServiceAccountGetCall Uses

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

func (*ProjectsServiceAccountGetCall) Context Uses

func (c *ProjectsServiceAccountGetCall) Context(ctx context.Context) *ProjectsServiceAccountGetCall

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 (*ProjectsServiceAccountGetCall) Do Uses

func (c *ProjectsServiceAccountGetCall) Do(opts ...googleapi.CallOption) (*ServiceAccount, error)

Do executes the "storage.projects.serviceAccount.get" call. Exactly one of *ServiceAccount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceAccount.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 (*ProjectsServiceAccountGetCall) Fields Uses

func (c *ProjectsServiceAccountGetCall) Fields(s ...googleapi.Field) *ProjectsServiceAccountGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ProjectsServiceAccountGetCall) Header Uses

func (c *ProjectsServiceAccountGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ProjectsServiceAccountGetCall) IfNoneMatch Uses

func (c *ProjectsServiceAccountGetCall) IfNoneMatch(entityTag string) *ProjectsServiceAccountGetCall

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 (*ProjectsServiceAccountGetCall) UserProject Uses

func (c *ProjectsServiceAccountGetCall) UserProject(userProject string) *ProjectsServiceAccountGetCall

UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.

type ProjectsServiceAccountService Uses

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

func NewProjectsServiceAccountService Uses

func NewProjectsServiceAccountService(s *Service) *ProjectsServiceAccountService

func (*ProjectsServiceAccountService) Get Uses

func (r *ProjectsServiceAccountService) Get(projectId string) *ProjectsServiceAccountGetCall

Get: Get the email address of this project's Google Cloud Storage service account.

type RewriteResponse Uses

type RewriteResponse struct {
    // Done: true if the copy is finished; otherwise, false if the copy is
    // in progress. This property is always present in the response.
    Done bool `json:"done,omitempty"`

    // Kind: The kind of item this is.
    Kind string `json:"kind,omitempty"`

    // ObjectSize: The total size of the object being copied in bytes. This
    // property is always present in the response.
    ObjectSize int64 `json:"objectSize,omitempty,string"`

    // Resource: A resource containing the metadata for the copied-to
    // object. This property is present in the response only when copying
    // completes.
    Resource *Object `json:"resource,omitempty"`

    // RewriteToken: A token to use in subsequent requests to continue
    // copying data. This token is present in the response only when there
    // is more data to copy.
    RewriteToken string `json:"rewriteToken,omitempty"`

    // TotalBytesRewritten: The total bytes written so far, which can be
    // used to provide a waiting user with a progress indicator. This
    // property is always present in the response.
    TotalBytesRewritten int64 `json:"totalBytesRewritten,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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:"-"`
}

RewriteResponse: A rewrite response.

func (*RewriteResponse) MarshalJSON Uses

func (s *RewriteResponse) MarshalJSON() ([]byte, error)

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    BucketAccessControls *BucketAccessControlsService

    Buckets *BucketsService

    Channels *ChannelsService

    DefaultObjectAccessControls *DefaultObjectAccessControlsService

    Notifications *NotificationsService

    ObjectAccessControls *ObjectAccessControlsService

    Objects *ObjectsService

    Projects *ProjectsService
    // contains filtered or unexported fields
}

func New Uses

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

type ServiceAccount Uses

type ServiceAccount struct {
    // EmailAddress: The ID of the notification.
    EmailAddress string `json:"email_address,omitempty"`

    // Kind: The kind of item this is. For notifications, this is always
    // storage#notification.
    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. "EmailAddress") 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. "EmailAddress") 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:"-"`
}

ServiceAccount: A subscription to receive Google PubSub notifications.

func (*ServiceAccount) MarshalJSON Uses

func (s *ServiceAccount) MarshalJSON() ([]byte, error)

type TestIamPermissionsResponse Uses

type TestIamPermissionsResponse struct {
    // Kind: The kind of item this is.
    Kind string `json:"kind,omitempty"`

    // Permissions: The permissions held by the caller. Permissions are
    // always of the format storage.resource.capability, where resource is
    // one of buckets or objects. The supported permissions are as follows:
    //
    // - storage.buckets.delete — Delete bucket.
    // - storage.buckets.get — Read bucket metadata.
    // - storage.buckets.getIamPolicy — Read bucket IAM policy.
    // - storage.buckets.create — Create bucket.
    // - storage.buckets.list — List buckets.
    // - storage.buckets.setIamPolicy — Update bucket IAM policy.
    // - storage.buckets.update — Update bucket metadata.
    // - storage.objects.delete — Delete object.
    // - storage.objects.get — Read object data and metadata.
    // - storage.objects.getIamPolicy — Read object IAM policy.
    // - storage.objects.create — Create object.
    // - storage.objects.list — List objects.
    // - storage.objects.setIamPolicy — Update object IAM policy.
    // - storage.objects.update — Update object metadata.
    Permissions []string `json:"permissions,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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:"-"`
}

TestIamPermissionsResponse: A storage.(buckets|objects).testIamPermissions response.

func (*TestIamPermissionsResponse) MarshalJSON Uses

func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error)

Package storage imports 13 packages (graph) and is imported by 167 packages. Updated 2017-09-24. Refresh now. Tools for package owners.