Content-Length: 283024 | pFad | https://github.com/googleapis/python-storage/issues/160

2C Arrtribute Error when run snippet of delete and set storage lifecycle rule in snippets.py file · Issue #160 · googleapis/python-storage · GitHub
Skip to content

Arrtribute Error when run snippet of delete and set storage lifecycle rule in snippets.py file #160

Closed
@HemangChothani

Description

@HemangChothani

Bucket class object called following method which raised an errors.

bucket.add_lifecycle_rule_delete(age=2)

bucket.add_lifecycle_rule_set_storage_class(

In bucket class the actual method names are:

def add_lifecycle_delete_rule(self, **kw):

def add_lifecycle_set_storage_class_rule(self, storage_class, **kw):

Clean Up:
Remove unused parameter from method definition from snippets.py file.

Metadata

Metadata

Labels

api: storageIssues related to the googleapis/python-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/googleapis/python-storage/issues/160

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy