You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Account for existing objects in bucket when using storage.bucket.Bucket.upload_file #162
It's possible there is an API feature to only write if doesn't exist (though race conditions may make this a PITA). May also be worth requesting from API eng team?
Once support for the lifecycle field of the bucket resource lands (see #314), this issue will resolve: buckets with no lifecycle defined will overwrite without checking for existing objects, while those with lifecycle policies will obey them (generations, etc.).
Activity
dhermes commentedon Sep 22, 2014
It's possible there is an API feature to only write if doesn't exist (though race conditions may make this a PITA). May also be worth requesting from API eng team?
Remove TODO from gcloud.storage.bucket.
tseaver commentedon Oct 29, 2014
Once support for the
lifecyclefield of the bucket resource lands (see #314), this issue will resolve: buckets with nolifecycledefined will overwrite without checking for existing objects, while those withlifecyclepolicies will obey them (generations, etc.).tseaver commentedon Oct 29, 2014
See the lifecycle spec for notes on configuring the bucket's
lifecyclepolicy.tseaver commentedon Oct 31, 2014
The lifecycle rules for number of versions will only be effective if object versioning is enabled on the bucket. Currently, we can enable this via:
#314 proposes adding more direct support for the
versioningandlifecyclefields (along with others).Merge pull request #327 from tseaver/162-document-key-upload-overwrit…
Merge pull request googleapis#162 from nickyspag/master
85 remaining items
chore(python): add kokoro configs for periodic builds against head (#162
chore: tweak version lookup for non-admin client (#165)
build: update actions/checkout and actions/setup-python (#162)
Test request setup against method request type (#162)
chore(python): omit google/__init__.py in coverage (#162)
fix: correct param type of _ClientFactoryMixin.from_service_account_i…
chore: add SECURITY.md (#162)
chore(deps): update all dependencies (#162)
chore(python): avoid `.nox` directories when building docs (#162)
chore(deps): update dependency setuptools to v65.5.1 [security] (#162)
feat: bump 'google-crc32c >= 1.0' (#162)
chore: add release please config (#162)
feat(storage): add support of daysSinceNoncurrentTime and noncurrentT…
chore: use python-samples-reviewers (#162)
chore(deps): update dependency setuptools to v65.5.1 [security] (#162)