tricircleclient.v1 package

Submodules

tricircleclient.v1.base module

class tricircleclient.v1.base.Manager(client)

Bases: object

DEFAULT_HEADERS = {'Accept': 'application/json, */*'}

tricircleclient.v1.client module

class tricircleclient.v1.client.Client(session=None, service_type='tricircle', **kwargs)

Bases: object

Client for the Tricircle v1 API.

Parameters

session (keystoneauth.adapter.Adapter) – session

tricircleclient.v1.jobs module

class tricircleclient.v1.jobs.JobManager(client)

Bases: tricircleclient.v1.base.Manager

create(job)

Create a job.

delete(id)

Delete a job.

get(id)

Get information about a job.

list(path)

Get a list of jobs.

update(id)

Redo a job.

tricircleclient.v1.jobs_cli module

class tricircleclient.v1.jobs_cli.CreateJob(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Create a Job

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.jobs_cli.CreateJob (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class tricircleclient.v1.jobs_cli.DeleteJob(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Delete a Job.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.jobs_cli.DeleteJob (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class tricircleclient.v1.jobs_cli.ListJobs(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

List Jobs

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.jobs_cli.ListJobs (WARNING)>
path = '/jobs'
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class tricircleclient.v1.jobs_cli.RedoJob(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Redo a Job.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.jobs_cli.RedoJob (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class tricircleclient.v1.jobs_cli.ShowJob(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Display Job details.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.jobs_cli.ShowJob (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

tricircleclient.v1.jobs_cli.expand_job_resource(job)

tricircleclient.v1.pods module

class tricircleclient.v1.pods.PodManager(client)

Bases: tricircleclient.v1.base.Manager

create(pod)

Create a Pod.

delete(pod)

Delete a Pod.

get(pod)

Get information about a Pod.

list(search_opts=None)

Get a list of Pods.

tricircleclient.v1.pods_cli module

class tricircleclient.v1.pods_cli.CreatePod(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Creates pod

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.pods_cli.CreatePod (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class tricircleclient.v1.pods_cli.DeletePod(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Deletes Pod.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.pods_cli.DeletePod (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class tricircleclient.v1.pods_cli.ListPods(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

Lists pods

COLS = ('pod_id', 'region_name')
log = <KeywordArgumentAdapter tricircleclient.v1.pods_cli.ListPods (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class tricircleclient.v1.pods_cli.ShowPod(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Display pod details.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.pods_cli.ShowPod (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

tricircleclient.v1.routings module

class tricircleclient.v1.routings.RoutingManager(client)

Bases: tricircleclient.v1.base.Manager

create(routing)

Create a Resource Routing.

delete(routing)

Delete a Resource Routing.

get(routing)

Get information about a Resource Routing.

list(path)

Get a list of Resource Routings.

update(routing)

Update a Resource Routing.

tricircleclient.v1.routings_cli module

class tricircleclient.v1.routings_cli.CreateRouting(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Creates a Resource Routing

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.routings_cli.CreateRouting (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class tricircleclient.v1.routings_cli.DeleteRouting(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Deletes Routing Resource.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.routings_cli.DeleteRouting (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class tricircleclient.v1.routings_cli.ListRoutings(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

Lists Routings

COLS = ('id', 'pod_id', 'resource_type', 'top_id')
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.routings_cli.ListRoutings (WARNING)>
path = '/routings'
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class tricircleclient.v1.routings_cli.ShowRouting(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

Display Routing Resource details.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.routings_cli.ShowRouting (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class tricircleclient.v1.routings_cli.UpdateRouting(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Updates a Routing Resource.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <KeywordArgumentAdapter tricircleclient.v1.routings_cli.UpdateRouting (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

Module contents