Update the replicatoin APIs in swagger.yaml

This commit is contained in:
Wenkai Yin 2017-12-04 15:39:40 +08:00
parent 34f70ff3b6
commit 2ba3758472

View File

@ -2375,19 +2375,16 @@ definitions:
type: string type: string
description: The description of the policy. description: The description of the policy.
projects: projects:
type: object type: array
description: The project list that the policy applys to. description: The project list that the policy applys to.
items: items:
$ref: '#/definitions/Project' $ref: '#/definitions/Project'
targets: targets:
type: object type: array
description: The target list. description: The target list.
items: items:
$ref: '#/definitions/RepTarget' $ref: '#/definitions/RepTarget'
trigger: trigger:
type: object
description: The trigger for schedule job.
items:
$ref: '#/definitions/RepTrigger' $ref: '#/definitions/RepTrigger'
filters: filters:
type: array type: array
@ -2407,14 +2404,14 @@ definitions:
type: string type: string
description: The update time of the policy. description: The update time of the policy.
error_job_count: error_job_count:
format: int type: integer
description: The error job count number for the policy. description: The error job count number for the policy.
RepTrigger: RepTrigger:
type: object type: object
properties: properties:
kind: kind:
type: string type: string
description: The replication policy trigger kind. description: The replication policy trigger kind. The valid values are manual, immediate and schedule.
param: param:
type: string type: string
description: The replication policy trigger parameters. description: The replication policy trigger parameters.
@ -2423,10 +2420,10 @@ definitions:
properties: properties:
kind: kind:
type: string type: string
description: The replication policy filter kind. description: The replication policy filter kind. The valid values are project, repository and tag.
value: pattern:
type: string type: string
description: The replication policy filter value. description: The replication policy filter pattern.
metadata: metadata:
type: object type: object
description: This map object is the replication policy filter metadata. description: This map object is the replication policy filter metadata.