Generate a template from a resource

Setup the command line options and calls for generating
a template from an installed resource.

blueprint resource-template

Change-Id: If533bd90b1ec73bbe2603b55a0a7621879d355ec
Updated from global requirements

Change-Id: I1687d51bddb873549163dcf488fc40cdd9edcb29

Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6

Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6

Change-Id: Ic4a43955526fcde313ad2f2afec8fafeb87f37a6

Change-Id: If137689e5b9008c51cea16d41e648f0df490a247
Fix heat event list sorted order incorrect

The order is correct already if python heat client does not recorder
it. Add option to make print_list not to reorder possible, and call it
in do_event_list.

Change-Id: I3f0990aff27df39371c583d5aae3edd106542ad1
Fixes: bug #1209506
Merge "Generate a template from a resource"
Do not obscure Unauthorized error messages

All Unauthorized exceptions are currently trapped and
the following message is printed:
    Invalid OpenStack Identity credentials.

This is unhelpful now that heat-api is providing structured
errors with (sometimes) helpful context for authorization failures.

This change removes this error trapping and prints the intended
error message.

Change-Id: Ibd943deb1f365e5f212225be1e675beb14accf97
Apply OS_REGION_NAME for endpoint selection

Even if we got OS_REGION_NAME on CLI, the value is not used.
In this commit, we apply OS_REGION_NAME for endpoint
selection.

Fixes bug 1215588

Change-Id: Ib2e2f655282b2730a9a3b7337e56993253972ce1
Add X-Region-Name parameter in HTTP request

In order to specify region_name, we let client send
the OS_REGION_NAME in header file

Fixes bug 1213291

Change-Id: Ie44f700ca7e412c2504b6b8faac3fd65d4fd744b
Merge "Do not obscure Unauthorized error messages"
Rename event logical_resource_id to resource_name

Required by Heat change (https://review.openstack.org/#/c/43391/)

fixe bug #1216903

Change-Id: I77201348df401d5bafc7109bb4d032dd071468d8
Merge "Add X-Region-Name parameter in HTTP request"
Be backward compatible after a renaming in API

The need was introduced with the renaming of field logical_resource_id
to resource_name, so let heatclient display the good one for the two
Heat versions.

Fixes bug #1216903

Change-Id: I3e86f482a1b814a27b15be3c102727c44153221f
Fix and enable Hacking H501 warning

Enable Gating on H501. Fix the only two cases
that trigger.

Change-Id: Ib309b989df6556d7436e718e1497ce4dcacc83d6
Added support for running the tests under PyPy with tox

This is a precursor to having them run under check and gate.

This also fixes a single test which fails on PyPy, the test failes at
because it assumes a ``dict`` has a particular order for its keys when
it is printed out, on PyPy dicts have a different order sometimes, the
exact ordering is not a guarnteed property of Python.

Change-Id: Ie86726a0221e5e9aa68f7303d8ca8c7acd878f65
Stack instance identifier property

The identifier property formats the stack name and ID for
REST API request paths.

This has the following consequences for each action method:
- get, same behaviour but using the identifier property
- delete, using the full identifier avoids one http redirect
- update, this method was non-functional before this change, and is
  now fixed

Change-Id: Ib2b12826243e25772acccb8ca56039e54d3857d5
Merge "Fix and enable Hacking H501 warning"
Merge "Be backward compatible after a renaming in API"
Support --version for heatclient

Closes-Bug: #1220524
Change-Id: Id78f7c7c78d31c0126b43f7a846f02f2542b0b7c
Add handler for heatclient.common.http

If no handler is found, add StreamHandler to LOG

Closes-Bug: #1220532
Change-Id: I32d541d242845b7311fd6810a5e87f07fafd8efd
Merge "Stack instance identifier property"
Merge "Add handler for heatclient.common.http"