Skip to content

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

@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