Involved Source Files
Package storage provides access to the Cloud Storage JSON API.
This package is DEPRECATED. Use package cloud.google.com/go/storage instead.
For product documentation, see: https://developers.google.com/storage/docs/json_api/
Creating a client
Usage example:
import "google.golang.org/api/storage/v1"
...
ctx := context.Background()
storageService, err := storage.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options
By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
storageService, err := storage.NewService(ctx, option.WithScopes(storage.DevstorageReadWriteScope))
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
storageService, err := storage.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
storageService, err := storage.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Package-Level Type Names (total 105, all are exported)
/* sort exporteds by: | */
Bucket: A bucket.
Acl: Access controls on the bucket.
Billing: The bucket's billing configuration.
Cors: The bucket's Cross-Origin Resource Sharing (CORS)
configuration.
DefaultEventBasedHold: The default value for event-based hold on
newly created objects in this bucket. Event-based hold is a way to
retain objects indefinitely until an event occurs, signified by the
hold's release. After being released, such objects will be subject to
bucket-level retention (if any). One sample use case of this flag is
for banks to hold loan documents for at least 3 years after loan is
paid in full. Here, bucket-level retention is 3 years and the event
is loan being paid in full. In this example, these objects will be
held intact for any number of years until the event has occurred
(event-based hold on the object is released) and then 3 more years
after that. That means retention duration of the objects begins from
the moment event-based hold transitioned from true to false. Objects
under event-based hold cannot be deleted, overwritten or archived
until the hold is removed.
DefaultObjectAcl: Default access controls to apply to new objects
when no ACL is provided.
Encryption: Encryption configuration for a bucket.
Etag: HTTP 1.1 Entity tag for the bucket.
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.
IamConfiguration: The bucket's IAM configuration.
Id: The ID of the bucket. For buckets, the id and name properties are
the same.
Kind: The kind of item this is. For buckets, this is always
storage#bucket.
Labels: User-provided labels, in key/value pairs.
Lifecycle: The bucket's lifecycle configuration. See lifecycle
management for more information.
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.
LocationType: The type of the bucket location.
Logging: The bucket's logging configuration, which defines the
destination bucket and optional name prefix for the current bucket's
logs.
Metageneration: The metadata generation of this bucket.
Name: The name of the bucket.
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.
Owner: The owner of the bucket. This is always the project team's
owner group.
ProjectNumber: The project number of the project the bucket belongs
to.
RetentionPolicy: The bucket's retention policy. The retention policy
enforces a minimum retention time for all objects contained in the
bucket, based on their creation time. Any attempt to overwrite or
delete objects younger than the retention period will result in a
PERMISSION_DENIED error. An unlocked retention policy can be modified
or removed from the bucket via a storage.buckets.update operation. A
locked retention policy cannot be removed or shortened in duration
for the lifetime of the bucket. Attempting to remove or decrease
period of a locked retention policy will result in a
PERMISSION_DENIED error.
SelfLink: The URI of this bucket.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
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, ARCHIVE, 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.
TimeCreated: The creation time of the bucket in RFC 3339 format.
Updated: The modification time of the bucket in RFC 3339 format.
Versioning: The bucket's versioning configuration.
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.
ZoneAffinity: The zone or zones from which the bucket is intended to
use zonal quota. Requests for data from outside the specified
affinities are still allowed but won't be able to use zonal quota.
The zone or zones need to be within the bucket location otherwise the
requests will fail with a 400 Bad Request response.
ZoneSeparation: If set, objects placed in this bucket are required to
be separated by disaster domain.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketsGetCall).Do(opts ...googleapi.CallOption) (*Bucket, error)
func (*BucketsInsertCall).Do(opts ...googleapi.CallOption) (*Bucket, error)
func (*BucketsLockRetentionPolicyCall).Do(opts ...googleapi.CallOption) (*Bucket, error)
func (*BucketsPatchCall).Do(opts ...googleapi.CallOption) (*Bucket, error)
func (*BucketsUpdateCall).Do(opts ...googleapi.CallOption) (*Bucket, error)
func cloud.google.com/go/storage.(*BucketAttrs).toRawBucket() *Bucket
func cloud.google.com/go/storage.(*BucketAttrsToUpdate).toRawBucket() *Bucket
func (*BucketsService).Insert(projectid string, bucket *Bucket) *BucketsInsertCall
func (*BucketsService).Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall
func (*BucketsService).Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall
func cloud.google.com/go/storage.newBucket(b *Bucket) (*storage.BucketAttrs, error)
BucketAccessControl: An access-control entry.
Bucket: The name of the bucket.
Domain: The domain associated with the entity, if any.
Email: The email address associated with the entity, if any.
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.
EntityId: The ID for the entity, if any.
Etag: HTTP 1.1 Entity tag for the access-control entry.
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.
Id: The ID of the access-control entry.
Kind: The kind of item this is. For bucket access control entries,
this is always storage#bucketAccessControl.
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.
ProjectTeam: The project team associated with the entity, if any.
Role: The access permission for the entity.
SelfLink: The link to this access-control entry.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketAccessControlsGetCall).Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
func (*BucketAccessControlsInsertCall).Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
func (*BucketAccessControlsPatchCall).Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
func (*BucketAccessControlsUpdateCall).Do(opts ...googleapi.CallOption) (*BucketAccessControl, error)
func cloud.google.com/go/storage.toRawBucketACL(rules []storage.ACLRule) []*BucketAccessControl
func cloud.google.com/go/storage.ACLRule.toRawBucketAccessControl(bucket string) *BucketAccessControl
func (*BucketAccessControlsService).Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall
func (*BucketAccessControlsService).Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall
func (*BucketAccessControlsService).Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall
func cloud.google.com/go/storage.toBucketACLRule(a *BucketAccessControl) storage.ACLRule
func cloud.google.com/go/storage.toBucketACLRules(items []*BucketAccessControl) []storage.ACLRule
BucketAccessControlProjectTeam: The project team associated with the
entity, if any.
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.
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.
ProjectNumber: The project number.
Team: The team.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.toBucketProjectTeam(p *BucketAccessControlProjectTeam) *storage.ProjectTeam
BucketAccessControls: An access-control list.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of bucket access control
entries, this is always storage#bucketAccessControls.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketAccessControlsListCall).Do(opts ...googleapi.CallOption) (*BucketAccessControls, error)
bucketstringctx_context.Contextentitystringheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.bucketAccessControls.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsDeleteCall).Context(ctx context.Context) *BucketAccessControlsDeleteCall
func (*BucketAccessControlsDeleteCall).Fields(s ...googleapi.Field) *BucketAccessControlsDeleteCall
func (*BucketAccessControlsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsDeleteCall
func (*BucketAccessControlsDeleteCall).UserProject(userProject string) *BucketAccessControlsDeleteCall
func (*BucketAccessControlsService).Delete(bucket string, entity string) *BucketAccessControlsDeleteCall
bucketstringctx_context.Contextentitystringheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsGetCall).Context(ctx context.Context) *BucketAccessControlsGetCall
func (*BucketAccessControlsGetCall).Fields(s ...googleapi.Field) *BucketAccessControlsGetCall
func (*BucketAccessControlsGetCall).IfNoneMatch(entityTag string) *BucketAccessControlsGetCall
func (*BucketAccessControlsGetCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsGetCall
func (*BucketAccessControlsGetCall).UserProject(userProject string) *BucketAccessControlsGetCall
func (*BucketAccessControlsService).Get(bucket string, entity string) *BucketAccessControlsGetCall
bucketstringbucketaccesscontrol*BucketAccessControlctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsInsertCall).Context(ctx context.Context) *BucketAccessControlsInsertCall
func (*BucketAccessControlsInsertCall).Fields(s ...googleapi.Field) *BucketAccessControlsInsertCall
func (*BucketAccessControlsInsertCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsInsertCall
func (*BucketAccessControlsInsertCall).UserProject(userProject string) *BucketAccessControlsInsertCall
func (*BucketAccessControlsService).Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsListCall).Context(ctx context.Context) *BucketAccessControlsListCall
func (*BucketAccessControlsListCall).Fields(s ...googleapi.Field) *BucketAccessControlsListCall
func (*BucketAccessControlsListCall).IfNoneMatch(entityTag string) *BucketAccessControlsListCall
func (*BucketAccessControlsListCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsListCall
func (*BucketAccessControlsListCall).UserProject(userProject string) *BucketAccessControlsListCall
func (*BucketAccessControlsService).List(bucket string) *BucketAccessControlsListCall
bucketstringbucketaccesscontrol*BucketAccessControlctx_context.Contextentitystringheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsPatchCall).Context(ctx context.Context) *BucketAccessControlsPatchCall
func (*BucketAccessControlsPatchCall).Fields(s ...googleapi.Field) *BucketAccessControlsPatchCall
func (*BucketAccessControlsPatchCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsPatchCall
func (*BucketAccessControlsPatchCall).UserProject(userProject string) *BucketAccessControlsPatchCall
func (*BucketAccessControlsService).Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall
s*Service
Delete: Permanently deletes the ACL entry for the specified entity on
the specified bucket.
Get: Returns the ACL entry for the specified entity on the specified
bucket.
Insert: Creates a new ACL entry on the specified bucket.
List: Retrieves ACL entries on the specified bucket.
Patch: Patches an ACL entry on the specified bucket.
Update: Updates an ACL entry on the specified bucket.
func NewBucketAccessControlsService(s *Service) *BucketAccessControlsService
bucketstringbucketaccesscontrol*BucketAccessControlctx_context.Contextentitystringheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketAccessControlsService).Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall
func (*BucketAccessControlsUpdateCall).Context(ctx context.Context) *BucketAccessControlsUpdateCall
func (*BucketAccessControlsUpdateCall).Fields(s ...googleapi.Field) *BucketAccessControlsUpdateCall
func (*BucketAccessControlsUpdateCall).ProvisionalUserProject(provisionalUserProject string) *BucketAccessControlsUpdateCall
func (*BucketAccessControlsUpdateCall).UserProject(userProject string) *BucketAccessControlsUpdateCall
BucketBilling: The bucket's billing configuration.
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.
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.
RequesterPays: When set to true, Requester Pays is enabled for this
bucket.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
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.
MaxAgeSeconds: The value, in seconds, to return in the
Access-Control-Max-Age header used in preflight responses.
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".
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.
Origin: The list of Origins eligible to receive CORS response
headers. Note: "*" is permitted in the list of origins, and means
"any Origin".
ResponseHeader: The list of HTTP headers other than the simple
response headers to give permission for the user-agent to share
across domains.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.toRawCORS(c []storage.CORS) []*BucketCors
func cloud.google.com/go/storage.toCORS(rc []*BucketCors) []storage.CORS
BucketEncryption: Encryption configuration for a bucket.
DefaultKmsKeyName: A Cloud KMS key that will be used to encrypt
objects inserted into this bucket, if no encryption method is
specified.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.(*BucketEncryption).toRawBucketEncryption() *BucketEncryption
func cloud.google.com/go/storage.toBucketEncryption(e *BucketEncryption) *storage.BucketEncryption
BucketIamConfiguration: The bucket's IAM configuration.
BucketPolicyOnly: The bucket's uniform bucket-level access
configuration. The feature was formerly known as Bucket Policy Only.
For backward compatibility, this field will be populated with
identical information as the uniformBucketLevelAccess field. We
recommend using the uniformBucketLevelAccess field to enable and
disable the feature.
ForceSendFields is a list of field names (e.g. "BucketPolicyOnly") 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.
NullFields is a list of field names (e.g. "BucketPolicyOnly") 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.
UniformBucketLevelAccess: The bucket's uniform bucket-level access
configuration.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.toBucketPolicyOnly(b *BucketIamConfiguration) storage.BucketPolicyOnly
func cloud.google.com/go/storage.toUniformBucketLevelAccess(b *BucketIamConfiguration) storage.UniformBucketLevelAccess
BucketIamConfigurationBucketPolicyOnly: The bucket's uniform
bucket-level access configuration. The feature was formerly known as
Bucket Policy Only. For backward compatibility, this field will be
populated with identical information as the uniformBucketLevelAccess
field. We recommend using the uniformBucketLevelAccess field to
enable and disable the feature.
Enabled: If set, access is controlled only by bucket-level or above
IAM policies.
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.
LockedTime: The deadline for changing
iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC
3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed
from true to false until the locked time, after which the field is
immutable.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketIamConfigurationUniformBucketLevelAccess: The bucket's uniform
bucket-level access configuration.
Enabled: If set, access is controlled only by bucket-level or above
IAM policies.
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.
LockedTime: The deadline for changing
iamConfiguration.bucketPolicyOnly.enabled from true to false in RFC
3339 format. iamConfiguration.bucketPolicyOnly.enabled may be changed
from true to false until the locked time, after which the field is
immutable.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketLifecycle: The bucket's lifecycle configuration. See lifecycle
management for more information.
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.
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.
Rule: A lifecycle management rule, which is made of an action to take
and the condition(s) under which the action will be taken.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.toRawLifecycle(l storage.Lifecycle) *BucketLifecycle
func cloud.google.com/go/storage.toLifecycle(rl *BucketLifecycle) storage.Lifecycle
Action: The action to take.
Condition: The condition(s) under which the action will be taken.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketLifecycleRuleAction: The action to take.
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.
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.
StorageClass: Target storage class. Required iff the type of the
action is SetStorageClass.
Type: Type of the action. Currently, only Delete and SetStorageClass
are supported.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketLifecycleRuleCondition: The condition(s) under which the action
will be taken.
Age: Age of an object (in days). This condition is satisfied when an
object reaches the specified age.
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.
CustomTimeBefore: A date in RFC 3339 format with only the date part
(for instance, "2013-01-15"). This condition is satisfied when the
custom time on an object is before this date in UTC.
DaysSinceCustomTime: Number of days elapsed since the user-specified
timestamp set on an object. The condition is satisfied if the days
elapsed is at least this number. If no custom timestamp is specified
on an object, the condition does not apply.
DaysSinceNoncurrentTime: Number of days elapsed since the noncurrent
timestamp of an object. The condition is satisfied if the days
elapsed is at least this number. This condition is relevant only for
versioned objects. The value of the field must be a nonnegative
integer. If it's zero, the object version will become eligible for
Lifecycle action as soon as it becomes noncurrent.
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.
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.
MatchesPattern: A regular expression that satisfies the RE2 syntax.
This condition is satisfied when the name of the object matches the
RE2 pattern. Note: This feature is currently in the "Early Access"
launch stage and is only available to a whitelisted set of users;
that means that this feature may be changed in backward-incompatible
ways and that it is not guaranteed to be released.
MatchesStorageClass: Objects having any of the storage classes
specified by this condition will be matched. Values include
MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE, STANDARD, and
DURABLE_REDUCED_AVAILABILITY.
NoncurrentTimeBefore: A date in RFC 3339 format with only the date
part (for instance, "2013-01-15"). This condition is satisfied when
the noncurrent time on an object is before this date in UTC. This
condition is relevant only for versioned objects.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketLogging: The bucket's logging configuration, which defines the
destination bucket and optional name prefix for the current bucket's
logs.
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.
LogBucket: The destination bucket where the current bucket's logs
should be placed.
LogObjectPrefix: A prefix for log object names.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.(*BucketLogging).toRawBucketLogging() *BucketLogging
func cloud.google.com/go/storage.toBucketLogging(b *BucketLogging) *storage.BucketLogging
BucketOwner: The owner of the bucket. This is always the project
team's owner group.
Entity: The entity, in the form project-owner-projectId.
EntityId: The ID for the entity.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
BucketRetentionPolicy: The bucket's retention policy. The retention
policy enforces a minimum retention time for all objects contained in
the bucket, based on their creation time. Any attempt to overwrite or
delete objects younger than the retention period will result in a
PERMISSION_DENIED error. An unlocked retention policy can be modified
or removed from the bucket via a storage.buckets.update operation. A
locked retention policy cannot be removed or shortened in duration
for the lifetime of the bucket. Attempting to remove or decrease
period of a locked retention policy will result in a
PERMISSION_DENIED error.
EffectiveTime: Server-determined value that indicates the time from
which policy was enforced and effective. This value is in RFC 3339
format.
ForceSendFields is a list of field names (e.g. "EffectiveTime") 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.
IsLocked: Once locked, an object retention policy cannot be modified.
NullFields is a list of field names (e.g. "EffectiveTime") 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.
RetentionPeriod: The duration in seconds that objects need to be
retained. Retention duration must be greater than zero and less than
100 years. Note that enforcement of retention periods less than a day
is not guaranteed. Such periods should only be used for testing
purposes.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.(*RetentionPolicy).toRawRetentionPolicy() *BucketRetentionPolicy
func cloud.google.com/go/storage.toRetentionPolicy(rp *BucketRetentionPolicy) (*storage.RetentionPolicy, error)
Buckets: A list of buckets.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of buckets, this is always
storage#buckets.
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.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketsListCall).Do(opts ...googleapi.CallOption) (*Buckets, error)
bucketstringctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.buckets.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": If set, only deletes the bucket if its
metageneration matches this value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": If set, only deletes the bucket if its
metageneration does not match this value.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsDeleteCall).Context(ctx context.Context) *BucketsDeleteCall
func (*BucketsDeleteCall).Fields(s ...googleapi.Field) *BucketsDeleteCall
func (*BucketsDeleteCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *BucketsDeleteCall
func (*BucketsDeleteCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *BucketsDeleteCall
func (*BucketsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *BucketsDeleteCall
func (*BucketsDeleteCall).UserProject(userProject string) *BucketsDeleteCall
func (*BucketsService).Delete(bucket string) *BucketsDeleteCall
func cloud.google.com/go/storage.(*BucketHandle).newDeleteCall() (*BucketsDeleteCall, error)
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsGetCall).Context(ctx context.Context) *BucketsGetCall
func (*BucketsGetCall).Fields(s ...googleapi.Field) *BucketsGetCall
func (*BucketsGetCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *BucketsGetCall
func (*BucketsGetCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *BucketsGetCall
func (*BucketsGetCall).IfNoneMatch(entityTag string) *BucketsGetCall
func (*BucketsGetCall).Projection(projection string) *BucketsGetCall
func (*BucketsGetCall).ProvisionalUserProject(provisionalUserProject string) *BucketsGetCall
func (*BucketsGetCall).UserProject(userProject string) *BucketsGetCall
func (*BucketsService).Get(bucket string) *BucketsGetCall
func cloud.google.com/go/storage.(*BucketHandle).newGetCall() (*BucketsGetCall, error)
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
OptionsRequestedPolicyVersion sets the optional parameter
"optionsRequestedPolicyVersion": The IAM policy format version to be
returned. If the optionsRequestedPolicyVersion is for an older
version that doesn't support part of the requested IAM policy, the
request fails.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsGetIamPolicyCall).Context(ctx context.Context) *BucketsGetIamPolicyCall
func (*BucketsGetIamPolicyCall).Fields(s ...googleapi.Field) *BucketsGetIamPolicyCall
func (*BucketsGetIamPolicyCall).IfNoneMatch(entityTag string) *BucketsGetIamPolicyCall
func (*BucketsGetIamPolicyCall).OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *BucketsGetIamPolicyCall
func (*BucketsGetIamPolicyCall).ProvisionalUserProject(provisionalUserProject string) *BucketsGetIamPolicyCall
func (*BucketsGetIamPolicyCall).UserProject(userProject string) *BucketsGetIamPolicyCall
func (*BucketsService).GetIamPolicy(bucket string) *BucketsGetIamPolicyCall
bucket*Bucketctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsInsertCall).Context(ctx context.Context) *BucketsInsertCall
func (*BucketsInsertCall).Fields(s ...googleapi.Field) *BucketsInsertCall
func (*BucketsInsertCall).PredefinedAcl(predefinedAcl string) *BucketsInsertCall
func (*BucketsInsertCall).PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsInsertCall
func (*BucketsInsertCall).Projection(projection string) *BucketsInsertCall
func (*BucketsInsertCall).ProvisionalUserProject(provisionalUserProject string) *BucketsInsertCall
func (*BucketsInsertCall).UserProject(userProject string) *BucketsInsertCall
func (*BucketsService).Insert(projectid string, bucket *Bucket) *BucketsInsertCall
ctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
PageToken sets the optional parameter "pageToken": A
previously-returned page token representing part of the larger set of
results to view.
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.
Prefix sets the optional parameter "prefix": Filter results to
buckets whose names begin with this prefix.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsListCall).Context(ctx context.Context) *BucketsListCall
func (*BucketsListCall).Fields(s ...googleapi.Field) *BucketsListCall
func (*BucketsListCall).IfNoneMatch(entityTag string) *BucketsListCall
func (*BucketsListCall).MaxResults(maxResults int64) *BucketsListCall
func (*BucketsListCall).PageToken(pageToken string) *BucketsListCall
func (*BucketsListCall).Prefix(prefix string) *BucketsListCall
func (*BucketsListCall).Projection(projection string) *BucketsListCall
func (*BucketsListCall).ProvisionalUserProject(provisionalUserProject string) *BucketsListCall
func (*BucketsListCall).UserProject(userProject string) *BucketsListCall
func (*BucketsService).List(projectid string) *BucketsListCall
bucketstringctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.buckets.lockRetentionPolicy" 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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsLockRetentionPolicyCall).Context(ctx context.Context) *BucketsLockRetentionPolicyCall
func (*BucketsLockRetentionPolicyCall).Fields(s ...googleapi.Field) *BucketsLockRetentionPolicyCall
func (*BucketsLockRetentionPolicyCall).ProvisionalUserProject(provisionalUserProject string) *BucketsLockRetentionPolicyCall
func (*BucketsLockRetentionPolicyCall).UserProject(userProject string) *BucketsLockRetentionPolicyCall
func (*BucketsService).LockRetentionPolicy(bucket string, ifMetagenerationMatch int64) *BucketsLockRetentionPolicyCall
bucketstringbucket2*Bucketctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
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.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsPatchCall).Context(ctx context.Context) *BucketsPatchCall
func (*BucketsPatchCall).Fields(s ...googleapi.Field) *BucketsPatchCall
func (*BucketsPatchCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *BucketsPatchCall
func (*BucketsPatchCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *BucketsPatchCall
func (*BucketsPatchCall).PredefinedAcl(predefinedAcl string) *BucketsPatchCall
func (*BucketsPatchCall).PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsPatchCall
func (*BucketsPatchCall).Projection(projection string) *BucketsPatchCall
func (*BucketsPatchCall).ProvisionalUserProject(provisionalUserProject string) *BucketsPatchCall
func (*BucketsPatchCall).UserProject(userProject string) *BucketsPatchCall
func (*BucketsService).Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall
func cloud.google.com/go/storage.(*BucketHandle).newPatchCall(uattrs *storage.BucketAttrsToUpdate) (*BucketsPatchCall, error)
s*Service
Delete: Permanently deletes an empty bucket.
Get: Returns metadata for the specified bucket.
GetIamPolicy: Returns an IAM policy for the specified bucket.
Insert: Creates a new bucket.
List: Retrieves a list of buckets for a given project.
LockRetentionPolicy: Locks retention policy on a bucket.
Patch: Patches a bucket. Changes to the bucket will be readable
immediately after writing, but configuration changes may take time to
propagate.
SetIamPolicy: Updates an IAM policy for the specified bucket.
TestIamPermissions: Tests a set of permissions on the given bucket to
see which, if any, are held by the caller.
Update: Updates a bucket. Changes to the bucket will be readable
immediately after writing, but configuration changes may take time to
propagate.
func NewBucketsService(s *Service) *BucketsService
bucketstringctx_context.Contextheader_http.Headerpolicy*Policys*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsService).SetIamPolicy(bucket string, policy *Policy) *BucketsSetIamPolicyCall
func (*BucketsSetIamPolicyCall).Context(ctx context.Context) *BucketsSetIamPolicyCall
func (*BucketsSetIamPolicyCall).Fields(s ...googleapi.Field) *BucketsSetIamPolicyCall
func (*BucketsSetIamPolicyCall).ProvisionalUserProject(provisionalUserProject string) *BucketsSetIamPolicyCall
func (*BucketsSetIamPolicyCall).UserProject(userProject string) *BucketsSetIamPolicyCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsService).TestIamPermissions(bucket string, permissions []string) *BucketsTestIamPermissionsCall
func (*BucketsTestIamPermissionsCall).Context(ctx context.Context) *BucketsTestIamPermissionsCall
func (*BucketsTestIamPermissionsCall).Fields(s ...googleapi.Field) *BucketsTestIamPermissionsCall
func (*BucketsTestIamPermissionsCall).IfNoneMatch(entityTag string) *BucketsTestIamPermissionsCall
func (*BucketsTestIamPermissionsCall).ProvisionalUserProject(provisionalUserProject string) *BucketsTestIamPermissionsCall
func (*BucketsTestIamPermissionsCall).UserProject(userProject string) *BucketsTestIamPermissionsCall
bucketstringbucket2*Bucketctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
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.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*BucketsService).Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall
func (*BucketsUpdateCall).Context(ctx context.Context) *BucketsUpdateCall
func (*BucketsUpdateCall).Fields(s ...googleapi.Field) *BucketsUpdateCall
func (*BucketsUpdateCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *BucketsUpdateCall
func (*BucketsUpdateCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *BucketsUpdateCall
func (*BucketsUpdateCall).PredefinedAcl(predefinedAcl string) *BucketsUpdateCall
func (*BucketsUpdateCall).PredefinedDefaultObjectAcl(predefinedDefaultObjectAcl string) *BucketsUpdateCall
func (*BucketsUpdateCall).Projection(projection string) *BucketsUpdateCall
func (*BucketsUpdateCall).ProvisionalUserProject(provisionalUserProject string) *BucketsUpdateCall
func (*BucketsUpdateCall).UserProject(userProject string) *BucketsUpdateCall
BucketVersioning: The bucket's versioning configuration.
Enabled: While set to true, versioning is fully enabled for this
bucket.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
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.
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.
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.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.(*BucketWebsite).toRawBucketWebsite() *BucketWebsite
func cloud.google.com/go/storage.toBucketWebsite(w *BucketWebsite) *storage.BucketWebsite
Channel: An notification channel used to watch for resource changes.
Address: The address where notifications are delivered for this
channel.
Expiration: Date and time of notification channel expiration,
expressed as a Unix timestamp, in milliseconds. Optional.
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.
Id: A UUID or similar unique string that identifies this channel.
Kind: Identifies this as a notification channel used to watch for
changes to a resource, which is "api#channel".
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.
Params: Additional parameters controlling delivery channel behavior.
Optional.
Payload: A Boolean value to indicate whether payload is wanted.
Optional.
ResourceId: An opaque ID that identifies the resource being watched
on this channel. Stable across different API versions.
ResourceUri: A version-specific identifier for the watched resource.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
Token: An arbitrary string delivered to the target address with each
notification delivered over this channel. Optional.
Type: The type of delivery mechanism used for this channel.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ObjectsWatchAllCall).Do(opts ...googleapi.CallOption) (*Channel, error)
func (*ChannelsService).Stop(channel *Channel) *ChannelsStopCall
func (*ObjectsService).WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall
channel*Channelctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.channels.stop" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ChannelsService).Stop(channel *Channel) *ChannelsStopCall
func (*ChannelsStopCall).Context(ctx context.Context) *ChannelsStopCall
func (*ChannelsStopCall).Fields(s ...googleapi.Field) *ChannelsStopCall
ComposeRequest: A Compose request.
Destination: Properties of the resulting object.
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.
Kind: The kind of item this is.
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.
SourceObjects: The list of source objects that will be concatenated
into a single object.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ObjectsService).Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall
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.
Generation: The generation of this object to use as the source.
Name: The source object's name. All source objects must reside in the
same bucket.
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.
ObjectPreconditions: Conditions that must be met for this operation
to execute.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
ComposeRequestSourceObjectsObjectPreconditions: Conditions that must
be met for this operation to execute.
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.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
bucketstringctx_context.Contextentitystringheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.defaultObjectAccessControls.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsDeleteCall).Context(ctx context.Context) *DefaultObjectAccessControlsDeleteCall
func (*DefaultObjectAccessControlsDeleteCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsDeleteCall
func (*DefaultObjectAccessControlsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsDeleteCall
func (*DefaultObjectAccessControlsDeleteCall).UserProject(userProject string) *DefaultObjectAccessControlsDeleteCall
func (*DefaultObjectAccessControlsService).Delete(bucket string, entity string) *DefaultObjectAccessControlsDeleteCall
bucketstringctx_context.Contextentitystringheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsGetCall).Context(ctx context.Context) *DefaultObjectAccessControlsGetCall
func (*DefaultObjectAccessControlsGetCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsGetCall
func (*DefaultObjectAccessControlsGetCall).IfNoneMatch(entityTag string) *DefaultObjectAccessControlsGetCall
func (*DefaultObjectAccessControlsGetCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsGetCall
func (*DefaultObjectAccessControlsGetCall).UserProject(userProject string) *DefaultObjectAccessControlsGetCall
func (*DefaultObjectAccessControlsService).Get(bucket string, entity string) *DefaultObjectAccessControlsGetCall
bucketstringctx_context.Contextheader_http.Headerobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsInsertCall).Context(ctx context.Context) *DefaultObjectAccessControlsInsertCall
func (*DefaultObjectAccessControlsInsertCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsInsertCall
func (*DefaultObjectAccessControlsInsertCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsInsertCall
func (*DefaultObjectAccessControlsInsertCall).UserProject(userProject string) *DefaultObjectAccessControlsInsertCall
func (*DefaultObjectAccessControlsService).Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": If present, only return default ACL listing
if the bucket's current metageneration matches this value.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsListCall).Context(ctx context.Context) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).IfNoneMatch(entityTag string) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsListCall).UserProject(userProject string) *DefaultObjectAccessControlsListCall
func (*DefaultObjectAccessControlsService).List(bucket string) *DefaultObjectAccessControlsListCall
bucketstringctx_context.Contextentitystringheader_http.Headerobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsPatchCall).Context(ctx context.Context) *DefaultObjectAccessControlsPatchCall
func (*DefaultObjectAccessControlsPatchCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsPatchCall
func (*DefaultObjectAccessControlsPatchCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsPatchCall
func (*DefaultObjectAccessControlsPatchCall).UserProject(userProject string) *DefaultObjectAccessControlsPatchCall
func (*DefaultObjectAccessControlsService).Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall
s*Service
Delete: Permanently deletes the default object ACL entry for the
specified entity on the specified bucket.
Get: Returns the default object ACL entry for the specified entity on
the specified bucket.
Insert: Creates a new default object ACL entry on the specified
bucket.
List: Retrieves default object ACL entries on the specified bucket.
Patch: Patches a default object ACL entry on the specified bucket.
Update: Updates a default object ACL entry on the specified bucket.
func NewDefaultObjectAccessControlsService(s *Service) *DefaultObjectAccessControlsService
bucketstringctx_context.Contextentitystringheader_http.Headerobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*DefaultObjectAccessControlsService).Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall
func (*DefaultObjectAccessControlsUpdateCall).Context(ctx context.Context) *DefaultObjectAccessControlsUpdateCall
func (*DefaultObjectAccessControlsUpdateCall).Fields(s ...googleapi.Field) *DefaultObjectAccessControlsUpdateCall
func (*DefaultObjectAccessControlsUpdateCall).ProvisionalUserProject(provisionalUserProject string) *DefaultObjectAccessControlsUpdateCall
func (*DefaultObjectAccessControlsUpdateCall).UserProject(userProject string) *DefaultObjectAccessControlsUpdateCall
Expr: Represents an expression text. Example: title: "User account
presence" description: "Determines whether the request has a user
account" expression: "size(request.user) > 0"
Description: An optional description of the expression. This is a
longer text which describes the expression, e.g. when hovered over it
in a UI.
Expression: Textual representation of an expression in Common
Expression Language syntax. The application context of the containing
message determines which well-known feature set of CEL is supported.
ForceSendFields is a list of field names (e.g. "Description") 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.
Location: An optional string indicating the location of the
expression for error reporting, e.g. a file name and a position in
the file.
NullFields is a list of field names (e.g. "Description") 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.
Title: An optional title for the expression, i.e. a short string
describing its purpose. This can be used e.g. in UIs which allow to
enter the expression.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.iamToStorageCondition(exprpb *expr.Expr) *Expr
func cloud.google.com/go/storage.iamFromStorageCondition(rawexpr *Expr) *expr.Expr
HmacKey: JSON template to produce a JSON-style HMAC Key resource for
Create responses.
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.
Kind: The kind of item this is. For HMAC keys, this is always
storage#hmacKey.
Metadata: Key metadata.
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.
Secret: HMAC secret key material.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ProjectsHmacKeysCreateCall).Do(opts ...googleapi.CallOption) (*HmacKey, error)
func cloud.google.com/go/storage.pbHmacKeyToHMACKey(pb *HmacKey, updatedTimeCanBeNil bool) (*storage.HMACKey, error)
HmacKeyMetadata: JSON template to produce a JSON-style HMAC Key
metadata resource.
AccessId: The ID of the HMAC Key.
Etag: HTTP 1.1 Entity tag for the HMAC key.
ForceSendFields is a list of field names (e.g. "AccessId") 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.
Id: The ID of the HMAC key, including the Project ID and the Access
ID.
Kind: The kind of item this is. For HMAC Key metadata, this is always
storage#hmacKeyMetadata.
NullFields is a list of field names (e.g. "AccessId") 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.
ProjectId: Project ID owning the service account to which the key
authenticates.
SelfLink: The link to this resource.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
ServiceAccountEmail: The email address of the key's associated
service account.
State: The state of the key. Can be one of ACTIVE, INACTIVE, or
DELETED.
TimeCreated: The creation time of the HMAC key in RFC 3339 format.
Updated: The last modification time of the HMAC key metadata in RFC
3339 format.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ProjectsHmacKeysGetCall).Do(opts ...googleapi.CallOption) (*HmacKeyMetadata, error)
func (*ProjectsHmacKeysUpdateCall).Do(opts ...googleapi.CallOption) (*HmacKeyMetadata, error)
func (*ProjectsHmacKeysService).Update(projectId string, accessId string, hmackeymetadata *HmacKeyMetadata) *ProjectsHmacKeysUpdateCall
HmacKeysMetadata: A list of hmacKeys.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of hmacKeys, this is always
storage#hmacKeysMetadata.
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.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ProjectsHmacKeysListCall).Do(opts ...googleapi.CallOption) (*HmacKeysMetadata, error)
Notification: A subscription to receive Google PubSub notifications.
CustomAttributes: An optional list of additional attributes to attach
to each Cloud PubSub message published for this notification
subscription.
Etag: HTTP 1.1 Entity tag for this subscription notification.
EventTypes: If present, only send notifications about listed event
types. If empty, sent notifications for all event types.
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.
Id: The ID of the notification.
Kind: The kind of item this is. For notifications, this is always
storage#notification.
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.
ObjectNamePrefix: If present, only apply this notification
configuration to object names that begin with this prefix.
PayloadFormat: The desired content of the Payload.
SelfLink: The canonical URL of this notification.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
Topic: The Cloud PubSub topic to which this subscription publishes.
Formatted as:
'//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topi
c}'
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*NotificationsGetCall).Do(opts ...googleapi.CallOption) (*Notification, error)
func (*NotificationsInsertCall).Do(opts ...googleapi.CallOption) (*Notification, error)
func cloud.google.com/go/storage.toRawNotification(n *storage.Notification) *Notification
func (*NotificationsService).Insert(bucket string, notification *Notification) *NotificationsInsertCall
func cloud.google.com/go/storage.notificationsToMap(rns []*Notification) map[string]*storage.Notification
func cloud.google.com/go/storage.toNotification(rn *Notification) *storage.Notification
Notifications: A list of notification subscriptions.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of notifications, this is
always storage#notifications.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*NotificationsListCall).Do(opts ...googleapi.CallOption) (*Notifications, error)
bucketstringctx_context.Contextheader_http.Headernotificationstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.notifications.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*NotificationsDeleteCall).Context(ctx context.Context) *NotificationsDeleteCall
func (*NotificationsDeleteCall).Fields(s ...googleapi.Field) *NotificationsDeleteCall
func (*NotificationsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *NotificationsDeleteCall
func (*NotificationsDeleteCall).UserProject(userProject string) *NotificationsDeleteCall
func (*NotificationsService).Delete(bucket string, notification string) *NotificationsDeleteCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_stringnotificationstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*NotificationsGetCall).Context(ctx context.Context) *NotificationsGetCall
func (*NotificationsGetCall).Fields(s ...googleapi.Field) *NotificationsGetCall
func (*NotificationsGetCall).IfNoneMatch(entityTag string) *NotificationsGetCall
func (*NotificationsGetCall).ProvisionalUserProject(provisionalUserProject string) *NotificationsGetCall
func (*NotificationsGetCall).UserProject(userProject string) *NotificationsGetCall
func (*NotificationsService).Get(bucket string, notification string) *NotificationsGetCall
bucketstringctx_context.Contextheader_http.Headernotification*Notifications*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*NotificationsInsertCall).Context(ctx context.Context) *NotificationsInsertCall
func (*NotificationsInsertCall).Fields(s ...googleapi.Field) *NotificationsInsertCall
func (*NotificationsInsertCall).ProvisionalUserProject(provisionalUserProject string) *NotificationsInsertCall
func (*NotificationsInsertCall).UserProject(userProject string) *NotificationsInsertCall
func (*NotificationsService).Insert(bucket string, notification *Notification) *NotificationsInsertCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*NotificationsListCall).Context(ctx context.Context) *NotificationsListCall
func (*NotificationsListCall).Fields(s ...googleapi.Field) *NotificationsListCall
func (*NotificationsListCall).IfNoneMatch(entityTag string) *NotificationsListCall
func (*NotificationsListCall).ProvisionalUserProject(provisionalUserProject string) *NotificationsListCall
func (*NotificationsListCall).UserProject(userProject string) *NotificationsListCall
func (*NotificationsService).List(bucket string) *NotificationsListCall
s*Service
Delete: Permanently deletes a notification subscription.
Get: View a notification configuration.
Insert: Creates a notification subscription for a given bucket.
List: Retrieves a list of notification subscriptions for a given
bucket.
func NewNotificationsService(s *Service) *NotificationsService
Object: An object.
Acl: Access controls on the object.
Bucket: The name of the bucket containing this object.
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.
ComponentCount: Number of underlying components that make up this
object. Components are accumulated by compose operations.
ContentDisposition: Content-Disposition of the object data.
ContentEncoding: Content-Encoding of the object data.
ContentLanguage: Content-Language of the object data.
ContentType: Content-Type of the object data. If an object is stored
without a Content-Type, it is served as application/octet-stream.
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.
CustomTime: A timestamp in RFC 3339 format specified by the user for
an object.
CustomerEncryption: Metadata of customer-supplied encryption key, if
the object is encrypted by such a key.
Etag: HTTP 1.1 Entity tag for the object.
EventBasedHold: Whether an object is under event-based hold.
Event-based hold is a way to retain objects until an event occurs,
which is signified by the hold's release (i.e. this value is set to
false). After being released (set to false), such objects will be
subject to bucket-level retention (if any). One sample use case of
this flag is for banks to hold loan documents for at least 3 years
after loan is paid in full. Here, bucket-level retention is 3 years
and the event is the loan being paid in full. In this example, these
objects will be held intact for any number of years until the event
has occurred (event-based hold on the object is released) and then 3
more years after that. That means retention duration of the objects
begins from the moment event-based hold transitioned from true to
false.
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.
Generation: The content generation of this object. Used for object
versioning.
Id: The ID of the object, including the bucket name, object name, and
generation number.
Kind: The kind of item this is. For objects, this is always
storage#object.
KmsKeyName: Cloud KMS Key used to encrypt this object, if the object
is encrypted by such a key.
Md5Hash: MD5 hash of the data; encoded using base64. For more
information about using the MD5 hash, see Hashes and ETags: Best
Practices.
MediaLink: Media download link.
Metadata: User-provided metadata, in key/value pairs.
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.
Name: The name of the object. Required if not specified by URL
parameter.
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.
Owner: The owner of the object. This will always be the uploader of
the object.
RetentionExpirationTime: A server-determined value that specifies the
earliest time that the object's retention period expires. This value
is in RFC 3339 format. Note 1: This field is not provided for objects
with an active event-based hold, since retention expiration is
unknown until the hold is removed. Note 2: This value can be provided
even when temporary hold is set (so that the user can reason about
policy without having to first unset the temporary hold).
SelfLink: The link to this object.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
Size: Content-Length of the data in bytes.
StorageClass: Storage class of the object.
TemporaryHold: Whether an object is under temporary hold. While this
flag is set to true, the object is protected against deletion and
overwrites. A common use case of this flag is regulatory
investigations where objects need to be retained while the
investigation is ongoing. Note that unlike event-based hold,
temporary hold does not impact retention expiration time of an
object.
TimeCreated: The creation time of the object in RFC 3339 format.
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.
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.
Updated: The modification time of the object metadata in RFC 3339
format.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ObjectsComposeCall).Do(opts ...googleapi.CallOption) (*Object, error)
func (*ObjectsCopyCall).Do(opts ...googleapi.CallOption) (*Object, error)
func (*ObjectsGetCall).Do(opts ...googleapi.CallOption) (*Object, error)
func (*ObjectsInsertCall).Do(opts ...googleapi.CallOption) (*Object, error)
func (*ObjectsPatchCall).Do(opts ...googleapi.CallOption) (*Object, error)
func (*ObjectsUpdateCall).Do(opts ...googleapi.CallOption) (*Object, error)
func cloud.google.com/go/storage.(*ObjectAttrs).toRawObject(bucket string) *Object
func (*ObjectsService).Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall
func (*ObjectsService).Insert(bucket string, object *Object) *ObjectsInsertCall
func (*ObjectsService).Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall
func (*ObjectsService).Rewrite(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsRewriteCall
func (*ObjectsService).Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall
func cloud.google.com/go/storage.newObject(o *Object) *storage.ObjectAttrs
func cloud.google.com/go/storage.(*Copier).callRewrite(ctx context.Context, rawObj *Object) (*RewriteResponse, error)
ObjectAccessControl: An access-control entry.
Bucket: The name of the bucket.
Domain: The domain associated with the entity, if any.
Email: The email address associated with the entity, if any.
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.
EntityId: The ID for the entity, if any.
Etag: HTTP 1.1 Entity tag for the access-control entry.
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.
Generation: The content generation of the object, if applied to an
object.
Id: The ID of the access-control entry.
Kind: The kind of item this is. For object access control entries,
this is always storage#objectAccessControl.
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.
Object: The name of the object, if applied to an object.
ProjectTeam: The project team associated with the entity, if any.
Role: The access permission for the entity.
SelfLink: The link to this access-control entry.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*DefaultObjectAccessControlsGetCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*DefaultObjectAccessControlsInsertCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*DefaultObjectAccessControlsPatchCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*DefaultObjectAccessControlsUpdateCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*ObjectAccessControlsGetCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*ObjectAccessControlsInsertCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*ObjectAccessControlsPatchCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func (*ObjectAccessControlsUpdateCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControl, error)
func cloud.google.com/go/storage.toRawObjectACL(rules []storage.ACLRule) []*ObjectAccessControl
func cloud.google.com/go/storage.ACLRule.toRawObjectAccessControl(bucket string) *ObjectAccessControl
func (*DefaultObjectAccessControlsService).Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall
func (*DefaultObjectAccessControlsService).Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall
func (*DefaultObjectAccessControlsService).Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall
func (*ObjectAccessControlsService).Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsService).Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsService).Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall
func cloud.google.com/go/storage.toObjectACLRule(a *ObjectAccessControl) storage.ACLRule
func cloud.google.com/go/storage.toObjectACLRules(items []*ObjectAccessControl) []storage.ACLRule
ObjectAccessControlProjectTeam: The project team associated with the
entity, if any.
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.
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.
ProjectNumber: The project number.
Team: The team.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.toObjectProjectTeam(p *ObjectAccessControlProjectTeam) *storage.ProjectTeam
ObjectAccessControls: An access-control list.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of object access control
entries, this is always storage#objectAccessControls.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*DefaultObjectAccessControlsListCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
func (*ObjectAccessControlsListCall).Do(opts ...googleapi.CallOption) (*ObjectAccessControls, error)
bucketstringctx_context.Contextentitystringheader_http.Headerobjectstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.objectAccessControls.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsDeleteCall).Context(ctx context.Context) *ObjectAccessControlsDeleteCall
func (*ObjectAccessControlsDeleteCall).Fields(s ...googleapi.Field) *ObjectAccessControlsDeleteCall
func (*ObjectAccessControlsDeleteCall).Generation(generation int64) *ObjectAccessControlsDeleteCall
func (*ObjectAccessControlsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsDeleteCall
func (*ObjectAccessControlsDeleteCall).UserProject(userProject string) *ObjectAccessControlsDeleteCall
func (*ObjectAccessControlsService).Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall
bucketstringctx_context.Contextentitystringheader_http.HeaderifNoneMatch_stringobjectstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsGetCall).Context(ctx context.Context) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsGetCall).Fields(s ...googleapi.Field) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsGetCall).Generation(generation int64) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsGetCall).IfNoneMatch(entityTag string) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsGetCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsGetCall).UserProject(userProject string) *ObjectAccessControlsGetCall
func (*ObjectAccessControlsService).Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall
bucketstringctx_context.Contextheader_http.Headerobjectstringobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsInsertCall).Context(ctx context.Context) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsInsertCall).Fields(s ...googleapi.Field) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsInsertCall).Generation(generation int64) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsInsertCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsInsertCall).UserProject(userProject string) *ObjectAccessControlsInsertCall
func (*ObjectAccessControlsService).Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_stringobjectstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsListCall).Context(ctx context.Context) *ObjectAccessControlsListCall
func (*ObjectAccessControlsListCall).Fields(s ...googleapi.Field) *ObjectAccessControlsListCall
func (*ObjectAccessControlsListCall).Generation(generation int64) *ObjectAccessControlsListCall
func (*ObjectAccessControlsListCall).IfNoneMatch(entityTag string) *ObjectAccessControlsListCall
func (*ObjectAccessControlsListCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsListCall
func (*ObjectAccessControlsListCall).UserProject(userProject string) *ObjectAccessControlsListCall
func (*ObjectAccessControlsService).List(bucket string, object string) *ObjectAccessControlsListCall
bucketstringctx_context.Contextentitystringheader_http.Headerobjectstringobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsPatchCall).Context(ctx context.Context) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsPatchCall).Fields(s ...googleapi.Field) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsPatchCall).Generation(generation int64) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsPatchCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsPatchCall).UserProject(userProject string) *ObjectAccessControlsPatchCall
func (*ObjectAccessControlsService).Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall
s*Service
Delete: Permanently deletes the ACL entry for the specified entity on
the specified object.
Get: Returns the ACL entry for the specified entity on the specified
object.
Insert: Creates a new ACL entry on the specified object.
List: Retrieves ACL entries on the specified object.
Patch: Patches an ACL entry on the specified object.
Update: Updates an ACL entry on the specified object.
func NewObjectAccessControlsService(s *Service) *ObjectAccessControlsService
bucketstringctx_context.Contextentitystringheader_http.Headerobjectstringobjectaccesscontrol*ObjectAccessControls*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectAccessControlsService).Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall
func (*ObjectAccessControlsUpdateCall).Context(ctx context.Context) *ObjectAccessControlsUpdateCall
func (*ObjectAccessControlsUpdateCall).Fields(s ...googleapi.Field) *ObjectAccessControlsUpdateCall
func (*ObjectAccessControlsUpdateCall).Generation(generation int64) *ObjectAccessControlsUpdateCall
func (*ObjectAccessControlsUpdateCall).ProvisionalUserProject(provisionalUserProject string) *ObjectAccessControlsUpdateCall
func (*ObjectAccessControlsUpdateCall).UserProject(userProject string) *ObjectAccessControlsUpdateCall
ObjectCustomerEncryption: Metadata of customer-supplied encryption
key, if the object is encrypted by such a key.
EncryptionAlgorithm: The encryption algorithm.
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.
KeySha256: SHA256 hash value of the encryption key.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
ObjectOwner: The owner of the object. This will always be the
uploader of the object.
Entity: The entity, in the form project-owner-projectId.
EntityId: The ID for the entity.
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
Objects: A list of objects.
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.
Items: The list of items.
Kind: The kind of item this is. For lists of objects, this is always
storage#objects.
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.
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.
Prefixes: The list of prefixes of objects matching-but-not-listed up
to and including the requested delimiter.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ObjectsListCall).Do(opts ...googleapi.CallOption) (*Objects, error)
composerequest*ComposeRequestctx_context.ContextdestinationBucketstringdestinationObjectstringheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
KmsKeyName sets the optional parameter "kmsKeyName": Not currently
supported. Specifying the parameter causes the request to fail with
status code 400 - Bad Request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsComposeCall).Context(ctx context.Context) *ObjectsComposeCall
func (*ObjectsComposeCall).DestinationPredefinedAcl(destinationPredefinedAcl string) *ObjectsComposeCall
func (*ObjectsComposeCall).Fields(s ...googleapi.Field) *ObjectsComposeCall
func (*ObjectsComposeCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsComposeCall
func (*ObjectsComposeCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsComposeCall
func (*ObjectsComposeCall).KmsKeyName(kmsKeyName string) *ObjectsComposeCall
func (*ObjectsComposeCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsComposeCall
func (*ObjectsComposeCall).UserProject(userProject string) *ObjectsComposeCall
func (*ObjectsService).Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall
ctx_context.ContextdestinationBucketstringdestinationObjectstringheader_http.Headerobject*Objects*ServicesourceBucketstringsourceObjectstringurlParams_gensupport.URLParams
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.
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.
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the destination object's current metageneration matches the given
value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the destination object's current metageneration does not
match the given value.
IfSourceGenerationMatch sets the optional parameter
"ifSourceGenerationMatch": Makes the operation conditional on whether
the source object's current generation matches the given value.
IfSourceGenerationNotMatch sets the optional parameter
"ifSourceGenerationNotMatch": Makes the operation conditional on
whether the source object's current generation does not match the
given value.
IfSourceMetagenerationMatch sets the optional parameter
"ifSourceMetagenerationMatch": Makes the operation conditional on
whether the source object's current metageneration matches the given
value.
IfSourceMetagenerationNotMatch sets the optional parameter
"ifSourceMetagenerationNotMatch": Makes the operation conditional on
whether the source object's current metageneration does not match the
given value.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
SourceGeneration sets the optional parameter "sourceGeneration": If
present, selects a specific revision of the source object (as opposed
to the latest version, the default).
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsCopyCall).Context(ctx context.Context) *ObjectsCopyCall
func (*ObjectsCopyCall).DestinationKmsKeyName(destinationKmsKeyName string) *ObjectsCopyCall
func (*ObjectsCopyCall).DestinationPredefinedAcl(destinationPredefinedAcl string) *ObjectsCopyCall
func (*ObjectsCopyCall).Fields(s ...googleapi.Field) *ObjectsCopyCall
func (*ObjectsCopyCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfSourceGenerationMatch(ifSourceGenerationMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfSourceGenerationNotMatch(ifSourceGenerationNotMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfSourceMetagenerationMatch(ifSourceMetagenerationMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch int64) *ObjectsCopyCall
func (*ObjectsCopyCall).Projection(projection string) *ObjectsCopyCall
func (*ObjectsCopyCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsCopyCall
func (*ObjectsCopyCall).SourceGeneration(sourceGeneration int64) *ObjectsCopyCall
func (*ObjectsCopyCall).UserProject(userProject string) *ObjectsCopyCall
func (*ObjectsService).Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall
bucketstringctx_context.Contextheader_http.Headerobjectstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.objects.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
permanently deletes a specific revision of this object (as opposed to
the latest version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the object's current metageneration does not match the given
value.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsDeleteCall).Context(ctx context.Context) *ObjectsDeleteCall
func (*ObjectsDeleteCall).Fields(s ...googleapi.Field) *ObjectsDeleteCall
func (*ObjectsDeleteCall).Generation(generation int64) *ObjectsDeleteCall
func (*ObjectsDeleteCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsDeleteCall
func (*ObjectsDeleteCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsDeleteCall
func (*ObjectsDeleteCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsDeleteCall
func (*ObjectsDeleteCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsDeleteCall
func (*ObjectsDeleteCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsDeleteCall
func (*ObjectsDeleteCall).UserProject(userProject string) *ObjectsDeleteCall
func (*ObjectsService).Delete(bucket string, object string) *ObjectsDeleteCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_stringobjectstrings*ServiceurlParams_gensupport.URLParams
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.
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the object's current metageneration does not match the given
value.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsGetCall).Context(ctx context.Context) *ObjectsGetCall
func (*ObjectsGetCall).Fields(s ...googleapi.Field) *ObjectsGetCall
func (*ObjectsGetCall).Generation(generation int64) *ObjectsGetCall
func (*ObjectsGetCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsGetCall
func (*ObjectsGetCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsGetCall
func (*ObjectsGetCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsGetCall
func (*ObjectsGetCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsGetCall
func (*ObjectsGetCall).IfNoneMatch(entityTag string) *ObjectsGetCall
func (*ObjectsGetCall).Projection(projection string) *ObjectsGetCall
func (*ObjectsGetCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsGetCall
func (*ObjectsGetCall).UserProject(userProject string) *ObjectsGetCall
func (*ObjectsService).Get(bucket string, object string) *ObjectsGetCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_stringobjectstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsGetIamPolicyCall).Context(ctx context.Context) *ObjectsGetIamPolicyCall
func (*ObjectsGetIamPolicyCall).Fields(s ...googleapi.Field) *ObjectsGetIamPolicyCall
func (*ObjectsGetIamPolicyCall).Generation(generation int64) *ObjectsGetIamPolicyCall
func (*ObjectsGetIamPolicyCall).IfNoneMatch(entityTag string) *ObjectsGetIamPolicyCall
func (*ObjectsGetIamPolicyCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsGetIamPolicyCall
func (*ObjectsGetIamPolicyCall).UserProject(userProject string) *ObjectsGetIamPolicyCall
func (*ObjectsService).GetIamPolicy(bucket string, object string) *ObjectsGetIamPolicyCall
bucketstringctx_context.Contextheader_http.HeadermediaInfo_*gensupport.MediaInfoobject*Objects*ServiceurlParams_gensupport.URLParams
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.
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the object's current metageneration does not match the given
value.
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.
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.
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.
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.
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).
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
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.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsInsertCall).ContentEncoding(contentEncoding string) *ObjectsInsertCall
func (*ObjectsInsertCall).Context(ctx context.Context) *ObjectsInsertCall
func (*ObjectsInsertCall).Fields(s ...googleapi.Field) *ObjectsInsertCall
func (*ObjectsInsertCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsInsertCall
func (*ObjectsInsertCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsInsertCall
func (*ObjectsInsertCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsInsertCall
func (*ObjectsInsertCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsInsertCall
func (*ObjectsInsertCall).KmsKeyName(kmsKeyName string) *ObjectsInsertCall
func (*ObjectsInsertCall).Media(r io.Reader, options ...googleapi.MediaOption) *ObjectsInsertCall
func (*ObjectsInsertCall).Name(name string) *ObjectsInsertCall
func (*ObjectsInsertCall).PredefinedAcl(predefinedAcl string) *ObjectsInsertCall
func (*ObjectsInsertCall).ProgressUpdater(pu googleapi.ProgressUpdater) *ObjectsInsertCall
func (*ObjectsInsertCall).Projection(projection string) *ObjectsInsertCall
func (*ObjectsInsertCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsInsertCall
func (*ObjectsInsertCall).ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *ObjectsInsertCall
func (*ObjectsInsertCall).UserProject(userProject string) *ObjectsInsertCall
func (*ObjectsService).Insert(bucket string, object *Object) *ObjectsInsertCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_strings*ServiceurlParams_gensupport.URLParams
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.
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.
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.
EndOffset sets the optional parameter "endOffset": Filter results to
objects whose names are lexicographically before endOffset. If
startOffset is also set, the objects listed will have names between
startOffset (inclusive) and endOffset (exclusive).
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
IncludeTrailingDelimiter sets the optional parameter
"includeTrailingDelimiter": If true, objects that end in exactly one
instance of delimiter will have their metadata included in items in
addition to prefixes.
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.
PageToken sets the optional parameter "pageToken": A
previously-returned page token representing part of the larger set of
results to view.
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.
Prefix sets the optional parameter "prefix": Filter results to
objects whose names begin with this prefix.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
StartOffset sets the optional parameter "startOffset": Filter results
to objects whose names are lexicographically equal to or after
startOffset. If endOffset is also set, the objects listed will have
names between startOffset (inclusive) and endOffset (exclusive).
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
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.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsListCall).Context(ctx context.Context) *ObjectsListCall
func (*ObjectsListCall).Delimiter(delimiter string) *ObjectsListCall
func (*ObjectsListCall).EndOffset(endOffset string) *ObjectsListCall
func (*ObjectsListCall).Fields(s ...googleapi.Field) *ObjectsListCall
func (*ObjectsListCall).IfNoneMatch(entityTag string) *ObjectsListCall
func (*ObjectsListCall).IncludeTrailingDelimiter(includeTrailingDelimiter bool) *ObjectsListCall
func (*ObjectsListCall).MaxResults(maxResults int64) *ObjectsListCall
func (*ObjectsListCall).PageToken(pageToken string) *ObjectsListCall
func (*ObjectsListCall).Prefix(prefix string) *ObjectsListCall
func (*ObjectsListCall).Projection(projection string) *ObjectsListCall
func (*ObjectsListCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsListCall
func (*ObjectsListCall).StartOffset(startOffset string) *ObjectsListCall
func (*ObjectsListCall).UserProject(userProject string) *ObjectsListCall
func (*ObjectsListCall).Versions(versions bool) *ObjectsListCall
func (*ObjectsService).List(bucket string) *ObjectsListCall
bucketstringctx_context.Contextheader_http.Headerobjectstringobject2*Objects*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the object's current metageneration does not match the given
value.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request, for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsPatchCall).Context(ctx context.Context) *ObjectsPatchCall
func (*ObjectsPatchCall).Fields(s ...googleapi.Field) *ObjectsPatchCall
func (*ObjectsPatchCall).Generation(generation int64) *ObjectsPatchCall
func (*ObjectsPatchCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsPatchCall
func (*ObjectsPatchCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsPatchCall
func (*ObjectsPatchCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsPatchCall
func (*ObjectsPatchCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsPatchCall
func (*ObjectsPatchCall).PredefinedAcl(predefinedAcl string) *ObjectsPatchCall
func (*ObjectsPatchCall).Projection(projection string) *ObjectsPatchCall
func (*ObjectsPatchCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsPatchCall
func (*ObjectsPatchCall).UserProject(userProject string) *ObjectsPatchCall
func (*ObjectsService).Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall
ctx_context.ContextdestinationBucketstringdestinationObjectstringheader_http.Headerobject*Objects*ServicesourceBucketstringsourceObjectstringurlParams_gensupport.URLParams
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.
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.
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the destination object's current metageneration matches the given
value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the destination object's current metageneration does not
match the given value.
IfSourceGenerationMatch sets the optional parameter
"ifSourceGenerationMatch": Makes the operation conditional on whether
the source object's current generation matches the given value.
IfSourceGenerationNotMatch sets the optional parameter
"ifSourceGenerationNotMatch": Makes the operation conditional on
whether the source object's current generation does not match the
given value.
IfSourceMetagenerationMatch sets the optional parameter
"ifSourceMetagenerationMatch": Makes the operation conditional on
whether the source object's current metageneration matches the given
value.
IfSourceMetagenerationNotMatch sets the optional parameter
"ifSourceMetagenerationNotMatch": Makes the operation conditional on
whether the source object's current metageneration does not match the
given value.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
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.
SourceGeneration sets the optional parameter "sourceGeneration": If
present, selects a specific revision of the source object (as opposed
to the latest version, the default).
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsRewriteCall).Context(ctx context.Context) *ObjectsRewriteCall
func (*ObjectsRewriteCall).DestinationKmsKeyName(destinationKmsKeyName string) *ObjectsRewriteCall
func (*ObjectsRewriteCall).DestinationPredefinedAcl(destinationPredefinedAcl string) *ObjectsRewriteCall
func (*ObjectsRewriteCall).Fields(s ...googleapi.Field) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfSourceGenerationMatch(ifSourceGenerationMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfSourceGenerationNotMatch(ifSourceGenerationNotMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfSourceMetagenerationMatch(ifSourceMetagenerationMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).IfSourceMetagenerationNotMatch(ifSourceMetagenerationNotMatch int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).MaxBytesRewrittenPerCall(maxBytesRewrittenPerCall int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).Projection(projection string) *ObjectsRewriteCall
func (*ObjectsRewriteCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsRewriteCall
func (*ObjectsRewriteCall).RewriteToken(rewriteToken string) *ObjectsRewriteCall
func (*ObjectsRewriteCall).SourceGeneration(sourceGeneration int64) *ObjectsRewriteCall
func (*ObjectsRewriteCall).UserProject(userProject string) *ObjectsRewriteCall
func (*ObjectsService).Rewrite(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsRewriteCall
func cloud.google.com/go/storage.applySourceConds(gen int64, conds *storage.Conditions, call *ObjectsRewriteCall) error
s*Service
Compose: Concatenates a list of existing objects into a new object in
the same bucket.
Copy: Copies a source object to a destination object. Optionally
overrides metadata.
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.
Get: Retrieves an object or its metadata.
GetIamPolicy: Returns an IAM policy for the specified object.
Insert: Stores a new object and metadata.
List: Retrieves a list of objects matching the criteria.
Patch: Patches an object's metadata.
Rewrite: Rewrites a source object to a destination object. Optionally
overrides metadata.
SetIamPolicy: Updates an IAM policy for the specified object.
TestIamPermissions: Tests a set of permissions on the given object to
see which, if any, are held by the caller.
Update: Updates an object's metadata.
WatchAll: Watch for changes on all objects in a bucket.
func NewObjectsService(s *Service) *ObjectsService
bucketstringctx_context.Contextheader_http.Headerobjectstringpolicy*Policys*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsService).SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall
func (*ObjectsSetIamPolicyCall).Context(ctx context.Context) *ObjectsSetIamPolicyCall
func (*ObjectsSetIamPolicyCall).Fields(s ...googleapi.Field) *ObjectsSetIamPolicyCall
func (*ObjectsSetIamPolicyCall).Generation(generation int64) *ObjectsSetIamPolicyCall
func (*ObjectsSetIamPolicyCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsSetIamPolicyCall
func (*ObjectsSetIamPolicyCall).UserProject(userProject string) *ObjectsSetIamPolicyCall
bucketstringctx_context.Contextheader_http.HeaderifNoneMatch_stringobjectstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsService).TestIamPermissions(bucket string, object string, permissions []string) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).Context(ctx context.Context) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).Fields(s ...googleapi.Field) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).Generation(generation int64) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).IfNoneMatch(entityTag string) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsTestIamPermissionsCall
func (*ObjectsTestIamPermissionsCall).UserProject(userProject string) *ObjectsTestIamPermissionsCall
bucketstringctx_context.Contextheader_http.Headerobjectstringobject2*Objects*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Generation sets the optional parameter "generation": If present,
selects a specific revision of this object (as opposed to the latest
version, the default).
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
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.
IfMetagenerationMatch sets the optional parameter
"ifMetagenerationMatch": Makes the operation conditional on whether
the object's current metageneration matches the given value.
IfMetagenerationNotMatch sets the optional parameter
"ifMetagenerationNotMatch": Makes the operation conditional on
whether the object's current metageneration does not match the given
value.
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.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsService).Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall
func (*ObjectsUpdateCall).Context(ctx context.Context) *ObjectsUpdateCall
func (*ObjectsUpdateCall).Fields(s ...googleapi.Field) *ObjectsUpdateCall
func (*ObjectsUpdateCall).Generation(generation int64) *ObjectsUpdateCall
func (*ObjectsUpdateCall).IfGenerationMatch(ifGenerationMatch int64) *ObjectsUpdateCall
func (*ObjectsUpdateCall).IfGenerationNotMatch(ifGenerationNotMatch int64) *ObjectsUpdateCall
func (*ObjectsUpdateCall).IfMetagenerationMatch(ifMetagenerationMatch int64) *ObjectsUpdateCall
func (*ObjectsUpdateCall).IfMetagenerationNotMatch(ifMetagenerationNotMatch int64) *ObjectsUpdateCall
func (*ObjectsUpdateCall).PredefinedAcl(predefinedAcl string) *ObjectsUpdateCall
func (*ObjectsUpdateCall).Projection(projection string) *ObjectsUpdateCall
func (*ObjectsUpdateCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsUpdateCall
func (*ObjectsUpdateCall).UserProject(userProject string) *ObjectsUpdateCall
bucketstringchannel*Channelctx_context.Contextheader_http.Headers*ServiceurlParams_gensupport.URLParams
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.
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.
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.
EndOffset sets the optional parameter "endOffset": Filter results to
objects whose names are lexicographically before endOffset. If
startOffset is also set, the objects listed will have names between
startOffset (inclusive) and endOffset (exclusive).
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
IncludeTrailingDelimiter sets the optional parameter
"includeTrailingDelimiter": If true, objects that end in exactly one
instance of delimiter will have their metadata included in items in
addition to prefixes.
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.
PageToken sets the optional parameter "pageToken": A
previously-returned page token representing part of the larger set of
results to view.
Prefix sets the optional parameter "prefix": Filter results to
objects whose names begin with this prefix.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
StartOffset sets the optional parameter "startOffset": Filter results
to objects whose names are lexicographically equal to or after
startOffset. If endOffset is also set, the objects listed will have
names between startOffset (inclusive) and endOffset (exclusive).
UserProject sets the optional parameter "userProject": The project to
be billed for this request. Required for Requester Pays buckets.
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.
(*T) doRequest(alt string) (*http.Response, error)
func (*ObjectsService).WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Context(ctx context.Context) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Delimiter(delimiter string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).EndOffset(endOffset string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Fields(s ...googleapi.Field) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).IncludeTrailingDelimiter(includeTrailingDelimiter bool) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).MaxResults(maxResults int64) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).PageToken(pageToken string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Prefix(prefix string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Projection(projection string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).ProvisionalUserProject(provisionalUserProject string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).StartOffset(startOffset string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).UserProject(userProject string) *ObjectsWatchAllCall
func (*ObjectsWatchAllCall).Versions(versions bool) *ObjectsWatchAllCall
Policy: A bucket/object IAM policy.
Bindings: An association between a role, which comes with a set of
permissions, and members who may assume that role.
Etag: HTTP 1.1 Entity tag for the policy.
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.
Kind: The kind of item this is. For policies, this is always
storage#policy. This field is ignored on input.
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.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
Version: The IAM policy format version.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketsGetIamPolicyCall).Do(opts ...googleapi.CallOption) (*Policy, error)
func (*BucketsSetIamPolicyCall).Do(opts ...googleapi.CallOption) (*Policy, error)
func (*ObjectsGetIamPolicyCall).Do(opts ...googleapi.CallOption) (*Policy, error)
func (*ObjectsSetIamPolicyCall).Do(opts ...googleapi.CallOption) (*Policy, error)
func cloud.google.com/go/storage.iamToStoragePolicy(ip *iampb.Policy) *Policy
func (*BucketsService).SetIamPolicy(bucket string, policy *Policy) *BucketsSetIamPolicyCall
func (*ObjectsService).SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall
func cloud.google.com/go/storage.iamFromStoragePolicy(rp *Policy) *iampb.Policy
Condition: The condition that is associated with this binding. NOTE:
an unsatisfied condition will not allow user access via current
binding. Different bindings, including their conditions, are examined
independently.
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.
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
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.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func cloud.google.com/go/storage.iamToStorageBindings(ibs []*iampb.Binding) []*PolicyBindings
func cloud.google.com/go/storage.iamFromStorageBindings(rbs []*PolicyBindings) []*iampb.Binding
ctx_context.Contextheader_http.HeaderprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.projects.hmacKeys.create" call.
Exactly one of *HmacKey or error will be non-nil. Any non-2xx status
code is an error. Response headers are in either
*HmacKey.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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsHmacKeysCreateCall).Context(ctx context.Context) *ProjectsHmacKeysCreateCall
func (*ProjectsHmacKeysCreateCall).Fields(s ...googleapi.Field) *ProjectsHmacKeysCreateCall
func (*ProjectsHmacKeysCreateCall).UserProject(userProject string) *ProjectsHmacKeysCreateCall
func (*ProjectsHmacKeysService).Create(projectId string, serviceAccountEmail string) *ProjectsHmacKeysCreateCall
accessIdstringctx_context.Contextheader_http.HeaderprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.projects.hmacKeys.delete" call.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsHmacKeysDeleteCall).Context(ctx context.Context) *ProjectsHmacKeysDeleteCall
func (*ProjectsHmacKeysDeleteCall).Fields(s ...googleapi.Field) *ProjectsHmacKeysDeleteCall
func (*ProjectsHmacKeysDeleteCall).UserProject(userProject string) *ProjectsHmacKeysDeleteCall
func (*ProjectsHmacKeysService).Delete(projectId string, accessId string) *ProjectsHmacKeysDeleteCall
accessIdstringctx_context.Contextheader_http.HeaderifNoneMatch_stringprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.projects.hmacKeys.get" call.
Exactly one of *HmacKeyMetadata or error will be non-nil. Any non-2xx
status code is an error. Response headers are in either
*HmacKeyMetadata.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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsHmacKeysGetCall).Context(ctx context.Context) *ProjectsHmacKeysGetCall
func (*ProjectsHmacKeysGetCall).Fields(s ...googleapi.Field) *ProjectsHmacKeysGetCall
func (*ProjectsHmacKeysGetCall).IfNoneMatch(entityTag string) *ProjectsHmacKeysGetCall
func (*ProjectsHmacKeysGetCall).UserProject(userProject string) *ProjectsHmacKeysGetCall
func (*ProjectsHmacKeysService).Get(projectId string, accessId string) *ProjectsHmacKeysGetCall
ctx_context.Contextheader_http.HeaderifNoneMatch_stringprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.projects.hmacKeys.list" call.
Exactly one of *HmacKeysMetadata or error will be non-nil. Any
non-2xx status code is an error. Response headers are in either
*HmacKeysMetadata.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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
MaxResults sets the optional parameter "maxResults": Maximum number
of items to return in a single page of responses. The service uses
this parameter or 250 items, whichever is smaller. The max number of
items per page will also be limited by the number of distinct service
accounts in the response. If the number of service accounts in a
single response is too high, the page will truncated and a next page
token will be returned.
PageToken sets the optional parameter "pageToken": A
previously-returned page token representing part of the larger set of
results to view.
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.
ServiceAccountEmail sets the optional parameter
"serviceAccountEmail": If present, only keys for the given service
account are returned.
ShowDeletedKeys sets the optional parameter "showDeletedKeys":
Whether or not to show keys in the DELETED state.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsHmacKeysListCall).Context(ctx context.Context) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).Fields(s ...googleapi.Field) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).IfNoneMatch(entityTag string) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).MaxResults(maxResults int64) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).PageToken(pageToken string) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).ServiceAccountEmail(serviceAccountEmail string) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).ShowDeletedKeys(showDeletedKeys bool) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysListCall).UserProject(userProject string) *ProjectsHmacKeysListCall
func (*ProjectsHmacKeysService).List(projectId string) *ProjectsHmacKeysListCall
s*Service
Create: Creates a new HMAC key for the specified service account.
Delete: Deletes an HMAC key.
Get: Retrieves an HMAC key's metadata
List: Retrieves a list of HMAC keys matching the criteria.
Update: Updates the state of an HMAC key. See the HMAC Key resource
descriptor for valid states.
func NewProjectsHmacKeysService(s *Service) *ProjectsHmacKeysService
accessIdstringctx_context.Contextheader_http.Headerhmackeymetadata*HmacKeyMetadataprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
Do executes the "storage.projects.hmacKeys.update" call.
Exactly one of *HmacKeyMetadata or error will be non-nil. Any non-2xx
status code is an error. Response headers are in either
*HmacKeyMetadata.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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsHmacKeysService).Update(projectId string, accessId string, hmackeymetadata *HmacKeyMetadata) *ProjectsHmacKeysUpdateCall
func (*ProjectsHmacKeysUpdateCall).Context(ctx context.Context) *ProjectsHmacKeysUpdateCall
func (*ProjectsHmacKeysUpdateCall).Fields(s ...googleapi.Field) *ProjectsHmacKeysUpdateCall
func (*ProjectsHmacKeysUpdateCall).UserProject(userProject string) *ProjectsHmacKeysUpdateCall
ctx_context.Contextheader_http.HeaderifNoneMatch_stringprojectIdstrings*ServiceurlParams_gensupport.URLParams
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.
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.
Fields allows partial responses to be retrieved. See
https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
for more information.
Header returns an http.Header that can be modified by the caller to
add HTTP headers to the request.
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.
ProvisionalUserProject sets the optional parameter
"provisionalUserProject": The project to be billed for this request
if the target bucket is requester-pays bucket.
UserProject sets the optional parameter "userProject": The project to
be billed for this request.
(*T) doRequest(alt string) (*http.Response, error)
func (*ProjectsServiceAccountGetCall).Context(ctx context.Context) *ProjectsServiceAccountGetCall
func (*ProjectsServiceAccountGetCall).Fields(s ...googleapi.Field) *ProjectsServiceAccountGetCall
func (*ProjectsServiceAccountGetCall).IfNoneMatch(entityTag string) *ProjectsServiceAccountGetCall
func (*ProjectsServiceAccountGetCall).ProvisionalUserProject(provisionalUserProject string) *ProjectsServiceAccountGetCall
func (*ProjectsServiceAccountGetCall).UserProject(userProject string) *ProjectsServiceAccountGetCall
func (*ProjectsServiceAccountService).Get(projectId string) *ProjectsServiceAccountGetCall
RewriteResponse: A rewrite response.
Done: true if the copy is finished; otherwise, false if the copy is
in progress. This property is always present in the response.
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.
Kind: The kind of item this is.
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.
ObjectSize: The total size of the object being copied in bytes. This
property is always present in the response.
Resource: A resource containing the metadata for the copied-to
object. This property is present in the response only when copying
completes.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
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.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ObjectsRewriteCall).Do(opts ...googleapi.CallOption) (*RewriteResponse, error)
func cloud.google.com/go/storage.(*Copier).callRewrite(ctx context.Context, rawObj *Object) (*RewriteResponse, error)
ServiceAccount: A subscription to receive Google PubSub
notifications.
EmailAddress: The ID of the notification.
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.
Kind: The kind of item this is. For notifications, this is always
storage#notification.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*ProjectsServiceAccountGetCall).Do(opts ...googleapi.CallOption) (*ServiceAccount, error)
TestIamPermissionsResponse: A
storage.(buckets|objects).testIamPermissions response.
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.
Kind: The kind of item this is.
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.
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.
ServerResponse contains the HTTP response code and headers from the
server.
HTTPStatusCode is the server's response status code. When using a
resource method's Do call, this will always be in the 2xx range.
Header contains the response header fields from the server.
(*T) MarshalJSON() ([]byte, error)
*T : encoding/json.Marshaler
func (*BucketsTestIamPermissionsCall).Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
func (*ObjectsTestIamPermissionsCall).Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error)
Package-Level Functions (total 12, all are exported)
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.
To provide a custom HTTP client, use option.WithHTTPClient.
If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.