The gnocchiclient.v1.archive_policy Module

class gnocchiclient.v1.archive_policy.ArchivePolicyManager(client)

Bases: Manager

create(archive_policy)

Create an archive policy.

Parameters:

archive_policy (dict) – the archive policy

delete(name)

Delete an archive policy.

Parameters:

name (str) – Name of the archive policy

get(name)

Get an archive policy.

Parameters:

name (str) – Name of the archive policy

list()

List archive policies.

update(name, archive_policy)

Update an archive policy.

Parameters:
  • name (str) – the name of archive policy

  • archive_policy (dict) – the archive policy

url = 'v1/archive_policy/'