From d32664150fbc00340f3ff4304c13abf9a191299a Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Thu, 6 Jul 2017 16:21:03 -0500 Subject: Add project tags functionality This change adds tags functionality for projects in keystone. A user can add a single tag with "--tag", chain "--tag" to add multiple tags, or clear tags with "--no-tag". Change-Id: I31cfef3e76dcefe299dacb00c11bb1a10a252628 Partially-Implements: bp project-tags --- doc/source/cli/command-objects/project.rst | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'doc/source/cli/command-objects') diff --git a/doc/source/cli/command-objects/project.rst b/doc/source/cli/command-objects/project.rst index cb0941ca..6891a79a 100644 --- a/doc/source/cli/command-objects/project.rst +++ b/doc/source/cli/command-objects/project.rst @@ -19,6 +19,7 @@ Create new project [--enable | --disable] [--property ] [--or-show] + [--tag ] .. option:: --domain @@ -56,6 +57,13 @@ Create new project If the project already exists return the existing project data and do not fail. +.. option:: --tag + + Add a tag to the project + (repeat option to set multiple tags) + + .. versionadded:: 3 + .. _project_create-name: .. describe:: @@ -98,6 +106,8 @@ List projects [--my-projects] [--long] [--sort [:,:,..]] + [--tags [,,...]] [--tags-any [,,...]] + [--not-tags [,,...]] [--not-tags-any [,,...]] .. option:: --domain @@ -127,6 +137,30 @@ List projects multiple keys and directions can be specified --sort [:,:,..] +.. option:: --tags [,,...] + + List projects which have all given tag(s) + + .. versionadded:: 3 + +.. option:: --tags-any [,,...] + + List projects which have any given tag(s) + + .. versionadded:: 3 + +.. option:: --not-tags [,,...] + + Exclude projects which have all given tag(s) + + .. versionadded:: 3 + +.. option:: --not-tags-any [,,...] + + Exclude projects which have any given tag(s) + + .. versionadded:: 3 + project set ----------- @@ -141,6 +175,7 @@ Set project properties [--description ] [--enable | --disable] [--property ] + [--tag | --clear-tags | --remove-tags ] .. option:: --name -- cgit v1.2.1