Copyright 2020 Google LLC. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Code generated file. DO NOT EDIT.
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 storage // import "google.golang.org/api/storage/v1"

import (
	
	
	
	
	
	
	
	
	
	

	googleapi 
	gensupport 
	option 
	internaloption 
	htransport 
)
Always reference these packages, just in case the auto-generated code below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint

const apiId = "storage:v1"
const apiName = "storage"
const apiVersion = "v1"
const basePath = "https://storage.googleapis.com/storage/v1/"
OAuth2 scopes used by this API.
View and manage your data across Google Cloud Platform services
	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
View your data across Google Cloud Platform services
	CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"
Manage your data and permissions in Google Cloud Storage
	DevstorageFullControlScope = "https://www.googleapis.com/auth/devstorage.full_control"
View your data in Google Cloud Storage
	DevstorageReadOnlyScope = "https://www.googleapis.com/auth/devstorage.read_only"
Manage your data in Google Cloud Storage
	DevstorageReadWriteScope = "https://www.googleapis.com/auth/devstorage.read_write"
)
NewService creates a new Service.
func ( context.Context,  ...option.ClientOption) (*Service, error) {
	 := option.WithScopes(
		"https://www.googleapis.com/auth/cloud-platform",
		"https://www.googleapis.com/auth/cloud-platform.read-only",
		"https://www.googleapis.com/auth/devstorage.full_control",
		"https://www.googleapis.com/auth/devstorage.read_only",
		"https://www.googleapis.com/auth/devstorage.read_write",
NOTE: prepend, so we don't override user-specified scopes.
	 = append([]option.ClientOption{}, ...)
	 = append(, internaloption.WithDefaultEndpoint(basePath))
	, ,  := htransport.NewClient(, ...)
	if  != nil {
		return nil, 
	}
	,  := New()
	if  != nil {
		return nil, 
	}
	if  != "" {
		.BasePath = 
	}
	return , nil
}
New creates a new Service. It uses the provided http.Client for requests. Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func ( *http.Client) (*Service, error) {
	if  == nil {
		return nil, errors.New("client is nil")
	}
	 := &Service{client: , BasePath: basePath}
	.BucketAccessControls = NewBucketAccessControlsService()
	.Buckets = NewBucketsService()
	.Channels = NewChannelsService()
	.DefaultObjectAccessControls = NewDefaultObjectAccessControlsService()
	.Notifications = NewNotificationsService()
	.ObjectAccessControls = NewObjectAccessControlsService()
	.Objects = NewObjectsService()
	.Projects = NewProjectsService()
	return , nil
}

type Service struct {
	client    *http.Client
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	BucketAccessControls *BucketAccessControlsService

	Buckets *BucketsService

	Channels *ChannelsService

	DefaultObjectAccessControls *DefaultObjectAccessControlsService

	Notifications *NotificationsService

	ObjectAccessControls *ObjectAccessControlsService

	Objects *ObjectsService

	Projects *ProjectsService
}

func ( *Service) () string {
	if .UserAgent == "" {
		return googleapi.UserAgent
	}
	return googleapi.UserAgent + " " + .UserAgent
}

func ( *Service) *BucketAccessControlsService {
	 := &BucketAccessControlsService{s: }
	return 
}

type BucketAccessControlsService struct {
	s *Service
}

func ( *Service) *BucketsService {
	 := &BucketsService{s: }
	return 
}

type BucketsService struct {
	s *Service
}

func ( *Service) *ChannelsService {
	 := &ChannelsService{s: }
	return 
}

type ChannelsService struct {
	s *Service
}

func ( *Service) *DefaultObjectAccessControlsService {
	 := &DefaultObjectAccessControlsService{s: }
	return 
}

type DefaultObjectAccessControlsService struct {
	s *Service
}

func ( *Service) *NotificationsService {
	 := &NotificationsService{s: }
	return 
}

type NotificationsService struct {
	s *Service
}

func ( *Service) *ObjectAccessControlsService {
	 := &ObjectAccessControlsService{s: }
	return 
}

type ObjectAccessControlsService struct {
	s *Service
}

func ( *Service) *ObjectsService {
	 := &ObjectsService{s: }
	return 
}

type ObjectsService struct {
	s *Service
}

func ( *Service) *ProjectsService {
	 := &ProjectsService{s: }
	.HmacKeys = NewProjectsHmacKeysService()
	.ServiceAccount = NewProjectsServiceAccountService()
	return 
}

type ProjectsService struct {
	s *Service

	HmacKeys *ProjectsHmacKeysService

	ServiceAccount *ProjectsServiceAccountService
}

func ( *Service) *ProjectsHmacKeysService {
	 := &ProjectsHmacKeysService{s: }
	return 
}

type ProjectsHmacKeysService struct {
	s *Service
}

func ( *Service) *ProjectsServiceAccountService {
	 := &ProjectsServiceAccountService{s: }
	return 
}

type ProjectsServiceAccountService struct {
	s *Service
}
Bucket: A bucket.
Acl: Access controls on the bucket.
	Acl []*BucketAccessControl `json:"acl,omitempty"`
Billing: The bucket's billing configuration.
	Billing *BucketBilling `json:"billing,omitempty"`
Cors: The bucket's Cross-Origin Resource Sharing (CORS) configuration.
	Cors []*BucketCors `json:"cors,omitempty"`
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.
	DefaultEventBasedHold bool `json:"defaultEventBasedHold,omitempty"`
DefaultObjectAcl: Default access controls to apply to new objects when no ACL is provided.
	DefaultObjectAcl []*ObjectAccessControl `json:"defaultObjectAcl,omitempty"`
Encryption: Encryption configuration for a bucket.
	Encryption *BucketEncryption `json:"encryption,omitempty"`
Etag: HTTP 1.1 Entity tag for the bucket.
	Etag string `json:"etag,omitempty"`
IamConfiguration: The bucket's IAM configuration.
	IamConfiguration *BucketIamConfiguration `json:"iamConfiguration,omitempty"`
Id: The ID of the bucket. For buckets, the id and name properties are the same.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For buckets, this is always storage#bucket.
	Kind string `json:"kind,omitempty"`
Labels: User-provided labels, in key/value pairs.
	Labels map[string]string `json:"labels,omitempty"`
Lifecycle: The bucket's lifecycle configuration. See lifecycle management for more information.
	Lifecycle *BucketLifecycle `json:"lifecycle,omitempty"`
Location: The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Defaults to US. See the developer's guide for the authoritative list.
	Location string `json:"location,omitempty"`
LocationType: The type of the bucket location.
	LocationType string `json:"locationType,omitempty"`
Logging: The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
	Logging *BucketLogging `json:"logging,omitempty"`
Metageneration: The metadata generation of this bucket.
	Metageneration int64 `json:"metageneration,omitempty,string"`
Name: The name of the bucket.
	Name string `json:"name,omitempty"`
Owner: The owner of the bucket. This is always the project team's owner group.
	Owner *BucketOwner `json:"owner,omitempty"`
ProjectNumber: The project number of the project the bucket belongs to.
	ProjectNumber uint64 `json:"projectNumber,omitempty,string"`
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.
	RetentionPolicy *BucketRetentionPolicy `json:"retentionPolicy,omitempty"`
SelfLink: The URI of this bucket.
	SelfLink string `json:"selfLink,omitempty"`
StorageClass: The bucket's default storage class, used whenever no storageClass is specified for a newly-created object. This defines how objects in the bucket are stored and determines the SLA and the cost of storage. Values include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, 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.
	StorageClass string `json:"storageClass,omitempty"`
TimeCreated: The creation time of the bucket in RFC 3339 format.
	TimeCreated string `json:"timeCreated,omitempty"`
Updated: The modification time of the bucket in RFC 3339 format.
	Updated string `json:"updated,omitempty"`
Versioning: The bucket's versioning configuration.
	Versioning *BucketVersioning `json:"versioning,omitempty"`
Website: The bucket's website configuration, controlling how the service behaves when accessing bucket contents as a web site. See the Static Website Examples for more information.
	Website *BucketWebsite `json:"website,omitempty"`
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.
	ZoneAffinity []string `json:"zoneAffinity,omitempty"`
ZoneSeparation: If set, objects placed in this bucket are required to be separated by disaster domain.
	ZoneSeparation bool `json:"zoneSeparation,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Acl") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Acl") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Bucket) () ([]byte, error) {
	type  Bucket
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketBilling: The bucket's billing configuration.
RequesterPays: When set to true, Requester Pays is enabled for this bucket.
	RequesterPays bool `json:"requesterPays,omitempty"`
ForceSendFields is a list of field names (e.g. "RequesterPays") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "RequesterPays") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketBilling) () ([]byte, error) {
	type  BucketBilling
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}

MaxAgeSeconds: The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
	MaxAgeSeconds int64 `json:"maxAgeSeconds,omitempty"`
Method: The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
	Method []string `json:"method,omitempty"`
Origin: The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
	Origin []string `json:"origin,omitempty"`
ResponseHeader: The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
	ResponseHeader []string `json:"responseHeader,omitempty"`
ForceSendFields is a list of field names (e.g. "MaxAgeSeconds") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "MaxAgeSeconds") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketCors) () ([]byte, error) {
	type  BucketCors
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	DefaultKmsKeyName string `json:"defaultKmsKeyName,omitempty"`
ForceSendFields is a list of field names (e.g. "DefaultKmsKeyName") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "DefaultKmsKeyName") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketEncryption) () ([]byte, error) {
	type  BucketEncryption
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	BucketPolicyOnly *BucketIamConfigurationBucketPolicyOnly `json:"bucketPolicyOnly,omitempty"`
UniformBucketLevelAccess: The bucket's uniform bucket-level access configuration.
	UniformBucketLevelAccess *BucketIamConfigurationUniformBucketLevelAccess `json:"uniformBucketLevelAccess,omitempty"`
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.
	ForceSendFields []string `json:"-"`
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.
	NullFields []string `json:"-"`
}

func ( *BucketIamConfiguration) () ([]byte, error) {
	type  BucketIamConfiguration
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	Enabled bool `json:"enabled,omitempty"`
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.
	LockedTime string `json:"lockedTime,omitempty"`
ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Enabled") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
BucketIamConfigurationUniformBucketLevelAccess: The bucket's uniform bucket-level access configuration.
Enabled: If set, access is controlled only by bucket-level or above IAM policies.
	Enabled bool `json:"enabled,omitempty"`
LockedTime: The deadline for changing iamConfiguration.uniformBucketLevelAccess.enabled from true to false in RFC 3339 format. iamConfiguration.uniformBucketLevelAccess.enabled may be changed from true to false until the locked time, after which the field is immutable.
	LockedTime string `json:"lockedTime,omitempty"`
ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Enabled") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
BucketLifecycle: The bucket's lifecycle configuration. See lifecycle management for more information.
Rule: A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
	Rule []*BucketLifecycleRule `json:"rule,omitempty"`
ForceSendFields is a list of field names (e.g. "Rule") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Rule") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketLifecycle) () ([]byte, error) {
	type  BucketLifecycle
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}

Action: The action to take.
	Action *BucketLifecycleRuleAction `json:"action,omitempty"`
Condition: The condition(s) under which the action will be taken.
	Condition *BucketLifecycleRuleCondition `json:"condition,omitempty"`
ForceSendFields is a list of field names (e.g. "Action") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Action") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketLifecycleRule) () ([]byte, error) {
	type  BucketLifecycleRule
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketLifecycleRuleAction: The action to take.
StorageClass: Target storage class. Required iff the type of the action is SetStorageClass.
	StorageClass string `json:"storageClass,omitempty"`
Type: Type of the action. Currently, only Delete and SetStorageClass are supported.
	Type string `json:"type,omitempty"`
ForceSendFields is a list of field names (e.g. "StorageClass") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "StorageClass") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketLifecycleRuleAction) () ([]byte, error) {
	type  BucketLifecycleRuleAction
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	Age int64 `json:"age,omitempty"`
CreatedBefore: A date in RFC 3339 format with only the date part (for instance, "2013-01-15"). This condition is satisfied when an object is created before midnight of the specified date in UTC.
	CreatedBefore string `json:"createdBefore,omitempty"`
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.
	CustomTimeBefore string `json:"customTimeBefore,omitempty"`
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.
	DaysSinceCustomTime int64 `json:"daysSinceCustomTime,omitempty"`
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.
	DaysSinceNoncurrentTime int64 `json:"daysSinceNoncurrentTime,omitempty"`
IsLive: Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
	IsLive *bool `json:"isLive,omitempty"`
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.
	MatchesPattern string `json:"matchesPattern,omitempty"`
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.
	MatchesStorageClass []string `json:"matchesStorageClass,omitempty"`
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.
	NoncurrentTimeBefore string `json:"noncurrentTimeBefore,omitempty"`
NumNewerVersions: Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
	NumNewerVersions int64 `json:"numNewerVersions,omitempty"`
ForceSendFields is a list of field names (e.g. "Age") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Age") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketLifecycleRuleCondition) () ([]byte, error) {
	type  BucketLifecycleRuleCondition
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketLogging: The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
LogBucket: The destination bucket where the current bucket's logs should be placed.
	LogBucket string `json:"logBucket,omitempty"`
LogObjectPrefix: A prefix for log object names.
	LogObjectPrefix string `json:"logObjectPrefix,omitempty"`
ForceSendFields is a list of field names (e.g. "LogBucket") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "LogBucket") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketLogging) () ([]byte, error) {
	type  BucketLogging
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketOwner: The owner of the bucket. This is always the project team's owner group.
Entity: The entity, in the form project-owner-projectId.
	Entity string `json:"entity,omitempty"`
EntityId: The ID for the entity.
	EntityId string `json:"entityId,omitempty"`
ForceSendFields is a list of field names (e.g. "Entity") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Entity") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketOwner) () ([]byte, error) {
	type  BucketOwner
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	EffectiveTime string `json:"effectiveTime,omitempty"`
IsLocked: Once locked, an object retention policy cannot be modified.
	IsLocked bool `json:"isLocked,omitempty"`
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.
	RetentionPeriod int64 `json:"retentionPeriod,omitempty,string"`
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.
	ForceSendFields []string `json:"-"`
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.
	NullFields []string `json:"-"`
}

func ( *BucketRetentionPolicy) () ([]byte, error) {
	type  BucketRetentionPolicy
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketVersioning: The bucket's versioning configuration.
Enabled: While set to true, versioning is fully enabled for this bucket.
	Enabled bool `json:"enabled,omitempty"`
ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Enabled") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketVersioning) () ([]byte, error) {
	type  BucketVersioning
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
MainPageSuffix: If the requested object path is missing, the service will ensure the path has a trailing '/', append this suffix, and attempt to retrieve the resulting object. This allows the creation of index.html objects to represent directory pages.
	MainPageSuffix string `json:"mainPageSuffix,omitempty"`
NotFoundPage: If the requested object path is missing, and any mainPageSuffix object is missing, if applicable, the service will return the named object from this bucket as the content for a 404 Not Found result.
	NotFoundPage string `json:"notFoundPage,omitempty"`
ForceSendFields is a list of field names (e.g. "MainPageSuffix") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "MainPageSuffix") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketWebsite) () ([]byte, error) {
	type  BucketWebsite
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketAccessControl: An access-control entry.
Bucket: The name of the bucket.
	Bucket string `json:"bucket,omitempty"`
Domain: The domain associated with the entity, if any.
	Domain string `json:"domain,omitempty"`
Email: The email address associated with the entity, if any.
	Email string `json:"email,omitempty"`
Entity: The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
	Entity string `json:"entity,omitempty"`
EntityId: The ID for the entity, if any.
	EntityId string `json:"entityId,omitempty"`
Etag: HTTP 1.1 Entity tag for the access-control entry.
	Etag string `json:"etag,omitempty"`
Id: The ID of the access-control entry.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
	Kind string `json:"kind,omitempty"`
ProjectTeam: The project team associated with the entity, if any.
	ProjectTeam *BucketAccessControlProjectTeam `json:"projectTeam,omitempty"`
Role: The access permission for the entity.
	Role string `json:"role,omitempty"`
SelfLink: The link to this access-control entry.
	SelfLink string `json:"selfLink,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Bucket") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketAccessControl) () ([]byte, error) {
	type  BucketAccessControl
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketAccessControlProjectTeam: The project team associated with the entity, if any.
ProjectNumber: The project number.
	ProjectNumber string `json:"projectNumber,omitempty"`
Team: The team.
	Team string `json:"team,omitempty"`
ForceSendFields is a list of field names (e.g. "ProjectNumber") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "ProjectNumber") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketAccessControlProjectTeam) () ([]byte, error) {
	type  BucketAccessControlProjectTeam
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
BucketAccessControls: An access-control list.
Items: The list of items.
	Items []*BucketAccessControl `json:"items,omitempty"`
Kind: The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
	Kind string `json:"kind,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *BucketAccessControls) () ([]byte, error) {
	type  BucketAccessControls
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Buckets: A list of buckets.
Items: The list of items.
	Items []*Bucket `json:"items,omitempty"`
Kind: The kind of item this is. For lists of buckets, this is always storage#buckets.
	Kind string `json:"kind,omitempty"`
NextPageToken: The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Buckets) () ([]byte, error) {
	type  Buckets
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Channel: An notification channel used to watch for resource changes.
Address: The address where notifications are delivered for this channel.
	Address string `json:"address,omitempty"`
Expiration: Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.
	Expiration int64 `json:"expiration,omitempty,string"`
Id: A UUID or similar unique string that identifies this channel.
	Id string `json:"id,omitempty"`
Kind: Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".
	Kind string `json:"kind,omitempty"`
Params: Additional parameters controlling delivery channel behavior. Optional.
	Params map[string]string `json:"params,omitempty"`
Payload: A Boolean value to indicate whether payload is wanted. Optional.
	Payload bool `json:"payload,omitempty"`
ResourceId: An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.
	ResourceId string `json:"resourceId,omitempty"`
ResourceUri: A version-specific identifier for the watched resource.
	ResourceUri string `json:"resourceUri,omitempty"`
Token: An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.
	Token string `json:"token,omitempty"`
Type: The type of delivery mechanism used for this channel.
	Type string `json:"type,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Address") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Address") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Channel) () ([]byte, error) {
	type  Channel
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ComposeRequest: A Compose request.
Destination: Properties of the resulting object.
	Destination *Object `json:"destination,omitempty"`
Kind: The kind of item this is.
	Kind string `json:"kind,omitempty"`
SourceObjects: The list of source objects that will be concatenated into a single object.
	SourceObjects []*ComposeRequestSourceObjects `json:"sourceObjects,omitempty"`
ForceSendFields is a list of field names (e.g. "Destination") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Destination") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ComposeRequest) () ([]byte, error) {
	type  ComposeRequest
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}

Generation: The generation of this object to use as the source.
	Generation int64 `json:"generation,omitempty,string"`
Name: The source object's name. All source objects must reside in the same bucket.
	Name string `json:"name,omitempty"`
ObjectPreconditions: Conditions that must be met for this operation to execute.
ForceSendFields is a list of field names (e.g. "Generation") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Generation") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ComposeRequestSourceObjects) () ([]byte, error) {
	type  ComposeRequestSourceObjects
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ComposeRequestSourceObjectsObjectPreconditions: Conditions that must be met for this operation to execute.
IfGenerationMatch: Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.
	IfGenerationMatch int64 `json:"ifGenerationMatch,omitempty,string"`
ForceSendFields is a list of field names (e.g. "IfGenerationMatch") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "IfGenerationMatch") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
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.
	Description string `json:"description,omitempty"`
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.
	Expression string `json:"expression,omitempty"`
Location: An optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
	Location string `json:"location,omitempty"`
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.
	Title string `json:"title,omitempty"`
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.
	ForceSendFields []string `json:"-"`
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.
	NullFields []string `json:"-"`
}

func ( *Expr) () ([]byte, error) {
	type  Expr
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
HmacKey: JSON template to produce a JSON-style HMAC Key resource for Create responses.
Kind: The kind of item this is. For HMAC keys, this is always storage#hmacKey.
	Kind string `json:"kind,omitempty"`
Metadata: Key metadata.
	Metadata *HmacKeyMetadata `json:"metadata,omitempty"`
Secret: HMAC secret key material.
	Secret string `json:"secret,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Kind") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Kind") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *HmacKey) () ([]byte, error) {
	type  HmacKey
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
HmacKeyMetadata: JSON template to produce a JSON-style HMAC Key metadata resource.
AccessId: The ID of the HMAC Key.
	AccessId string `json:"accessId,omitempty"`
Etag: HTTP 1.1 Entity tag for the HMAC key.
	Etag string `json:"etag,omitempty"`
Id: The ID of the HMAC key, including the Project ID and the Access ID.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For HMAC Key metadata, this is always storage#hmacKeyMetadata.
	Kind string `json:"kind,omitempty"`
ProjectId: Project ID owning the service account to which the key authenticates.
	ProjectId string `json:"projectId,omitempty"`
SelfLink: The link to this resource.
	SelfLink string `json:"selfLink,omitempty"`
ServiceAccountEmail: The email address of the key's associated service account.
	ServiceAccountEmail string `json:"serviceAccountEmail,omitempty"`
State: The state of the key. Can be one of ACTIVE, INACTIVE, or DELETED.
	State string `json:"state,omitempty"`
TimeCreated: The creation time of the HMAC key in RFC 3339 format.
	TimeCreated string `json:"timeCreated,omitempty"`
Updated: The last modification time of the HMAC key metadata in RFC 3339 format.
	Updated string `json:"updated,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
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.
	ForceSendFields []string `json:"-"`
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.
	NullFields []string `json:"-"`
}

func ( *HmacKeyMetadata) () ([]byte, error) {
	type  HmacKeyMetadata
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
HmacKeysMetadata: A list of hmacKeys.
Items: The list of items.
	Items []*HmacKeyMetadata `json:"items,omitempty"`
Kind: The kind of item this is. For lists of hmacKeys, this is always storage#hmacKeysMetadata.
	Kind string `json:"kind,omitempty"`
NextPageToken: The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *HmacKeysMetadata) () ([]byte, error) {
	type  HmacKeysMetadata
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	CustomAttributes map[string]string `json:"custom_attributes,omitempty"`
Etag: HTTP 1.1 Entity tag for this subscription notification.
	Etag string `json:"etag,omitempty"`
EventTypes: If present, only send notifications about listed event types. If empty, sent notifications for all event types.
	EventTypes []string `json:"event_types,omitempty"`
Id: The ID of the notification.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For notifications, this is always storage#notification.
	Kind string `json:"kind,omitempty"`
ObjectNamePrefix: If present, only apply this notification configuration to object names that begin with this prefix.
	ObjectNamePrefix string `json:"object_name_prefix,omitempty"`
PayloadFormat: The desired content of the Payload.
	PayloadFormat string `json:"payload_format,omitempty"`
SelfLink: The canonical URL of this notification.
	SelfLink string `json:"selfLink,omitempty"`
Topic: The Cloud PubSub topic to which this subscription publishes. Formatted as: '//pubsub.googleapis.com/projects/{project-identifier}/topics/{my-topi c}'
	Topic string `json:"topic,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "CustomAttributes") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "CustomAttributes") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Notification) () ([]byte, error) {
	type  Notification
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Notifications: A list of notification subscriptions.
Items: The list of items.
	Items []*Notification `json:"items,omitempty"`
Kind: The kind of item this is. For lists of notifications, this is always storage#notifications.
	Kind string `json:"kind,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Notifications) () ([]byte, error) {
	type  Notifications
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Object: An object.
Acl: Access controls on the object.
	Acl []*ObjectAccessControl `json:"acl,omitempty"`
Bucket: The name of the bucket containing this object.
	Bucket string `json:"bucket,omitempty"`
CacheControl: Cache-Control directive for the object data. If omitted, and the object is accessible to all anonymous users, the default will be public, max-age=3600.
	CacheControl string `json:"cacheControl,omitempty"`
ComponentCount: Number of underlying components that make up this object. Components are accumulated by compose operations.
	ComponentCount int64 `json:"componentCount,omitempty"`
ContentDisposition: Content-Disposition of the object data.
	ContentDisposition string `json:"contentDisposition,omitempty"`
ContentEncoding: Content-Encoding of the object data.
	ContentEncoding string `json:"contentEncoding,omitempty"`
ContentLanguage: Content-Language of the object data.
	ContentLanguage string `json:"contentLanguage,omitempty"`
ContentType: Content-Type of the object data. If an object is stored without a Content-Type, it is served as application/octet-stream.
	ContentType string `json:"contentType,omitempty"`
Crc32c: CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64 in big-endian byte order. For more information about using the CRC32c checksum, see Hashes and ETags: Best Practices.
	Crc32c string `json:"crc32c,omitempty"`
CustomTime: A timestamp in RFC 3339 format specified by the user for an object.
	CustomTime string `json:"customTime,omitempty"`
CustomerEncryption: Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
	CustomerEncryption *ObjectCustomerEncryption `json:"customerEncryption,omitempty"`
Etag: HTTP 1.1 Entity tag for the object.
	Etag string `json:"etag,omitempty"`
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.
	EventBasedHold bool `json:"eventBasedHold,omitempty"`
Generation: The content generation of this object. Used for object versioning.
	Generation int64 `json:"generation,omitempty,string"`
Id: The ID of the object, including the bucket name, object name, and generation number.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For objects, this is always storage#object.
	Kind string `json:"kind,omitempty"`
KmsKeyName: Cloud KMS Key used to encrypt this object, if the object is encrypted by such a key.
	KmsKeyName string `json:"kmsKeyName,omitempty"`
Md5Hash: MD5 hash of the data; encoded using base64. For more information about using the MD5 hash, see Hashes and ETags: Best Practices.
	Md5Hash string `json:"md5Hash,omitempty"`
MediaLink: Media download link.
	MediaLink string `json:"mediaLink,omitempty"`
Metadata: User-provided metadata, in key/value pairs.
	Metadata map[string]string `json:"metadata,omitempty"`
Metageneration: The version of the metadata for this object at this generation. Used for preconditions and for detecting changes in metadata. A metageneration number is only meaningful in the context of a particular generation of a particular object.
	Metageneration int64 `json:"metageneration,omitempty,string"`
Name: The name of the object. Required if not specified by URL parameter.
	Name string `json:"name,omitempty"`
Owner: The owner of the object. This will always be the uploader of the object.
	Owner *ObjectOwner `json:"owner,omitempty"`
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).
	RetentionExpirationTime string `json:"retentionExpirationTime,omitempty"`
SelfLink: The link to this object.
	SelfLink string `json:"selfLink,omitempty"`
Size: Content-Length of the data in bytes.
	Size uint64 `json:"size,omitempty,string"`
StorageClass: Storage class of the object.
	StorageClass string `json:"storageClass,omitempty"`
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.
	TemporaryHold bool `json:"temporaryHold,omitempty"`
TimeCreated: The creation time of the object in RFC 3339 format.
	TimeCreated string `json:"timeCreated,omitempty"`
TimeDeleted: The deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
	TimeDeleted string `json:"timeDeleted,omitempty"`
TimeStorageClassUpdated: The time at which the object's storage class was last changed. When the object is initially created, it will be set to timeCreated.
	TimeStorageClassUpdated string `json:"timeStorageClassUpdated,omitempty"`
Updated: The modification time of the object metadata in RFC 3339 format.
	Updated string `json:"updated,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Acl") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Acl") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Object) () ([]byte, error) {
	type  Object
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ObjectCustomerEncryption: Metadata of customer-supplied encryption key, if the object is encrypted by such a key.
EncryptionAlgorithm: The encryption algorithm.
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
KeySha256: SHA256 hash value of the encryption key.
	KeySha256 string `json:"keySha256,omitempty"`
ForceSendFields is a list of field names (e.g. "EncryptionAlgorithm") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "EncryptionAlgorithm") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ObjectCustomerEncryption) () ([]byte, error) {
	type  ObjectCustomerEncryption
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ObjectOwner: The owner of the object. This will always be the uploader of the object.
Entity: The entity, in the form user-userId.
	Entity string `json:"entity,omitempty"`
EntityId: The ID for the entity.
	EntityId string `json:"entityId,omitempty"`
ForceSendFields is a list of field names (e.g. "Entity") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Entity") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ObjectOwner) () ([]byte, error) {
	type  ObjectOwner
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ObjectAccessControl: An access-control entry.
Bucket: The name of the bucket.
	Bucket string `json:"bucket,omitempty"`
Domain: The domain associated with the entity, if any.
	Domain string `json:"domain,omitempty"`
Email: The email address associated with the entity, if any.
	Email string `json:"email,omitempty"`
Entity: The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - domain-domain - project-team-projectId - allUsers - allAuthenticatedUsers Examples: - The user liz@example.com would be user-liz@example.com. - The group example@googlegroups.com would be group-example@googlegroups.com. - To refer to all members of the Google Apps for Business domain example.com, the entity would be domain-example.com.
	Entity string `json:"entity,omitempty"`
EntityId: The ID for the entity, if any.
	EntityId string `json:"entityId,omitempty"`
Etag: HTTP 1.1 Entity tag for the access-control entry.
	Etag string `json:"etag,omitempty"`
Generation: The content generation of the object, if applied to an object.
	Generation int64 `json:"generation,omitempty,string"`
Id: The ID of the access-control entry.
	Id string `json:"id,omitempty"`
Kind: The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
	Kind string `json:"kind,omitempty"`
Object: The name of the object, if applied to an object.
	Object string `json:"object,omitempty"`
ProjectTeam: The project team associated with the entity, if any.
	ProjectTeam *ObjectAccessControlProjectTeam `json:"projectTeam,omitempty"`
Role: The access permission for the entity.
	Role string `json:"role,omitempty"`
SelfLink: The link to this access-control entry.
	SelfLink string `json:"selfLink,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Bucket") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ObjectAccessControl) () ([]byte, error) {
	type  ObjectAccessControl
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ObjectAccessControlProjectTeam: The project team associated with the entity, if any.
ProjectNumber: The project number.
	ProjectNumber string `json:"projectNumber,omitempty"`
Team: The team.
	Team string `json:"team,omitempty"`
ForceSendFields is a list of field names (e.g. "ProjectNumber") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "ProjectNumber") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ObjectAccessControlProjectTeam) () ([]byte, error) {
	type  ObjectAccessControlProjectTeam
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ObjectAccessControls: An access-control list.
Items: The list of items.
	Items []*ObjectAccessControl `json:"items,omitempty"`
Kind: The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
	Kind string `json:"kind,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ObjectAccessControls) () ([]byte, error) {
	type  ObjectAccessControls
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Objects: A list of objects.
Items: The list of items.
	Items []*Object `json:"items,omitempty"`
Kind: The kind of item this is. For lists of objects, this is always storage#objects.
	Kind string `json:"kind,omitempty"`
NextPageToken: The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`
Prefixes: The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
	Prefixes []string `json:"prefixes,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Items") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Items") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Objects) () ([]byte, error) {
	type  Objects
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	Bindings []*PolicyBindings `json:"bindings,omitempty"`
Etag: HTTP 1.1 Entity tag for the policy.
	Etag string `json:"etag,omitempty"`
Kind: The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
	Kind string `json:"kind,omitempty"`
ResourceId: The ID of the resource to which this policy belongs. Will be of the form projects/_/buckets/bucket for buckets, and projects/_/buckets/bucket/objects/object for objects. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects/_/buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
	ResourceId string `json:"resourceId,omitempty"`
Version: The IAM policy format version.
	Version int64 `json:"version,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Bindings") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Bindings") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *Policy) () ([]byte, error) {
	type  Policy
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}

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.
	Condition *Expr `json:"condition,omitempty"`
Members: A collection of identifiers for members who may assume the provided role. Recognized identifiers are as follows: - allUsers — A special identifier that represents anyone on the internet; with or without a Google account. - allAuthenticatedUsers — A special identifier that represents anyone who is authenticated with a Google account or a service account. - user:emailid — An email address that represents a specific account. For example, user:alice@gmail.com or user:joe@example.com. - serviceAccount:emailid — An email address that represents a service account. For example, serviceAccount:my-other-app@appspot.gserviceaccount.com . - group:emailid — An email address that represents a Google group. For example, group:admins@example.com. - domain:domain — A Google Apps domain name that represents all the users of that domain. For example, domain:google.com or domain:example.com. - projectOwner:projectid — Owners of the given project. For example, projectOwner:my-example-project - projectEditor:projectid — Editors of the given project. For example, projectEditor:my-example-project - projectViewer:projectid — Viewers of the given project. For example, projectViewer:my-example-project
	Members []string `json:"members,omitempty"`
Role: The role to which members belong. Two types of roles are supported: new IAM roles, which grant permissions that do not map directly to those provided by ACLs, and legacy IAM roles, which do map directly to ACL permissions. All roles are of the format roles/storage.specificRole. The new IAM roles are: - roles/storage.admin — Full control of Google Cloud Storage resources. - roles/storage.objectViewer — Read-Only access to Google Cloud Storage objects. - roles/storage.objectCreator — Access to create objects in Google Cloud Storage. - roles/storage.objectAdmin — Full control of Google Cloud Storage objects. The legacy IAM roles are: - roles/storage.legacyObjectReader — Read-only access to objects without listing. Equivalent to an ACL entry on an object with the READER role. - roles/storage.legacyObjectOwner — Read/write access to existing objects without listing. Equivalent to an ACL entry on an object with the OWNER role. - roles/storage.legacyBucketReader — Read access to buckets with object listing. Equivalent to an ACL entry on a bucket with the READER role. - roles/storage.legacyBucketWriter — Read access to buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the WRITER role. - roles/storage.legacyBucketOwner — Read and write access to existing buckets with object listing/creation/deletion. Equivalent to an ACL entry on a bucket with the OWNER role.
	Role string `json:"role,omitempty"`
ForceSendFields is a list of field names (e.g. "Condition") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Condition") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *PolicyBindings) () ([]byte, error) {
	type  PolicyBindings
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
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.
	Done bool `json:"done,omitempty"`
Kind: The kind of item this is.
	Kind string `json:"kind,omitempty"`
ObjectSize: The total size of the object being copied in bytes. This property is always present in the response.
	ObjectSize int64 `json:"objectSize,omitempty,string"`
Resource: A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
	Resource *Object `json:"resource,omitempty"`
RewriteToken: A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
	RewriteToken string `json:"rewriteToken,omitempty"`
TotalBytesRewritten: The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
	TotalBytesRewritten int64 `json:"totalBytesRewritten,omitempty,string"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Done") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Done") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *RewriteResponse) () ([]byte, error) {
	type  RewriteResponse
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
ServiceAccount: A subscription to receive Google PubSub notifications.
EmailAddress: The ID of the notification.
	EmailAddress string `json:"email_address,omitempty"`
Kind: The kind of item this is. For notifications, this is always storage#notification.
	Kind string `json:"kind,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "EmailAddress") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "EmailAddress") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *ServiceAccount) () ([]byte, error) {
	type  ServiceAccount
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
TestIamPermissionsResponse: A storage.(buckets|objects).testIamPermissions response.
Kind: The kind of item this is.
	Kind string `json:"kind,omitempty"`
Permissions: The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or objects. The supported permissions are as follows: - storage.buckets.delete — Delete bucket. - storage.buckets.get — Read bucket metadata. - storage.buckets.getIamPolicy — Read bucket IAM policy. - storage.buckets.create — Create bucket. - storage.buckets.list — List buckets. - storage.buckets.setIamPolicy — Update bucket IAM policy. - storage.buckets.update — Update bucket metadata. - storage.objects.delete — Delete object. - storage.objects.get — Read object data and metadata. - storage.objects.getIamPolicy — Read object IAM policy. - storage.objects.create — Create object. - storage.objects.list — List objects. - storage.objects.setIamPolicy — Update object IAM policy. - storage.objects.update — Update object metadata.
	Permissions []string `json:"permissions,omitempty"`
ServerResponse contains the HTTP response code and headers from the server.
ForceSendFields is a list of field names (e.g. "Kind") to unconditionally include in API requests. By default, fields with empty values are omitted from API requests. However, any non-pointer, non-interface field appearing in ForceSendFields will be sent to the server regardless of whether the field is empty or not. This may be used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
NullFields is a list of field names (e.g. "Kind") to include in API requests with the JSON null value. By default, fields with empty values are omitted from API requests. However, any field with an empty value appearing in NullFields will be sent to the server as null. It is an error if a field in this list has a non-empty value. This may be used to include null fields in Patch requests.
	NullFields []string `json:"-"`
}

func ( *TestIamPermissionsResponse) () ([]byte, error) {
	type  TestIamPermissionsResponse
	 := (*)
	return gensupport.MarshalJSON(, .ForceSendFields, .NullFields)
}
Delete: Permanently deletes the ACL entry for the specified entity on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsDeleteCall) ( string) *BucketAccessControlsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsDeleteCall) ( string) *BucketAccessControlsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.delete" call.
func ( *BucketAccessControlsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Permanently deletes the ACL entry for the specified entity on the specified bucket.", "httpMethod": "DELETE", "id": "storage.bucketAccessControls.delete", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl/{entity}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Get: Returns the ACL entry for the specified entity on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsGetCall) ( string) *BucketAccessControlsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsGetCall) ( string) *BucketAccessControlsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.get" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketAccessControlsGetCall) ( ...googleapi.CallOption) (*BucketAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &BucketAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns the ACL entry for the specified entity on the specified bucket.", "httpMethod": "GET", "id": "storage.bucketAccessControls.get", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl/{entity}", "response": { "$ref": "BucketAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Insert: Creates a new ACL entry on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsInsertCall) ( string) *BucketAccessControlsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsInsertCall) ( string) *BucketAccessControlsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucketaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.insert" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketAccessControlsInsertCall) ( ...googleapi.CallOption) (*BucketAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &BucketAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a new ACL entry on the specified bucket.", "httpMethod": "POST", "id": "storage.bucketAccessControls.insert", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl", "request": { "$ref": "BucketAccessControl" }, "response": { "$ref": "BucketAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
List: Retrieves ACL entries on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsListCall) ( string) *BucketAccessControlsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsListCall) ( string) *BucketAccessControlsListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.list" call. Exactly one of *BucketAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketAccessControlsListCall) ( ...googleapi.CallOption) (*BucketAccessControls, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &BucketAccessControls{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves ACL entries on the specified bucket.", "httpMethod": "GET", "id": "storage.bucketAccessControls.list", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl", "response": { "$ref": "BucketAccessControls" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Patch: Patches an ACL entry on the specified bucket.
func ( *BucketAccessControlsService) ( string,  string,  *BucketAccessControl) *BucketAccessControlsPatchCall {
	 := &BucketAccessControlsPatchCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.entity = 
	.bucketaccesscontrol = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsPatchCall) ( string) *BucketAccessControlsPatchCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsPatchCall) ( string) *BucketAccessControlsPatchCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsPatchCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsPatchCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucketaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PATCH", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.patch" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketAccessControlsPatchCall) ( ...googleapi.CallOption) (*BucketAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &BucketAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Patches an ACL entry on the specified bucket.", "httpMethod": "PATCH", "id": "storage.bucketAccessControls.patch", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl/{entity}", "request": { "$ref": "BucketAccessControl" }, "response": { "$ref": "BucketAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Update: Updates an ACL entry on the specified bucket.
func ( *BucketAccessControlsService) ( string,  string,  *BucketAccessControl) *BucketAccessControlsUpdateCall {
	 := &BucketAccessControlsUpdateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.entity = 
	.bucketaccesscontrol = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketAccessControlsUpdateCall) ( string) *BucketAccessControlsUpdateCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketAccessControlsUpdateCall) ( string) *BucketAccessControlsUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketAccessControlsUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketAccessControlsUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucketaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.bucketAccessControls.update" call. Exactly one of *BucketAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BucketAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketAccessControlsUpdateCall) ( ...googleapi.CallOption) (*BucketAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &BucketAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates an ACL entry on the specified bucket.", "httpMethod": "PUT", "id": "storage.bucketAccessControls.update", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/acl/{entity}", "request": { "$ref": "BucketAccessControl" }, "response": { "$ref": "BucketAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
method id "storage.buckets.delete":
Delete: Permanently deletes an empty bucket.
func ( *BucketsService) ( string) *BucketsDeleteCall {
	 := &BucketsDeleteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": If set, only deletes the bucket if its metageneration matches this value.
func ( *BucketsDeleteCall) ( int64) *BucketsDeleteCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": If set, only deletes the bucket if its metageneration does not match this value.
func ( *BucketsDeleteCall) ( int64) *BucketsDeleteCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsDeleteCall) ( string) *BucketsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsDeleteCall) ( string) *BucketsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsDeleteCall) ( context.Context) *BucketsDeleteCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.delete" call.
func ( *BucketsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Permanently deletes an empty bucket.", "httpMethod": "DELETE", "id": "storage.buckets.delete", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "If set, only deletes the bucket if its metageneration matches this value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "If set, only deletes the bucket if its metageneration does not match this value.", "format": "int64", "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Get: Returns metadata for the specified bucket.
func ( *BucketsService) ( string) *BucketsGetCall {
	 := &BucketsGetCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func ( *BucketsGetCall) ( int64) *BucketsGetCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func ( *BucketsGetCall) ( int64) *BucketsGetCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl. Possible values: "full" - Include all properties. "noAcl" - Omit owner, acl and defaultObjectAcl properties.
func ( *BucketsGetCall) ( string) *BucketsGetCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsGetCall) ( string) *BucketsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsGetCall) ( string) *BucketsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *BucketsGetCall) ( string) *BucketsGetCall {
	.ifNoneMatch_ = 
	return 
}
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsGetCall) ( context.Context) *BucketsGetCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.get" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsGetCall) ( ...googleapi.CallOption) (*Bucket, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Bucket{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns metadata for the specified bucket.", "httpMethod": "GET", "id": "storage.buckets.get", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit owner, acl and defaultObjectAcl properties." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}", "response": { "$ref": "Bucket" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
GetIamPolicy: Returns an IAM policy for the specified bucket.
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.
func ( *BucketsGetIamPolicyCall) ( int64) *BucketsGetIamPolicyCall {
	.urlParams_.Set("optionsRequestedPolicyVersion", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsGetIamPolicyCall) ( string) *BucketsGetIamPolicyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsGetIamPolicyCall) ( string) *BucketsGetIamPolicyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *BucketsGetIamPolicyCall) ( string) *BucketsGetIamPolicyCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsGetIamPolicyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsGetIamPolicyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/iam")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsGetIamPolicyCall) ( ...googleapi.CallOption) (*Policy, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Policy{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns an IAM policy for the specified bucket.", "httpMethod": "GET", "id": "storage.buckets.getIamPolicy", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "optionsRequestedPolicyVersion": { "description": "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.", "format": "int32", "location": "query", "minimum": "1", "type": "integer" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/iam", "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
method id "storage.buckets.insert":
Insert: Creates a new bucket.
func ( *BucketsService) ( string,  *Bucket) *BucketsInsertCall {
	 := &BucketsInsertCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.urlParams_.Set("project", )
	.bucket = 
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket. Possible values: "authenticatedRead" - Project team owners get OWNER access, and allAuthenticatedUsers get READER access. "private" - Project team owners get OWNER access. "projectPrivate" - Project team members get access according to their roles. "publicRead" - Project team owners get OWNER access, and allUsers get READER access. "publicReadWrite" - Project team owners get OWNER access, and allUsers get WRITER access.
func ( *BucketsInsertCall) ( string) *BucketsInsertCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *BucketsInsertCall) ( string) *BucketsInsertCall {
	.urlParams_.Set("predefinedDefaultObjectAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit owner, acl and defaultObjectAcl properties.
func ( *BucketsInsertCall) ( string) *BucketsInsertCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsInsertCall) ( string) *BucketsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *BucketsInsertCall) ( string) *BucketsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsInsertCall) ( context.Context) *BucketsInsertCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucket)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.insert" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsInsertCall) ( ...googleapi.CallOption) (*Bucket, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Bucket{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a new bucket.", "httpMethod": "POST", "id": "storage.buckets.insert", "parameterOrder": [ "project" ], "parameters": { "predefinedAcl": { "description": "Apply a predefined set of access controls to this bucket.", "enum": [ "authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite" ], "enumDescriptions": [ "Project team owners get OWNER access, and allAuthenticatedUsers get READER access.", "Project team owners get OWNER access.", "Project team members get access according to their roles.", "Project team owners get OWNER access, and allUsers get READER access.", "Project team owners get OWNER access, and allUsers get WRITER access." ], "location": "query", "type": "string" }, "predefinedDefaultObjectAcl": { "description": "Apply a predefined set of default object access controls to this bucket.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "project": { "description": "A valid API project identifier.", "location": "query", "required": true, "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit owner, acl and defaultObjectAcl properties." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "b", "request": { "$ref": "Bucket" }, "response": { "$ref": "Bucket" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
List: Retrieves a list of buckets for a given project.
func ( *BucketsService) ( string) *BucketsListCall {
	 := &BucketsListCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.urlParams_.Set("project", )
	return 
}
MaxResults sets the optional parameter "maxResults": Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.
func ( *BucketsListCall) ( int64) *BucketsListCall {
	.urlParams_.Set("maxResults", fmt.Sprint())
	return 
}
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.urlParams_.Set("pageToken", )
	return 
}
Prefix sets the optional parameter "prefix": Filter results to buckets whose names begin with this prefix.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.urlParams_.Set("prefix", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl. Possible values: "full" - Include all properties. "noAcl" - Omit owner, acl and defaultObjectAcl properties.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *BucketsListCall) ( string) *BucketsListCall {
	.ifNoneMatch_ = 
	return 
}
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsListCall) ( context.Context) *BucketsListCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.list" call. Exactly one of *Buckets or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Buckets.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsListCall) ( ...googleapi.CallOption) (*Buckets, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Buckets{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves a list of buckets for a given project.", "httpMethod": "GET", "id": "storage.buckets.list", "parameterOrder": [ "project" ], "parameters": { "maxResults": { "default": "1000", "description": "Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.", "format": "uint32", "location": "query", "minimum": "0", "type": "integer" }, "pageToken": { "description": "A previously-returned page token representing part of the larger set of results to view.", "location": "query", "type": "string" }, "prefix": { "description": "Filter results to buckets whose names begin with this prefix.", "location": "query", "type": "string" }, "project": { "description": "A valid API project identifier.", "location": "query", "required": true, "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit owner, acl and defaultObjectAcl properties." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "b", "response": { "$ref": "Buckets" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func ( *BucketsListCall) ( context.Context,  func(*Buckets) error) error {
	.ctx_ = 
	defer .PageToken(.urlParams_.Get("pageToken")) // reset paging to original point
	for {
		,  := .Do()
		if  != nil {
			return 
		}
		if  := ();  != nil {
			return 
		}
		if .NextPageToken == "" {
			return nil
		}
		.PageToken(.NextPageToken)
	}
}
method id "storage.buckets.lockRetentionPolicy":
LockRetentionPolicy: Locks retention policy on a bucket.
func ( *BucketsService) ( string,  int64) *BucketsLockRetentionPolicyCall {
	 := &BucketsLockRetentionPolicyCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsLockRetentionPolicyCall) ( string) *BucketsLockRetentionPolicyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsLockRetentionPolicyCall) ( string) *BucketsLockRetentionPolicyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsLockRetentionPolicyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsLockRetentionPolicyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/lockRetentionPolicy")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
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.
func ( *BucketsLockRetentionPolicyCall) ( ...googleapi.CallOption) (*Bucket, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Bucket{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Locks retention policy on a bucket.", "httpMethod": "POST", "id": "storage.buckets.lockRetentionPolicy", "parameterOrder": [ "bucket", "ifMetagenerationMatch" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether bucket's current metageneration matches the given value.", "format": "int64", "location": "query", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/lockRetentionPolicy", "response": { "$ref": "Bucket" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Patch: Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
func ( *BucketsService) ( string,  *Bucket) *BucketsPatchCall {
	 := &BucketsPatchCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.bucket2 = 
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func ( *BucketsPatchCall) ( int64) *BucketsPatchCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func ( *BucketsPatchCall) ( int64) *BucketsPatchCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket. Possible values: "authenticatedRead" - Project team owners get OWNER access, and allAuthenticatedUsers get READER access. "private" - Project team owners get OWNER access. "projectPrivate" - Project team members get access according to their roles. "publicRead" - Project team owners get OWNER access, and allUsers get READER access. "publicReadWrite" - Project team owners get OWNER access, and allUsers get WRITER access.
func ( *BucketsPatchCall) ( string) *BucketsPatchCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *BucketsPatchCall) ( string) *BucketsPatchCall {
	.urlParams_.Set("predefinedDefaultObjectAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit owner, acl and defaultObjectAcl properties.
func ( *BucketsPatchCall) ( string) *BucketsPatchCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsPatchCall) ( string) *BucketsPatchCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsPatchCall) ( string) *BucketsPatchCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsPatchCall) ( context.Context) *BucketsPatchCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsPatchCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsPatchCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucket2)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PATCH", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.patch" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsPatchCall) ( ...googleapi.CallOption) (*Bucket, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Bucket{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Patches a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.", "httpMethod": "PATCH", "id": "storage.buckets.patch", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "predefinedAcl": { "description": "Apply a predefined set of access controls to this bucket.", "enum": [ "authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite" ], "enumDescriptions": [ "Project team owners get OWNER access, and allAuthenticatedUsers get READER access.", "Project team owners get OWNER access.", "Project team members get access according to their roles.", "Project team owners get OWNER access, and allUsers get READER access.", "Project team owners get OWNER access, and allUsers get WRITER access." ], "location": "query", "type": "string" }, "predefinedDefaultObjectAcl": { "description": "Apply a predefined set of default object access controls to this bucket.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit owner, acl and defaultObjectAcl properties." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}", "request": { "$ref": "Bucket" }, "response": { "$ref": "Bucket" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
SetIamPolicy: Updates an IAM policy for the specified bucket.
func ( *BucketsService) ( string,  *Policy) *BucketsSetIamPolicyCall {
	 := &BucketsSetIamPolicyCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.policy = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsSetIamPolicyCall) ( string) *BucketsSetIamPolicyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsSetIamPolicyCall) ( string) *BucketsSetIamPolicyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsSetIamPolicyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsSetIamPolicyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.policy)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/iam")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsSetIamPolicyCall) ( ...googleapi.CallOption) (*Policy, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Policy{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates an IAM policy for the specified bucket.", "httpMethod": "PUT", "id": "storage.buckets.setIamPolicy", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/iam", "request": { "$ref": "Policy" }, "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
TestIamPermissions: Tests a set of permissions on the given bucket to see which, if any, are held by the caller.
func ( *BucketsService) ( string,  []string) *BucketsTestIamPermissionsCall {
	 := &BucketsTestIamPermissionsCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.urlParams_.SetMulti("permissions", append([]string{}, ...))
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsTestIamPermissionsCall) ( string) *BucketsTestIamPermissionsCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsTestIamPermissionsCall) ( string) *BucketsTestIamPermissionsCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsTestIamPermissionsCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsTestIamPermissionsCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/iam/testPermissions")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsTestIamPermissionsCall) ( ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &TestIamPermissionsResponse{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Tests a set of permissions on the given bucket to see which, if any, are held by the caller.", "httpMethod": "GET", "id": "storage.buckets.testIamPermissions", "parameterOrder": [ "bucket", "permissions" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "permissions": { "description": "Permissions to test.", "location": "query", "repeated": true, "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/iam/testPermissions", "response": { "$ref": "TestIamPermissionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Update: Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.
func ( *BucketsService) ( string,  *Bucket) *BucketsUpdateCall {
	 := &BucketsUpdateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.bucket2 = 
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
func ( *BucketsUpdateCall) ( int64) *BucketsUpdateCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
func ( *BucketsUpdateCall) ( int64) *BucketsUpdateCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this bucket. Possible values: "authenticatedRead" - Project team owners get OWNER access, and allAuthenticatedUsers get READER access. "private" - Project team owners get OWNER access. "projectPrivate" - Project team members get access according to their roles. "publicRead" - Project team owners get OWNER access, and allUsers get READER access. "publicReadWrite" - Project team owners get OWNER access, and allUsers get WRITER access.
func ( *BucketsUpdateCall) ( string) *BucketsUpdateCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
PredefinedDefaultObjectAcl sets the optional parameter "predefinedDefaultObjectAcl": Apply a predefined set of default object access controls to this bucket. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *BucketsUpdateCall) ( string) *BucketsUpdateCall {
	.urlParams_.Set("predefinedDefaultObjectAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit owner, acl and defaultObjectAcl properties.
func ( *BucketsUpdateCall) ( string) *BucketsUpdateCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *BucketsUpdateCall) ( string) *BucketsUpdateCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *BucketsUpdateCall) ( string) *BucketsUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *BucketsUpdateCall) ( context.Context) *BucketsUpdateCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *BucketsUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *BucketsUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.bucket2)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.buckets.update" call. Exactly one of *Bucket or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Bucket.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *BucketsUpdateCall) ( ...googleapi.CallOption) (*Bucket, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Bucket{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates a bucket. Changes to the bucket will be readable immediately after writing, but configuration changes may take time to propagate.", "httpMethod": "PUT", "id": "storage.buckets.update", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "predefinedAcl": { "description": "Apply a predefined set of access controls to this bucket.", "enum": [ "authenticatedRead", "private", "projectPrivate", "publicRead", "publicReadWrite" ], "enumDescriptions": [ "Project team owners get OWNER access, and allAuthenticatedUsers get READER access.", "Project team owners get OWNER access.", "Project team members get access according to their roles.", "Project team owners get OWNER access, and allUsers get READER access.", "Project team owners get OWNER access, and allUsers get WRITER access." ], "location": "query", "type": "string" }, "predefinedDefaultObjectAcl": { "description": "Apply a predefined set of default object access controls to this bucket.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit owner, acl and defaultObjectAcl properties." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}", "request": { "$ref": "Bucket" }, "response": { "$ref": "Bucket" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
method id "storage.channels.stop":
Stop: Stop watching resources through this channel
func ( *ChannelsService) ( *Channel) *ChannelsStopCall {
	 := &ChannelsStopCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.channel = 
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ChannelsStopCall) ( context.Context) *ChannelsStopCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ChannelsStopCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ChannelsStopCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.channel)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "channels/stop")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.channels.stop" call.
func ( *ChannelsStopCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Stop watching resources through this channel", "httpMethod": "POST", "id": "storage.channels.stop", "path": "channels/stop", "request": { "$ref": "Channel", "parameterName": "resource" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
method id "storage.defaultObjectAccessControls.delete":
Delete: Permanently deletes the default object ACL entry for the specified entity on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsDeleteCall) ( string) *DefaultObjectAccessControlsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsDeleteCall) ( string) *DefaultObjectAccessControlsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.delete" call.
func ( *DefaultObjectAccessControlsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Permanently deletes the default object ACL entry for the specified entity on the specified bucket.", "httpMethod": "DELETE", "id": "storage.defaultObjectAccessControls.delete", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl/{entity}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Get: Returns the default object ACL entry for the specified entity on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsGetCall) ( string) *DefaultObjectAccessControlsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsGetCall) ( string) *DefaultObjectAccessControlsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.get" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *DefaultObjectAccessControlsGetCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns the default object ACL entry for the specified entity on the specified bucket.", "httpMethod": "GET", "id": "storage.defaultObjectAccessControls.get", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl/{entity}", "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Insert: Creates a new default object ACL entry on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsInsertCall) ( string) *DefaultObjectAccessControlsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsInsertCall) ( string) *DefaultObjectAccessControlsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.insert" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *DefaultObjectAccessControlsInsertCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a new default object ACL entry on the specified bucket.", "httpMethod": "POST", "id": "storage.defaultObjectAccessControls.insert", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
List: Retrieves default object ACL entries on the specified bucket.
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": If present, only return default ACL listing if the bucket's current metageneration matches this value.
func ( *DefaultObjectAccessControlsListCall) ( int64) *DefaultObjectAccessControlsListCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": If present, only return default ACL listing if the bucket's current metageneration does not match the given value.
func ( *DefaultObjectAccessControlsListCall) ( int64) *DefaultObjectAccessControlsListCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsListCall) ( string) *DefaultObjectAccessControlsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsListCall) ( string) *DefaultObjectAccessControlsListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.list" call. Exactly one of *ObjectAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *DefaultObjectAccessControlsListCall) ( ...googleapi.CallOption) (*ObjectAccessControls, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControls{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves default object ACL entries on the specified bucket.", "httpMethod": "GET", "id": "storage.defaultObjectAccessControls.list", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "ifMetagenerationMatch": { "description": "If present, only return default ACL listing if the bucket's current metageneration matches this value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "If present, only return default ACL listing if the bucket's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl", "response": { "$ref": "ObjectAccessControls" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Patch: Patches a default object ACL entry on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsPatchCall) ( string) *DefaultObjectAccessControlsPatchCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsPatchCall) ( string) *DefaultObjectAccessControlsPatchCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsPatchCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsPatchCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PATCH", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.patch" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *DefaultObjectAccessControlsPatchCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Patches a default object ACL entry on the specified bucket.", "httpMethod": "PATCH", "id": "storage.defaultObjectAccessControls.patch", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl/{entity}", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Update: Updates a default object ACL entry on the specified bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *DefaultObjectAccessControlsUpdateCall) ( string) *DefaultObjectAccessControlsUpdateCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *DefaultObjectAccessControlsUpdateCall) ( string) *DefaultObjectAccessControlsUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *DefaultObjectAccessControlsUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *DefaultObjectAccessControlsUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/defaultObjectAcl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.defaultObjectAccessControls.update" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *DefaultObjectAccessControlsUpdateCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates a default object ACL entry on the specified bucket.", "httpMethod": "PUT", "id": "storage.defaultObjectAccessControls.update", "parameterOrder": [ "bucket", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/defaultObjectAcl/{entity}", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Delete: Permanently deletes a notification subscription.
func ( *NotificationsService) ( string,  string) *NotificationsDeleteCall {
	 := &NotificationsDeleteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.notification = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *NotificationsDeleteCall) ( string) *NotificationsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *NotificationsDeleteCall) ( string) *NotificationsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *NotificationsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *NotificationsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/notificationConfigs/{notification}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket":       .bucket,
		"notification": .notification,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.notifications.delete" call.
func ( *NotificationsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Permanently deletes a notification subscription.", "httpMethod": "DELETE", "id": "storage.notifications.delete", "parameterOrder": [ "bucket", "notification" ], "parameters": { "bucket": { "description": "The parent bucket of the notification.", "location": "path", "required": true, "type": "string" }, "notification": { "description": "ID of the notification to delete.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/notificationConfigs/{notification}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Get: View a notification configuration.
func ( *NotificationsService) ( string,  string) *NotificationsGetCall {
	 := &NotificationsGetCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.notification = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *NotificationsGetCall) ( string) *NotificationsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *NotificationsGetCall) ( string) *NotificationsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *NotificationsGetCall) ( string) *NotificationsGetCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *NotificationsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *NotificationsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/notificationConfigs/{notification}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket":       .bucket,
		"notification": .notification,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.notifications.get" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *NotificationsGetCall) ( ...googleapi.CallOption) (*Notification, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Notification{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "View a notification configuration.", "httpMethod": "GET", "id": "storage.notifications.get", "parameterOrder": [ "bucket", "notification" ], "parameters": { "bucket": { "description": "The parent bucket of the notification.", "location": "path", "required": true, "type": "string" }, "notification": { "description": "Notification ID", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/notificationConfigs/{notification}", "response": { "$ref": "Notification" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Insert: Creates a notification subscription for a given bucket.
func ( *NotificationsService) ( string,  *Notification) *NotificationsInsertCall {
	 := &NotificationsInsertCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.notification = 
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *NotificationsInsertCall) ( string) *NotificationsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *NotificationsInsertCall) ( string) *NotificationsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *NotificationsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *NotificationsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.notification)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/notificationConfigs")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.notifications.insert" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *NotificationsInsertCall) ( ...googleapi.CallOption) (*Notification, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Notification{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a notification subscription for a given bucket.", "httpMethod": "POST", "id": "storage.notifications.insert", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "The parent bucket of the notification.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/notificationConfigs", "request": { "$ref": "Notification" }, "response": { "$ref": "Notification" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
List: Retrieves a list of notification subscriptions for a given bucket.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *NotificationsListCall) ( string) *NotificationsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *NotificationsListCall) ( string) *NotificationsListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *NotificationsListCall) ( string) *NotificationsListCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *NotificationsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *NotificationsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/notificationConfigs")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.notifications.list" call. Exactly one of *Notifications or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notifications.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *NotificationsListCall) ( ...googleapi.CallOption) (*Notifications, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Notifications{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves a list of notification subscriptions for a given bucket.", "httpMethod": "GET", "id": "storage.notifications.list", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of a Google Cloud Storage bucket.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/notificationConfigs", "response": { "$ref": "Notifications" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Delete: Permanently deletes the ACL entry for the specified entity on the specified object.
func ( *ObjectAccessControlsService) ( string,  string,  string) *ObjectAccessControlsDeleteCall {
	 := &ObjectAccessControlsDeleteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.entity = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsDeleteCall) ( int64) *ObjectAccessControlsDeleteCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsDeleteCall) ( string) *ObjectAccessControlsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsDeleteCall) ( string) *ObjectAccessControlsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.delete" call.
func ( *ObjectAccessControlsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Permanently deletes the ACL entry for the specified entity on the specified object.", "httpMethod": "DELETE", "id": "storage.objectAccessControls.delete", "parameterOrder": [ "bucket", "object", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl/{entity}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Get: Returns the ACL entry for the specified entity on the specified object.
func ( *ObjectAccessControlsService) ( string,  string,  string) *ObjectAccessControlsGetCall {
	 := &ObjectAccessControlsGetCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.entity = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsGetCall) ( int64) *ObjectAccessControlsGetCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsGetCall) ( string) *ObjectAccessControlsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsGetCall) ( string) *ObjectAccessControlsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.get" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectAccessControlsGetCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns the ACL entry for the specified entity on the specified object.", "httpMethod": "GET", "id": "storage.objectAccessControls.get", "parameterOrder": [ "bucket", "object", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl/{entity}", "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Insert: Creates a new ACL entry on the specified object.
func ( *ObjectAccessControlsService) ( string,  string,  *ObjectAccessControl) *ObjectAccessControlsInsertCall {
	 := &ObjectAccessControlsInsertCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.objectaccesscontrol = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsInsertCall) ( int64) *ObjectAccessControlsInsertCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsInsertCall) ( string) *ObjectAccessControlsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsInsertCall) ( string) *ObjectAccessControlsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.insert" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectAccessControlsInsertCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a new ACL entry on the specified object.", "httpMethod": "POST", "id": "storage.objectAccessControls.insert", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
List: Retrieves ACL entries on the specified object.
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsListCall) ( int64) *ObjectAccessControlsListCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsListCall) ( string) *ObjectAccessControlsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsListCall) ( string) *ObjectAccessControlsListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.list" call. Exactly one of *ObjectAccessControls or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControls.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectAccessControlsListCall) ( ...googleapi.CallOption) (*ObjectAccessControls, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControls{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves ACL entries on the specified object.", "httpMethod": "GET", "id": "storage.objectAccessControls.list", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl", "response": { "$ref": "ObjectAccessControls" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Patch: Patches an ACL entry on the specified object.
func ( *ObjectAccessControlsService) ( string,  string,  string,  *ObjectAccessControl) *ObjectAccessControlsPatchCall {
	 := &ObjectAccessControlsPatchCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.entity = 
	.objectaccesscontrol = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsPatchCall) ( int64) *ObjectAccessControlsPatchCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsPatchCall) ( string) *ObjectAccessControlsPatchCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsPatchCall) ( string) *ObjectAccessControlsPatchCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsPatchCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsPatchCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PATCH", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.patch" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectAccessControlsPatchCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Patches an ACL entry on the specified object.", "httpMethod": "PATCH", "id": "storage.objectAccessControls.patch", "parameterOrder": [ "bucket", "object", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl/{entity}", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Update: Updates an ACL entry on the specified object.
func ( *ObjectAccessControlsService) ( string,  string,  string,  *ObjectAccessControl) *ObjectAccessControlsUpdateCall {
	 := &ObjectAccessControlsUpdateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.entity = 
	.objectaccesscontrol = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectAccessControlsUpdateCall) ( int64) *ObjectAccessControlsUpdateCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectAccessControlsUpdateCall) ( string) *ObjectAccessControlsUpdateCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectAccessControlsUpdateCall) ( string) *ObjectAccessControlsUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectAccessControlsUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectAccessControlsUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.objectaccesscontrol)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/acl/{entity}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
		"entity": .entity,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objectAccessControls.update" call. Exactly one of *ObjectAccessControl or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ObjectAccessControl.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectAccessControlsUpdateCall) ( ...googleapi.CallOption) (*ObjectAccessControl, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ObjectAccessControl{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates an ACL entry on the specified object.", "httpMethod": "PUT", "id": "storage.objectAccessControls.update", "parameterOrder": [ "bucket", "object", "entity" ], "parameters": { "bucket": { "description": "Name of a bucket.", "location": "path", "required": true, "type": "string" }, "entity": { "description": "The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-emailAddress, allUsers, or allAuthenticatedUsers.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/acl/{entity}", "request": { "$ref": "ObjectAccessControl" }, "response": { "$ref": "ObjectAccessControl" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Compose: Concatenates a list of existing objects into a new object in the same bucket.
func ( *ObjectsService) ( string,  string,  *ComposeRequest) *ObjectsComposeCall {
	 := &ObjectsComposeCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.destinationBucket = 
	.destinationObject = 
	.composerequest = 
	return 
}
DestinationPredefinedAcl sets the optional parameter "destinationPredefinedAcl": Apply a predefined set of access controls to the destination object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsComposeCall) ( string) *ObjectsComposeCall {
	.urlParams_.Set("destinationPredefinedAcl", )
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsComposeCall) ( int64) *ObjectsComposeCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsComposeCall) ( int64) *ObjectsComposeCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
KmsKeyName sets the optional parameter "kmsKeyName": Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.
func ( *ObjectsComposeCall) ( string) *ObjectsComposeCall {
	.urlParams_.Set("kmsKeyName", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsComposeCall) ( string) *ObjectsComposeCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsComposeCall) ( string) *ObjectsComposeCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsComposeCall) ( context.Context) *ObjectsComposeCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsComposeCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsComposeCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.composerequest)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{destinationBucket}/o/{destinationObject}/compose")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"destinationBucket": .destinationBucket,
		"destinationObject": .destinationObject,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.compose" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsComposeCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Concatenates a list of existing objects into a new object in the same bucket.", "httpMethod": "POST", "id": "storage.objects.compose", "parameterOrder": [ "destinationBucket", "destinationObject" ], "parameters": { "destinationBucket": { "description": "Name of the bucket containing the source objects. The destination object is stored in this bucket.", "location": "path", "required": true, "type": "string" }, "destinationObject": { "description": "Name of the new object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "destinationPredefinedAcl": { "description": "Apply a predefined set of access controls to the destination object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "kmsKeyName": { "description": "Not currently supported. Specifying the parameter causes the request to fail with status code 400 - Bad Request.", "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{destinationBucket}/o/{destinationObject}/compose", "request": { "$ref": "ComposeRequest" }, "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Copy: Copies a source object to a destination object. Optionally overrides metadata.
func ( *ObjectsService) ( string,  string,  string,  string,  *Object) *ObjectsCopyCall {
	 := &ObjectsCopyCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.sourceBucket = 
	.sourceObject = 
	.destinationBucket = 
	.destinationObject = 
	.object = 
	return 
}
DestinationKmsKeyName sets the optional parameter "destinationKmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
func ( *ObjectsCopyCall) ( string) *ObjectsCopyCall {
	.urlParams_.Set("destinationKmsKeyName", )
	return 
}
DestinationPredefinedAcl sets the optional parameter "destinationPredefinedAcl": Apply a predefined set of access controls to the destination object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsCopyCall) ( string) *ObjectsCopyCall {
	.urlParams_.Set("destinationPredefinedAcl", )
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the destination object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the destination object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the destination object's current metageneration matches the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
IfSourceGenerationMatch sets the optional parameter "ifSourceGenerationMatch": Makes the operation conditional on whether the source object's current generation matches the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifSourceGenerationMatch", fmt.Sprint())
	return 
}
IfSourceGenerationNotMatch sets the optional parameter "ifSourceGenerationNotMatch": Makes the operation conditional on whether the source object's current generation does not match the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifSourceGenerationNotMatch", fmt.Sprint())
	return 
}
IfSourceMetagenerationMatch sets the optional parameter "ifSourceMetagenerationMatch": Makes the operation conditional on whether the source object's current metageneration matches the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifSourceMetagenerationMatch", fmt.Sprint())
	return 
}
IfSourceMetagenerationNotMatch sets the optional parameter "ifSourceMetagenerationNotMatch": Makes the operation conditional on whether the source object's current metageneration does not match the given value.
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("ifSourceMetagenerationNotMatch", fmt.Sprint())
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsCopyCall) ( string) *ObjectsCopyCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsCopyCall) ( string) *ObjectsCopyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
SourceGeneration sets the optional parameter "sourceGeneration": If present, selects a specific revision of the source object (as opposed to the latest version, the default).
func ( *ObjectsCopyCall) ( int64) *ObjectsCopyCall {
	.urlParams_.Set("sourceGeneration", fmt.Sprint())
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsCopyCall) ( string) *ObjectsCopyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsCopyCall) ( context.Context) *ObjectsCopyCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsCopyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsCopyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.object)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"sourceBucket":      .sourceBucket,
		"sourceObject":      .sourceObject,
		"destinationBucket": .destinationBucket,
		"destinationObject": .destinationObject,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.copy" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsCopyCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Copies a source object to a destination object. Optionally overrides metadata.", "httpMethod": "POST", "id": "storage.objects.copy", "parameterOrder": [ "sourceBucket", "sourceObject", "destinationBucket", "destinationObject" ], "parameters": { "destinationBucket": { "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "destinationKmsKeyName": { "description": "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.", "location": "query", "type": "string" }, "destinationObject": { "description": "Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.", "location": "path", "required": true, "type": "string" }, "destinationPredefinedAcl": { "description": "Apply a predefined set of access controls to the destination object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the destination object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the destination object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceGenerationMatch": { "description": "Makes the operation conditional on whether the source object's current generation matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceGenerationNotMatch": { "description": "Makes the operation conditional on whether the source object's current generation does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceMetagenerationMatch": { "description": "Makes the operation conditional on whether the source object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the source object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "sourceBucket": { "description": "Name of the bucket in which to find the source object.", "location": "path", "required": true, "type": "string" }, "sourceGeneration": { "description": "If present, selects a specific revision of the source object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "sourceObject": { "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}", "request": { "$ref": "Object" }, "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Delete: Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
func ( *ObjectsService) ( string,  string) *ObjectsDeleteCall {
	 := &ObjectsDeleteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	return 
}
Generation sets the optional parameter "generation": If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsDeleteCall) ( int64) *ObjectsDeleteCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsDeleteCall) ( int64) *ObjectsDeleteCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsDeleteCall) ( int64) *ObjectsDeleteCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsDeleteCall) ( int64) *ObjectsDeleteCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func ( *ObjectsDeleteCall) ( int64) *ObjectsDeleteCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsDeleteCall) ( string) *ObjectsDeleteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsDeleteCall) ( string) *ObjectsDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsDeleteCall) ( context.Context) *ObjectsDeleteCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.delete" call.
func ( *ObjectsDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Deletes an object and its metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.", "httpMethod": "DELETE", "id": "storage.objects.delete", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Get: Retrieves an object or its metadata.
func ( *ObjectsService) ( string,  string) *ObjectsGetCall {
	 := &ObjectsGetCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsGetCall) ( int64) *ObjectsGetCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsGetCall) ( int64) *ObjectsGetCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsGetCall) ( int64) *ObjectsGetCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsGetCall) ( int64) *ObjectsGetCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func ( *ObjectsGetCall) ( int64) *ObjectsGetCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsGetCall) ( string) *ObjectsGetCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsGetCall) ( string) *ObjectsGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsGetCall) ( string) *ObjectsGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *ObjectsGetCall) ( string) *ObjectsGetCall {
	.ifNoneMatch_ = 
	return 
}
Context sets the context to be used in this call's Do and Download methods. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsGetCall) ( context.Context) *ObjectsGetCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Download fetches the API endpoint's "media" value, instead of the normal API response value. If the returned error is nil, the Response is guaranteed to have a 2xx status code. Callers must close the Response.Body as usual.
func ( *ObjectsGetCall) ( ...googleapi.CallOption) (*http.Response, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("media")
	if  != nil {
		return nil, 
	}
	if  := googleapi.CheckMediaResponse();  != nil {
		.Body.Close()
		return nil, 
	}
	return , nil
}
Do executes the "storage.objects.get" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsGetCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves an object or its metadata.", "httpMethod": "GET", "id": "storage.objects.get", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}", "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ], "supportsMediaDownload": true, "useMediaDownloadService": true }

}
GetIamPolicy: Returns an IAM policy for the specified object.
func ( *ObjectsService) ( string,  string) *ObjectsGetIamPolicyCall {
	 := &ObjectsGetIamPolicyCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsGetIamPolicyCall) ( int64) *ObjectsGetIamPolicyCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsGetIamPolicyCall) ( string) *ObjectsGetIamPolicyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsGetIamPolicyCall) ( string) *ObjectsGetIamPolicyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *ObjectsGetIamPolicyCall) ( string) *ObjectsGetIamPolicyCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsGetIamPolicyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsGetIamPolicyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/iam")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.getIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsGetIamPolicyCall) ( ...googleapi.CallOption) (*Policy, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Policy{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Returns an IAM policy for the specified object.", "httpMethod": "GET", "id": "storage.objects.getIamPolicy", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/iam", "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Insert: Stores a new object and metadata.
func ( *ObjectsService) ( string,  *Object) *ObjectsInsertCall {
	 := &ObjectsInsertCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	return 
}
ContentEncoding sets the optional parameter "contentEncoding": If set, sets the contentEncoding property of the final object to this value. Setting this parameter is equivalent to setting the contentEncoding metadata property. This can be useful when uploading an object with uploadType=media to indicate the encoding of the content being uploaded.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("contentEncoding", )
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsInsertCall) ( int64) *ObjectsInsertCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsInsertCall) ( int64) *ObjectsInsertCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsInsertCall) ( int64) *ObjectsInsertCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func ( *ObjectsInsertCall) ( int64) *ObjectsInsertCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
KmsKeyName sets the optional parameter "kmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("kmsKeyName", )
	return 
}
Name sets the optional parameter "name": Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("name", )
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsInsertCall) ( string) *ObjectsInsertCall {
	.urlParams_.Set("userProject", )
	return 
}
Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.
func ( *ObjectsInsertCall) ( io.Reader,  ...googleapi.MediaOption) *ObjectsInsertCall {
	if  := .object.ContentType;  != "" {
		 = append([]googleapi.MediaOption{googleapi.ContentType()}, ...)
	}
	.mediaInfo_ = gensupport.NewInfoFromMedia(, )
	return 
}
ResumableMedia specifies the media to upload in chunks and can be canceled with ctx. Deprecated: use Media instead. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.
func ( *ObjectsInsertCall) ( context.Context,  io.ReaderAt,  int64,  string) *ObjectsInsertCall {
	.ctx_ = 
	.mediaInfo_ = gensupport.NewInfoFromResumableMedia(, , )
	return 
}
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).
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.
func ( *ObjectsInsertCall) ( context.Context) *ObjectsInsertCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsInsertCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsInsertCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.object)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o")
	if .mediaInfo_ != nil {
		 = googleapi.ResolveRelative(.s.BasePath, "/upload/storage/v1/b/{bucket}/o")
		.urlParams_.Set("uploadType", .mediaInfo_.UploadType())
	}
	if  == nil {
		 = new(bytes.Buffer)
		.Set("Content-Type", "application/json")
	}
	, ,  := .mediaInfo_.UploadRequest(, )
	defer ()
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	.GetBody = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequestWithRetry(.ctx_, .s.client, )
}
Do executes the "storage.objects.insert" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsInsertCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := .mediaInfo_.ResumableUpload(.Header.Get("Location"))
	if  != nil {
		.Client = .s.client
		.UserAgent = .s.userAgent()
		 := .ctx_
		if  == nil {
			 = context.TODO()
		}
		,  = .Upload()
		if  != nil {
			return nil, 
		}
		defer .Body.Close()
		if  := googleapi.CheckResponse();  != nil {
			return nil, 
		}
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Stores a new object and metadata.", "httpMethod": "POST", "id": "storage.objects.insert", "mediaUpload": { "accept": [ "*" ], "protocols": { "resumable": { "multipart": true, "path": "/resumable/upload/storage/v1/b/{bucket}/o" }, "simple": { "multipart": true, "path": "/upload/storage/v1/b/{bucket}/o" } } }, "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.", "location": "path", "required": true, "type": "string" }, "contentEncoding": { "description": "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.", "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "kmsKeyName": { "description": "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.", "location": "query", "type": "string" }, "name": { "description": "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.", "location": "query", "type": "string" }, "predefinedAcl": { "description": "Apply a predefined set of access controls to this object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o", "request": { "$ref": "Object" }, "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ], "supportsMediaUpload": true }

}
List: Retrieves a list of objects matching the criteria.
func ( *ObjectsService) ( string) *ObjectsListCall {
	 := &ObjectsListCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	return 
}
Delimiter sets the optional parameter "delimiter": Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("delimiter", )
	return 
}
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).
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("endOffset", )
	return 
}
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.
func ( *ObjectsListCall) ( bool) *ObjectsListCall {
	.urlParams_.Set("includeTrailingDelimiter", fmt.Sprint())
	return 
}
MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
func ( *ObjectsListCall) ( int64) *ObjectsListCall {
	.urlParams_.Set("maxResults", fmt.Sprint())
	return 
}
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("pageToken", )
	return 
}
Prefix sets the optional parameter "prefix": Filter results to objects whose names begin with this prefix.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("prefix", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
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).
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("startOffset", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.urlParams_.Set("userProject", )
	return 
}
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.
func ( *ObjectsListCall) ( bool) *ObjectsListCall {
	.urlParams_.Set("versions", fmt.Sprint())
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *ObjectsListCall) ( string) *ObjectsListCall {
	.ifNoneMatch_ = 
	return 
}
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsListCall) ( context.Context) *ObjectsListCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.list" call. Exactly one of *Objects or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Objects.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsListCall) ( ...googleapi.CallOption) (*Objects, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Objects{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves a list of objects matching the criteria.", "httpMethod": "GET", "id": "storage.objects.list", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of the bucket in which to look for objects.", "location": "path", "required": true, "type": "string" }, "delimiter": { "description": "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.", "location": "query", "type": "string" }, "endOffset": { "description": "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).", "location": "query", "type": "string" }, "includeTrailingDelimiter": { "description": "If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.", "location": "query", "type": "boolean" }, "maxResults": { "default": "1000", "description": "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.", "format": "uint32", "location": "query", "minimum": "0", "type": "integer" }, "pageToken": { "description": "A previously-returned page token representing part of the larger set of results to view.", "location": "query", "type": "string" }, "prefix": { "description": "Filter results to objects whose names begin with this prefix.", "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "startOffset": { "description": "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).", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" }, "versions": { "description": "If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning.", "location": "query", "type": "boolean" } }, "path": "b/{bucket}/o", "response": { "$ref": "Objects" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ], "supportsSubscription": true }

}
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func ( *ObjectsListCall) ( context.Context,  func(*Objects) error) error {
	.ctx_ = 
	defer .PageToken(.urlParams_.Get("pageToken")) // reset paging to original point
	for {
		,  := .Do()
		if  != nil {
			return 
		}
		if  := ();  != nil {
			return 
		}
		if .NextPageToken == "" {
			return nil
		}
		.PageToken(.NextPageToken)
	}
}
Patch: Patches an object's metadata.
func ( *ObjectsService) ( string,  string,  *Object) *ObjectsPatchCall {
	 := &ObjectsPatchCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.object2 = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsPatchCall) ( int64) *ObjectsPatchCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsPatchCall) ( int64) *ObjectsPatchCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsPatchCall) ( int64) *ObjectsPatchCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsPatchCall) ( int64) *ObjectsPatchCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func ( *ObjectsPatchCall) ( int64) *ObjectsPatchCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsPatchCall) ( string) *ObjectsPatchCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsPatchCall) ( string) *ObjectsPatchCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsPatchCall) ( string) *ObjectsPatchCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request, for Requester Pays buckets.
func ( *ObjectsPatchCall) ( string) *ObjectsPatchCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsPatchCall) ( context.Context) *ObjectsPatchCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsPatchCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsPatchCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.object2)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PATCH", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.patch" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsPatchCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Patches an object's metadata.", "httpMethod": "PATCH", "id": "storage.objects.patch", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "predefinedAcl": { "description": "Apply a predefined set of access controls to this object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request, for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}", "request": { "$ref": "Object" }, "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Rewrite: Rewrites a source object to a destination object. Optionally overrides metadata.
func ( *ObjectsService) ( string,  string,  string,  string,  *Object) *ObjectsRewriteCall {
	 := &ObjectsRewriteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.sourceBucket = 
	.sourceObject = 
	.destinationBucket = 
	.destinationObject = 
	.object = 
	return 
}
DestinationKmsKeyName sets the optional parameter "destinationKmsKeyName": Resource name of the Cloud KMS key, of the form projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that will be used to encrypt the object. Overrides the object metadata's kms_key_name value, if any.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("destinationKmsKeyName", )
	return 
}
DestinationPredefinedAcl sets the optional parameter "destinationPredefinedAcl": Apply a predefined set of access controls to the destination object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("destinationPredefinedAcl", )
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the destination object's current metageneration matches the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
IfSourceGenerationMatch sets the optional parameter "ifSourceGenerationMatch": Makes the operation conditional on whether the source object's current generation matches the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifSourceGenerationMatch", fmt.Sprint())
	return 
}
IfSourceGenerationNotMatch sets the optional parameter "ifSourceGenerationNotMatch": Makes the operation conditional on whether the source object's current generation does not match the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifSourceGenerationNotMatch", fmt.Sprint())
	return 
}
IfSourceMetagenerationMatch sets the optional parameter "ifSourceMetagenerationMatch": Makes the operation conditional on whether the source object's current metageneration matches the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifSourceMetagenerationMatch", fmt.Sprint())
	return 
}
IfSourceMetagenerationNotMatch sets the optional parameter "ifSourceMetagenerationNotMatch": Makes the operation conditional on whether the source object's current metageneration does not match the given value.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("ifSourceMetagenerationNotMatch", fmt.Sprint())
	return 
}
MaxBytesRewrittenPerCall sets the optional parameter "maxBytesRewrittenPerCall": The maximum number of bytes that will be rewritten per rewrite request. Most callers shouldn't need to specify this parameter - it is primarily in place to support testing. If specified the value must be an integral multiple of 1 MiB (1048576). Also, this only applies to requests where the source and destination span locations and/or storage classes. Finally, this value must not change across rewrite calls else you'll get an error that the rewriteToken is invalid.
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("maxBytesRewrittenPerCall", fmt.Sprint())
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
RewriteToken sets the optional parameter "rewriteToken": Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true. Calls that provide a rewriteToken can omit all other request fields, but if included those fields must match the values provided in the first rewrite request.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("rewriteToken", )
	return 
}
SourceGeneration sets the optional parameter "sourceGeneration": If present, selects a specific revision of the source object (as opposed to the latest version, the default).
func ( *ObjectsRewriteCall) ( int64) *ObjectsRewriteCall {
	.urlParams_.Set("sourceGeneration", fmt.Sprint())
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsRewriteCall) ( string) *ObjectsRewriteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsRewriteCall) ( context.Context) *ObjectsRewriteCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsRewriteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsRewriteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.object)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"sourceBucket":      .sourceBucket,
		"sourceObject":      .sourceObject,
		"destinationBucket": .destinationBucket,
		"destinationObject": .destinationObject,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.rewrite" call. Exactly one of *RewriteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RewriteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsRewriteCall) ( ...googleapi.CallOption) (*RewriteResponse, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &RewriteResponse{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Rewrites a source object to a destination object. Optionally overrides metadata.", "httpMethod": "POST", "id": "storage.objects.rewrite", "parameterOrder": [ "sourceBucket", "sourceObject", "destinationBucket", "destinationObject" ], "parameters": { "destinationBucket": { "description": "Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.", "location": "path", "required": true, "type": "string" }, "destinationKmsKeyName": { "description": "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.", "location": "query", "type": "string" }, "destinationObject": { "description": "Name of the new 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.", "location": "path", "required": true, "type": "string" }, "destinationPredefinedAcl": { "description": "Apply a predefined set of access controls to the destination object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the destination object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the destination object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceGenerationMatch": { "description": "Makes the operation conditional on whether the source object's current generation matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceGenerationNotMatch": { "description": "Makes the operation conditional on whether the source object's current generation does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceMetagenerationMatch": { "description": "Makes the operation conditional on whether the source object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifSourceMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the source object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "maxBytesRewrittenPerCall": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "rewriteToken": { "description": "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.", "location": "query", "type": "string" }, "sourceBucket": { "description": "Name of the bucket in which to find the source object.", "location": "path", "required": true, "type": "string" }, "sourceGeneration": { "description": "If present, selects a specific revision of the source object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "sourceObject": { "description": "Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}", "request": { "$ref": "Object" }, "response": { "$ref": "RewriteResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
SetIamPolicy: Updates an IAM policy for the specified object.
func ( *ObjectsService) ( string,  string,  *Policy) *ObjectsSetIamPolicyCall {
	 := &ObjectsSetIamPolicyCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.policy = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsSetIamPolicyCall) ( int64) *ObjectsSetIamPolicyCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsSetIamPolicyCall) ( string) *ObjectsSetIamPolicyCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsSetIamPolicyCall) ( string) *ObjectsSetIamPolicyCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsSetIamPolicyCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsSetIamPolicyCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.policy)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/iam")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.setIamPolicy" call. Exactly one of *Policy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Policy.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsSetIamPolicyCall) ( ...googleapi.CallOption) (*Policy, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Policy{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates an IAM policy for the specified object.", "httpMethod": "PUT", "id": "storage.objects.setIamPolicy", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/iam", "request": { "$ref": "Policy" }, "response": { "$ref": "Policy" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
TestIamPermissions: Tests a set of permissions on the given object to see which, if any, are held by the caller.
func ( *ObjectsService) ( string,  string,  []string) *ObjectsTestIamPermissionsCall {
	 := &ObjectsTestIamPermissionsCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.urlParams_.SetMulti("permissions", append([]string{}, ...))
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsTestIamPermissionsCall) ( int64) *ObjectsTestIamPermissionsCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsTestIamPermissionsCall) ( string) *ObjectsTestIamPermissionsCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsTestIamPermissionsCall) ( string) *ObjectsTestIamPermissionsCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsTestIamPermissionsCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsTestIamPermissionsCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}/iam/testPermissions")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.testIamPermissions" call. Exactly one of *TestIamPermissionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *TestIamPermissionsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsTestIamPermissionsCall) ( ...googleapi.CallOption) (*TestIamPermissionsResponse, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &TestIamPermissionsResponse{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Tests a set of permissions on the given object to see which, if any, are held by the caller.", "httpMethod": "GET", "id": "storage.objects.testIamPermissions", "parameterOrder": [ "bucket", "object", "permissions" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "permissions": { "description": "Permissions to test.", "location": "query", "repeated": true, "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}/iam/testPermissions", "response": { "$ref": "TestIamPermissionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Update: Updates an object's metadata.
func ( *ObjectsService) ( string,  string,  *Object) *ObjectsUpdateCall {
	 := &ObjectsUpdateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.object = 
	.object2 = 
	return 
}
Generation sets the optional parameter "generation": If present, selects a specific revision of this object (as opposed to the latest version, the default).
func ( *ObjectsUpdateCall) ( int64) *ObjectsUpdateCall {
	.urlParams_.Set("generation", fmt.Sprint())
	return 
}
IfGenerationMatch sets the optional parameter "ifGenerationMatch": Makes the operation conditional on whether the object's current generation matches the given value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
func ( *ObjectsUpdateCall) ( int64) *ObjectsUpdateCall {
	.urlParams_.Set("ifGenerationMatch", fmt.Sprint())
	return 
}
IfGenerationNotMatch sets the optional parameter "ifGenerationNotMatch": Makes the operation conditional on whether the object's current generation does not match the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation succeed only if there is a live version of the object.
func ( *ObjectsUpdateCall) ( int64) *ObjectsUpdateCall {
	.urlParams_.Set("ifGenerationNotMatch", fmt.Sprint())
	return 
}
IfMetagenerationMatch sets the optional parameter "ifMetagenerationMatch": Makes the operation conditional on whether the object's current metageneration matches the given value.
func ( *ObjectsUpdateCall) ( int64) *ObjectsUpdateCall {
	.urlParams_.Set("ifMetagenerationMatch", fmt.Sprint())
	return 
}
IfMetagenerationNotMatch sets the optional parameter "ifMetagenerationNotMatch": Makes the operation conditional on whether the object's current metageneration does not match the given value.
func ( *ObjectsUpdateCall) ( int64) *ObjectsUpdateCall {
	.urlParams_.Set("ifMetagenerationNotMatch", fmt.Sprint())
	return 
}
PredefinedAcl sets the optional parameter "predefinedAcl": Apply a predefined set of access controls to this object. Possible values: "authenticatedRead" - Object owner gets OWNER access, and allAuthenticatedUsers get READER access. "bucketOwnerFullControl" - Object owner gets OWNER access, and project team owners get OWNER access. "bucketOwnerRead" - Object owner gets OWNER access, and project team owners get READER access. "private" - Object owner gets OWNER access. "projectPrivate" - Object owner gets OWNER access, and project team members get access according to their roles. "publicRead" - Object owner gets OWNER access, and allUsers get READER access.
func ( *ObjectsUpdateCall) ( string) *ObjectsUpdateCall {
	.urlParams_.Set("predefinedAcl", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to full. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsUpdateCall) ( string) *ObjectsUpdateCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsUpdateCall) ( string) *ObjectsUpdateCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsUpdateCall) ( string) *ObjectsUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsUpdateCall) ( context.Context) *ObjectsUpdateCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.object2)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/{object}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
		"object": .object,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.update" call. Exactly one of *Object or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Object.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsUpdateCall) ( ...googleapi.CallOption) (*Object, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Object{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates an object's metadata.", "httpMethod": "PUT", "id": "storage.objects.update", "parameterOrder": [ "bucket", "object" ], "parameters": { "bucket": { "description": "Name of the bucket in which the object resides.", "location": "path", "required": true, "type": "string" }, "generation": { "description": "If present, selects a specific revision of this object (as opposed to the latest version, the default).", "format": "int64", "location": "query", "type": "string" }, "ifGenerationMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifGenerationNotMatch": { "description": "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.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationMatch": { "description": "Makes the operation conditional on whether the object's current metageneration matches the given value.", "format": "int64", "location": "query", "type": "string" }, "ifMetagenerationNotMatch": { "description": "Makes the operation conditional on whether the object's current metageneration does not match the given value.", "format": "int64", "location": "query", "type": "string" }, "object": { "description": "Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.", "location": "path", "required": true, "type": "string" }, "predefinedAcl": { "description": "Apply a predefined set of access controls to this object.", "enum": [ "authenticatedRead", "bucketOwnerFullControl", "bucketOwnerRead", "private", "projectPrivate", "publicRead" ], "enumDescriptions": [ "Object owner gets OWNER access, and allAuthenticatedUsers get READER access.", "Object owner gets OWNER access, and project team owners get OWNER access.", "Object owner gets OWNER access, and project team owners get READER access.", "Object owner gets OWNER access.", "Object owner gets OWNER access, and project team members get access according to their roles.", "Object owner gets OWNER access, and allUsers get READER access." ], "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to full.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" } }, "path": "b/{bucket}/o/{object}", "request": { "$ref": "Object" }, "response": { "$ref": "Object" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
WatchAll: Watch for changes on all objects in a bucket.
func ( *ObjectsService) ( string,  *Channel) *ObjectsWatchAllCall {
	 := &ObjectsWatchAllCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.bucket = 
	.channel = 
	return 
}
Delimiter sets the optional parameter "delimiter": Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("delimiter", )
	return 
}
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).
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("endOffset", )
	return 
}
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.
func ( *ObjectsWatchAllCall) ( bool) *ObjectsWatchAllCall {
	.urlParams_.Set("includeTrailingDelimiter", fmt.Sprint())
	return 
}
MaxResults sets the optional parameter "maxResults": Maximum number of items plus prefixes to return in a single page of responses. As duplicate prefixes are omitted, fewer total results may be returned than requested. The service will use this parameter or 1,000 items, whichever is smaller.
func ( *ObjectsWatchAllCall) ( int64) *ObjectsWatchAllCall {
	.urlParams_.Set("maxResults", fmt.Sprint())
	return 
}
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("pageToken", )
	return 
}
Prefix sets the optional parameter "prefix": Filter results to objects whose names begin with this prefix.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("prefix", )
	return 
}
Projection sets the optional parameter "projection": Set of properties to return. Defaults to noAcl. Possible values: "full" - Include all properties. "noAcl" - Omit the owner, acl property.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("projection", )
	return 
}
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
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).
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("startOffset", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request. Required for Requester Pays buckets.
func ( *ObjectsWatchAllCall) ( string) *ObjectsWatchAllCall {
	.urlParams_.Set("userProject", )
	return 
}
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.
func ( *ObjectsWatchAllCall) ( bool) *ObjectsWatchAllCall {
	.urlParams_.Set("versions", fmt.Sprint())
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func ( *ObjectsWatchAllCall) ( context.Context) *ObjectsWatchAllCall {
	.ctx_ = 
	return 
}
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ObjectsWatchAllCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ObjectsWatchAllCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.channel)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "b/{bucket}/o/watch")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"bucket": .bucket,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.objects.watchAll" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ObjectsWatchAllCall) ( ...googleapi.CallOption) (*Channel, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &Channel{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Watch for changes on all objects in a bucket.", "httpMethod": "POST", "id": "storage.objects.watchAll", "parameterOrder": [ "bucket" ], "parameters": { "bucket": { "description": "Name of the bucket in which to look for objects.", "location": "path", "required": true, "type": "string" }, "delimiter": { "description": "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.", "location": "query", "type": "string" }, "endOffset": { "description": "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).", "location": "query", "type": "string" }, "includeTrailingDelimiter": { "description": "If true, objects that end in exactly one instance of delimiter will have their metadata included in items in addition to prefixes.", "location": "query", "type": "boolean" }, "maxResults": { "default": "1000", "description": "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.", "format": "uint32", "location": "query", "minimum": "0", "type": "integer" }, "pageToken": { "description": "A previously-returned page token representing part of the larger set of results to view.", "location": "query", "type": "string" }, "prefix": { "description": "Filter results to objects whose names begin with this prefix.", "location": "query", "type": "string" }, "projection": { "description": "Set of properties to return. Defaults to noAcl.", "enum": [ "full", "noAcl" ], "enumDescriptions": [ "Include all properties.", "Omit the owner, acl property." ], "location": "query", "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "startOffset": { "description": "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).", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request. Required for Requester Pays buckets.", "location": "query", "type": "string" }, "versions": { "description": "If true, lists all versions of an object as distinct results. The default is false. For more information, see Object Versioning.", "location": "query", "type": "boolean" } }, "path": "b/{bucket}/o/watch", "request": { "$ref": "Channel", "parameterName": "resource" }, "response": { "$ref": "Channel" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ], "supportsSubscription": true }

}
method id "storage.projects.hmacKeys.create":
Create: Creates a new HMAC key for the specified service account.
func ( *ProjectsHmacKeysService) ( string,  string) *ProjectsHmacKeysCreateCall {
	 := &ProjectsHmacKeysCreateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.projectId = 
	.urlParams_.Set("serviceAccountEmail", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsHmacKeysCreateCall) ( string) *ProjectsHmacKeysCreateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsHmacKeysCreateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsHmacKeysCreateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/hmacKeys")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("POST", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
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.
func ( *ProjectsHmacKeysCreateCall) ( ...googleapi.CallOption) (*HmacKey, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &HmacKey{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Creates a new HMAC key for the specified service account.", "httpMethod": "POST", "id": "storage.projects.hmacKeys.create", "parameterOrder": [ "projectId", "serviceAccountEmail" ], "parameters": { "projectId": { "description": "Project ID owning the service account.", "location": "path", "required": true, "type": "string" }, "serviceAccountEmail": { "description": "Email address of the service account.", "location": "query", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/hmacKeys", "response": { "$ref": "HmacKey" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Delete: Deletes an HMAC key.
func ( *ProjectsHmacKeysService) ( string,  string) *ProjectsHmacKeysDeleteCall {
	 := &ProjectsHmacKeysDeleteCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.projectId = 
	.accessId = 
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsHmacKeysDeleteCall) ( string) *ProjectsHmacKeysDeleteCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsHmacKeysDeleteCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsHmacKeysDeleteCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/hmacKeys/{accessId}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("DELETE", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
		"accessId":  .accessId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.projects.hmacKeys.delete" call.
func ( *ProjectsHmacKeysDeleteCall) ( ...googleapi.CallOption) error {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil {
		return 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return 
	}
{ "description": "Deletes an HMAC key.", "httpMethod": "DELETE", "id": "storage.projects.hmacKeys.delete", "parameterOrder": [ "projectId", "accessId" ], "parameters": { "accessId": { "description": "Name of the HMAC key to be deleted.", "location": "path", "required": true, "type": "string" }, "projectId": { "description": "Project ID owning the requested key", "location": "path", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/hmacKeys/{accessId}", "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write" ] }

}
Get: Retrieves an HMAC key's metadata
func ( *ProjectsHmacKeysService) ( string,  string) *ProjectsHmacKeysGetCall {
	 := &ProjectsHmacKeysGetCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.projectId = 
	.accessId = 
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsHmacKeysGetCall) ( string) *ProjectsHmacKeysGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *ProjectsHmacKeysGetCall) ( string) *ProjectsHmacKeysGetCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsHmacKeysGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsHmacKeysGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/hmacKeys/{accessId}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
		"accessId":  .accessId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
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.
func ( *ProjectsHmacKeysGetCall) ( ...googleapi.CallOption) (*HmacKeyMetadata, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &HmacKeyMetadata{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves an HMAC key's metadata", "httpMethod": "GET", "id": "storage.projects.hmacKeys.get", "parameterOrder": [ "projectId", "accessId" ], "parameters": { "accessId": { "description": "Name of the HMAC key.", "location": "path", "required": true, "type": "string" }, "projectId": { "description": "Project ID owning the service account of the requested key.", "location": "path", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/hmacKeys/{accessId}", "response": { "$ref": "HmacKeyMetadata" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only" ] }

}
List: Retrieves a list of HMAC keys matching the criteria.
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.
func ( *ProjectsHmacKeysListCall) ( int64) *ProjectsHmacKeysListCall {
	.urlParams_.Set("maxResults", fmt.Sprint())
	return 
}
PageToken sets the optional parameter "pageToken": A previously-returned page token representing part of the larger set of results to view.
func ( *ProjectsHmacKeysListCall) ( string) *ProjectsHmacKeysListCall {
	.urlParams_.Set("pageToken", )
	return 
}
ServiceAccountEmail sets the optional parameter "serviceAccountEmail": If present, only keys for the given service account are returned.
func ( *ProjectsHmacKeysListCall) ( string) *ProjectsHmacKeysListCall {
	.urlParams_.Set("serviceAccountEmail", )
	return 
}
ShowDeletedKeys sets the optional parameter "showDeletedKeys": Whether or not to show keys in the DELETED state.
func ( *ProjectsHmacKeysListCall) ( bool) *ProjectsHmacKeysListCall {
	.urlParams_.Set("showDeletedKeys", fmt.Sprint())
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsHmacKeysListCall) ( string) *ProjectsHmacKeysListCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func ( *ProjectsHmacKeysListCall) ( string) *ProjectsHmacKeysListCall {
	.ifNoneMatch_ = 
	return 
}
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsHmacKeysListCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsHmacKeysListCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/hmacKeys")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
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.
func ( *ProjectsHmacKeysListCall) ( ...googleapi.CallOption) (*HmacKeysMetadata, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &HmacKeysMetadata{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Retrieves a list of HMAC keys matching the criteria.", "httpMethod": "GET", "id": "storage.projects.hmacKeys.list", "parameterOrder": [ "projectId" ], "parameters": { "maxResults": { "default": "250", "description": "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.", "format": "uint32", "location": "query", "minimum": "0", "type": "integer" }, "pageToken": { "description": "A previously-returned page token representing part of the larger set of results to view.", "location": "query", "type": "string" }, "projectId": { "description": "Name of the project in which to look for HMAC keys.", "location": "path", "required": true, "type": "string" }, "serviceAccountEmail": { "description": "If present, only keys for the given service account are returned.", "location": "query", "type": "string" }, "showDeletedKeys": { "description": "Whether or not to show keys in the DELETED state.", "location": "query", "type": "boolean" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/hmacKeys", "response": { "$ref": "HmacKeysMetadata" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only" ] }

}
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func ( *ProjectsHmacKeysListCall) ( context.Context,  func(*HmacKeysMetadata) error) error {
	.ctx_ = 
	defer .PageToken(.urlParams_.Get("pageToken")) // reset paging to original point
	for {
		,  := .Do()
		if  != nil {
			return 
		}
		if  := ();  != nil {
			return 
		}
		if .NextPageToken == "" {
			return nil
		}
		.PageToken(.NextPageToken)
	}
}
Update: Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.
func ( *ProjectsHmacKeysService) ( string,  string,  *HmacKeyMetadata) *ProjectsHmacKeysUpdateCall {
	 := &ProjectsHmacKeysUpdateCall{s: .s, urlParams_: make(gensupport.URLParams)}
	.projectId = 
	.accessId = 
	.hmackeymetadata = 
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsHmacKeysUpdateCall) ( string) *ProjectsHmacKeysUpdateCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsHmacKeysUpdateCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsHmacKeysUpdateCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	var  io.Reader = nil
	,  := googleapi.WithoutDataWrapper.JSONReader(.hmackeymetadata)
	if  != nil {
		return nil, 
	}
	.Set("Content-Type", "application/json")
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/hmacKeys/{accessId}")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("PUT", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
		"accessId":  .accessId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
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.
func ( *ProjectsHmacKeysUpdateCall) ( ...googleapi.CallOption) (*HmacKeyMetadata, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &HmacKeyMetadata{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Updates the state of an HMAC key. See the HMAC Key resource descriptor for valid states.", "httpMethod": "PUT", "id": "storage.projects.hmacKeys.update", "parameterOrder": [ "projectId", "accessId" ], "parameters": { "accessId": { "description": "Name of the HMAC key being updated.", "location": "path", "required": true, "type": "string" }, "projectId": { "description": "Project ID owning the service account of the updated key.", "location": "path", "required": true, "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/hmacKeys/{accessId}", "request": { "$ref": "HmacKeyMetadata" }, "response": { "$ref": "HmacKeyMetadata" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control" ] }

}
Get: Get the email address of this project's Google Cloud Storage service account.
ProvisionalUserProject sets the optional parameter "provisionalUserProject": The project to be billed for this request if the target bucket is requester-pays bucket.
func ( *ProjectsServiceAccountGetCall) ( string) *ProjectsServiceAccountGetCall {
	.urlParams_.Set("provisionalUserProject", )
	return 
}
UserProject sets the optional parameter "userProject": The project to be billed for this request.
func ( *ProjectsServiceAccountGetCall) ( string) *ProjectsServiceAccountGetCall {
	.urlParams_.Set("userProject", )
	return 
}
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
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.
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.
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func ( *ProjectsServiceAccountGetCall) () http.Header {
	if .header_ == nil {
		.header_ = make(http.Header)
	}
	return .header_
}

func ( *ProjectsServiceAccountGetCall) ( string) (*http.Response, error) {
	 := make(http.Header)
	.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20200912")
	for ,  := range .header_ {
		[] = 
	}
	.Set("User-Agent", .s.userAgent())
	if .ifNoneMatch_ != "" {
		.Set("If-None-Match", .ifNoneMatch_)
	}
	var  io.Reader = nil
	.urlParams_.Set("alt", )
	.urlParams_.Set("prettyPrint", "false")
	 := googleapi.ResolveRelative(.s.BasePath, "projects/{projectId}/serviceAccount")
	 += "?" + .urlParams_.Encode()
	,  := http.NewRequest("GET", , )
	if  != nil {
		return nil, 
	}
	.Header = 
	googleapi.Expand(.URL, map[string]string{
		"projectId": .projectId,
	})
	return gensupport.SendRequest(.ctx_, .s.client, )
}
Do executes the "storage.projects.serviceAccount.get" call. Exactly one of *ServiceAccount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceAccount.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func ( *ProjectsServiceAccountGetCall) ( ...googleapi.CallOption) (*ServiceAccount, error) {
	gensupport.SetOptions(.urlParams_, ...)
	,  := .doRequest("json")
	if  != nil && .StatusCode == http.StatusNotModified {
		if .Body != nil {
			.Body.Close()
		}
		return nil, &googleapi.Error{
			Code:   .StatusCode,
			Header: .Header,
		}
	}
	if  != nil {
		return nil, 
	}
	defer googleapi.CloseBody()
	if  := googleapi.CheckResponse();  != nil {
		return nil, 
	}
	 := &ServiceAccount{
		ServerResponse: googleapi.ServerResponse{
			Header:         .Header,
			HTTPStatusCode: .StatusCode,
		},
	}
	 := &
	if  := gensupport.DecodeResponse(, );  != nil {
		return nil, 
	}
{ "description": "Get the email address of this project's Google Cloud Storage service account.", "httpMethod": "GET", "id": "storage.projects.serviceAccount.get", "parameterOrder": [ "projectId" ], "parameters": { "projectId": { "description": "Project ID", "location": "path", "required": true, "type": "string" }, "provisionalUserProject": { "description": "The project to be billed for this request if the target bucket is requester-pays bucket.", "location": "query", "type": "string" }, "userProject": { "description": "The project to be billed for this request.", "location": "query", "type": "string" } }, "path": "projects/{projectId}/serviceAccount", "response": { "$ref": "ServiceAccount" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/cloud-platform.read-only", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write" ] }