Add support_status to all resources in contrib

This change adds support_status to all the resources that are in the
contrib area of the repository that don't have it already. These resources are
given the UNSUPPORTED status, to indicate that the Heat team is not responsible
for maintaining them.

Change-Id: I8835bf3f99774c40da1e8d34a474071a71686cd1
This commit is contained in:
Miguel Grinberg 2015-06-04 17:13:53 -07:00
parent ceda2015e9
commit df48be8809
5 changed files with 31 additions and 0 deletions

View File

@ -45,6 +45,10 @@ except ImportError:
class DockerContainer(resource.Resource):
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
PROPERTIES = (
DOCKER_ENDPOINT, HOSTNAME, USER, MEMORY, PORT_SPECS,
PRIVILEGED, TTY, OPEN_STDIN, STDIN_ONCE, ENV, CMD, DNS,

View File

@ -20,6 +20,7 @@ from heat.engine import attributes
from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine import support
try:
from pyrax.exceptions import Forbidden
@ -43,6 +44,10 @@ class Group(resource.Resource):
# the true API here, but since pyrax doesn't support the full flexibility
# of the API, we'll have to restrict what users can provide.
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
# properties are identical to the API POST /groups.
PROPERTIES = (
GROUP_CONFIGURATION, LAUNCH_CONFIGURATION,
@ -385,6 +390,10 @@ class ScalingPolicy(resource.Resource):
"""Represents a Rackspace Auto Scale scaling policy."""
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
PROPERTIES = (
GROUP, NAME, CHANGE, CHANGE_PERCENT, DESIRED_CAPACITY,
COOLDOWN, TYPE, ARGS,
@ -509,6 +518,10 @@ class WebHook(resource.Resource):
Exposes the URLs of the webhook as attributes.
"""
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
PROPERTIES = (
POLICY, NAME, METADATA,
) = (

View File

@ -20,6 +20,7 @@ from heat.common.i18n import _
from heat.engine import constraints
from heat.engine import properties
from heat.engine import resource
from heat.engine import support
try:
from pyrax.exceptions import NotFound
@ -38,6 +39,10 @@ class CloudDns(resource.Resource):
"""Represents a DNS resource."""
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
PROPERTIES = (
NAME, EMAIL_ADDRESS, TTL, COMMENT, RECORDS,
) = (

View File

@ -74,6 +74,10 @@ class CloudLoadBalancer(resource.Resource):
"""Represents a Rackspace Cloud Loadbalancer."""
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
PROPERTIES = (
NAME, NODES, PROTOCOL, ACCESS_LIST, HALF_CLOSED, ALGORITHM,
CONNECTION_LOGGING, METADATA, PORT, TIMEOUT,

View File

@ -21,6 +21,7 @@ from heat.common.i18n import _LW
from heat.engine import constraints
from heat.engine import properties
from heat.engine.resources.openstack.nova import server
from heat.engine import support
try:
@ -39,6 +40,10 @@ class CloudServer(server.Server):
is used for Rackspace Cloud Servers.
"""
support_status = support.SupportStatus(
status=support.UNSUPPORTED,
message=_('This resource is not supported, use at your own risk.'))
# Managed Cloud automation statuses
MC_STATUS_IN_PROGRESS = 'In Progress'
MC_STATUS_COMPLETE = 'Complete'