blob: c7bb82bc7509ba2b187811f86059fe3859c34aff [file] [log] [blame]
Jude Cross986e3f52017-07-24 14:57:20 -07001# Copyright 2018 Rackspace US Inc. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15# API field names
16ACTIVE_CONNECTIONS = 'active_connections'
17ADMIN_STATE_UP = 'admin_state_up'
18BYTES_IN = 'bytes_in'
19BYTES_OUT = 'bytes_out'
20CREATED_AT = 'created_at'
21DESCRIPTION = 'description'
Adam Harwella795ae62018-04-23 12:11:19 -070022FLAVOR_ID = 'flavor_id'
Jude Cross986e3f52017-07-24 14:57:20 -070023ID = 'id'
24LISTENERS = 'listeners'
25LOADBALANCER = 'loadbalancer'
26NAME = 'name'
27OPERATING_STATUS = 'operating_status'
28POOLS = 'pools'
29PROJECT_ID = 'project_id'
30PROVIDER = 'provider'
31PROVISIONING_STATUS = 'provisioning_status'
32REQUEST_ERRORS = 'request_errors'
33TOTAL_CONNECTIONS = 'total_connections'
34UPDATED_AT = 'updated_at'
35VIP_ADDRESS = 'vip_address'
36VIP_NETWORK_ID = 'vip_network_id'
37VIP_PORT_ID = 'vip_port_id'
38VIP_SUBNET_ID = 'vip_subnet_id'
39VIP_QOS_POLICY_ID = 'vip_qos_policy_id'
40
41# API valid fields
42SHOW_LOAD_BALANCER_RESPONSE_FIELDS = (
Adam Harwella795ae62018-04-23 12:11:19 -070043 ADMIN_STATE_UP, CREATED_AT, DESCRIPTION, FLAVOR_ID, ID, LISTENERS, NAME,
Jude Cross986e3f52017-07-24 14:57:20 -070044 OPERATING_STATUS, POOLS, PROJECT_ID, PROVIDER, PROVISIONING_STATUS,
45 UPDATED_AT, VIP_ADDRESS, VIP_NETWORK_ID, VIP_PORT_ID, VIP_SUBNET_ID,
46 VIP_QOS_POLICY_ID)
47
48# Other constants
49ACTIVE = 'ACTIVE'
50ADMIN_STATE_UP_TRUE = 'true'
51ASC = 'asc'
52DELETED = 'DELETED'
53DESC = 'desc'
54FIELDS = 'fields'
55OFFLINE = 'OFFLINE'
56ONLINE = 'ONLINE'
57SORT = 'sort'
58
59# RBAC options
60ADVANCED = 'advanced'
61OWNERADMIN = 'owner_or_admin'
62NONE = 'none'