_getSpec (pathname) {
    return this.backend.http({ method: 'GET', pathname })
      .then(res => {
        return res.body
      })
  }
@file Convert a Swagger specification into a kubernetes-client API client.

Represent Swagger a Path Item Object [1] with chains of objects:

  /api/v1/namespaces -> api.v1.namespaces

Associate operations on a Path Item Object with functions:

  GET /api/v1/namespaces -> api.v1.namespaces.get()

Represent Path Templating [2] with function calls:

  /api/v1/namespaces/{namespace}/pods -> api.v1.namespaces(namespace).pods

Iterate over a Paths Object [3] to generate whole API client.

[1]: https://swagger.io/specification/#pathItemObject
[2]: https://swagger.io/specification/#pathTemplating
[3]: https://swagger.io/specification/#pathsObject