The gnocchiclient.v1.resource_type Module

class gnocchiclient.v1.resource_type.ResourceTypeManager(client)

Bases: Manager

create(resource_type)

Create a resource type.

Parameters:

resource_type (dict) – resource type

delete(name)

Delete a resource type.

Parameters:

resource_type (dict) – Resource type

get(name)

Get a resource type.

Parameters:

name (str) – name of the resource type

list()

List resource types.

update(name, operations)

Update a resource type.

Parameters:
  • name (list) – name of the resource type

  • operations – operations in RFC6902 format

url = 'v1/resource_type/'