Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 1 | # 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 |
| 16 | ACTIVE_CONNECTIONS = 'active_connections' |
| 17 | ADMIN_STATE_UP = 'admin_state_up' |
| 18 | BYTES_IN = 'bytes_in' |
| 19 | BYTES_OUT = 'bytes_out' |
| 20 | CREATED_AT = 'created_at' |
| 21 | DESCRIPTION = 'description' |
Adam Harwell | a795ae6 | 2018-04-23 12:11:19 -0700 | [diff] [blame^] | 22 | FLAVOR_ID = 'flavor_id' |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 23 | ID = 'id' |
| 24 | LISTENERS = 'listeners' |
| 25 | LOADBALANCER = 'loadbalancer' |
| 26 | NAME = 'name' |
| 27 | OPERATING_STATUS = 'operating_status' |
| 28 | POOLS = 'pools' |
| 29 | PROJECT_ID = 'project_id' |
| 30 | PROVIDER = 'provider' |
| 31 | PROVISIONING_STATUS = 'provisioning_status' |
| 32 | REQUEST_ERRORS = 'request_errors' |
| 33 | TOTAL_CONNECTIONS = 'total_connections' |
| 34 | UPDATED_AT = 'updated_at' |
| 35 | VIP_ADDRESS = 'vip_address' |
| 36 | VIP_NETWORK_ID = 'vip_network_id' |
| 37 | VIP_PORT_ID = 'vip_port_id' |
| 38 | VIP_SUBNET_ID = 'vip_subnet_id' |
| 39 | VIP_QOS_POLICY_ID = 'vip_qos_policy_id' |
| 40 | |
| 41 | # API valid fields |
| 42 | SHOW_LOAD_BALANCER_RESPONSE_FIELDS = ( |
Adam Harwell | a795ae6 | 2018-04-23 12:11:19 -0700 | [diff] [blame^] | 43 | ADMIN_STATE_UP, CREATED_AT, DESCRIPTION, FLAVOR_ID, ID, LISTENERS, NAME, |
Jude Cross | 986e3f5 | 2017-07-24 14:57:20 -0700 | [diff] [blame] | 44 | 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 |
| 49 | ACTIVE = 'ACTIVE' |
| 50 | ADMIN_STATE_UP_TRUE = 'true' |
| 51 | ASC = 'asc' |
| 52 | DELETED = 'DELETED' |
| 53 | DESC = 'desc' |
| 54 | FIELDS = 'fields' |
| 55 | OFFLINE = 'OFFLINE' |
| 56 | ONLINE = 'ONLINE' |
| 57 | SORT = 'sort' |
| 58 | |
| 59 | # RBAC options |
| 60 | ADVANCED = 'advanced' |
| 61 | OWNERADMIN = 'owner_or_admin' |
| 62 | NONE = 'none' |