From 48af67bee73ec1a0b0097f0272748bfa73079a5c Mon Sep 17 00:00:00 2001 From: Hongbin Lu Date: Tue, 17 Apr 2018 22:43:47 +0000 Subject: [PATCH] api-ref: some fixes on metering labels and rules Change-Id: I05a7a33a9057f39143957ac501b04c1bc54ac611 --- api-ref/source/v2/metering.inc | 18 +++++++++--------- api-ref/source/v2/parameters.yaml | 13 ++++++++++--- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/api-ref/source/v2/metering.inc b/api-ref/source/v2/metering.inc index dde9f0e8b..dfaa92fe2 100644 --- a/api-ref/source/v2/metering.inc +++ b/api-ref/source/v2/metering.inc @@ -70,10 +70,10 @@ Request - metering_label: metering_label - shared: metering_label-shared-request - - description: description - - name: name - - tenant_id: project_id - - project_id: project_id + - description: description-request + - name: name-request + - tenant_id: project_id-request + - project_id: project_id-request Request Example --------------- @@ -207,7 +207,7 @@ Response Parameters - direction: direction - remote_ip_prefix: remote_ip_prefix - excluded : excluded - - metering_label_id: metering_label-id-response-body + - metering_label_id: metering_label-id-body - id: metering_label_rule-id Response Example @@ -235,8 +235,8 @@ Request - metering_label_rule: metering_label_rule - remote_ip_prefix: remote_ip_prefix - direction: direction - - metering_label_id: metering_label-id-response-body - - excluded: excluded + - metering_label_id: metering_label-id-body + - excluded: excluded-request Request Example --------------- @@ -253,7 +253,7 @@ Response Parameters - direction: direction - remote_ip_prefix: remote_ip_prefix - excluded : excluded - - metering_label_id: metering_label-id-response-body + - metering_label_id: metering_label-id-body - id: metering_label_rule-id Response Example @@ -308,7 +308,7 @@ Response Paramters - direction: direction - remote_ip_prefix: remote_ip_prefix - excluded : excluded - - metering_label_id: metering_label-id-response-body + - metering_label_id: metering_label-id-body - id: metering_label_rule-id Response Example diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml index 5ae685218..d1af853f0 100644 --- a/api-ref/source/v2/parameters.yaml +++ b/api-ref/source/v2/parameters.yaml @@ -1765,6 +1765,13 @@ ethertype: required: false type: string excluded: + description: | + Indicates whether to count the traffic of a + specific IP address with the ``remote_ip_prefix`` value. + in: body + required: true + type: boolean +excluded-request: description: | Indicates whether to count the traffic of a specific IP address with the ``remote_ip_prefix`` value. Default @@ -3155,9 +3162,9 @@ metering_label-id: in: body required: true type: string -metering_label-id-response-body: +metering_label-id-body: description: | - The metering label ID to associate with this + The metering label ID associated with this metering rule. in: body required: true @@ -3174,7 +3181,7 @@ metering_label-shared-request: Indicates whether this metering label is shared across all projects. in: body - required: true + required: false type: boolean metering_label_rule: description: |