Skip to content

Commit

Permalink
bring changes from #90
Browse files Browse the repository at this point in the history
  • Loading branch information
miparnisari committed Sep 8, 2023
1 parent 26ef850 commit eb1b100
Show file tree
Hide file tree
Showing 3 changed files with 1,026 additions and 191 deletions.
69 changes: 69 additions & 0 deletions docs/openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,12 @@
"items": {
"$ref": "#/definitions/TypeDefinition"
}
},
"conditions": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Condition"
}
}
},
"required": [
Expand Down Expand Up @@ -1113,6 +1119,47 @@
}
}
},
"Condition": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "A unique name for the condition"
},
"expression": {
"type": "string",
"description": "A Google CEL expression, expressed as a string."
},
"parameters": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ConditionParamTypeRef"
},
"description": "A map of parameter names to the parameter's defined type reference."
}
},
"required": [
"name",
"expression"
]
},
"ConditionParamTypeRef": {
"type": "object",
"properties": {
"typeName": {
"$ref": "#/definitions/TypeName"
},
"genericTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/ConditionParamTypeRef"
}
}
},
"required": [
"typeName"
]
},
"ContextualTupleKeys": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1508,6 +1555,10 @@
},
"wildcard": {
"$ref": "#/definitions/Wildcard"
},
"condition": {
"type": "string",
"description": "The name of a condition that is enforced over the allowed relation."
}
},
"description": "RelationReference represents a relation of a particular object type (e.g. 'document#viewer').",
Expand Down Expand Up @@ -1682,6 +1733,24 @@
"type"
]
},
"TypeName": {
"type": "string",
"enum": [
"TYPE_NAME_UNSPECIFIED",
"TYPE_NAME_ANY",
"TYPE_NAME_BOOL",
"TYPE_NAME_STRING",
"TYPE_NAME_INT",
"TYPE_NAME_UINT",
"TYPE_NAME_DOUBLE",
"TYPE_NAME_DURATION",
"TYPE_NAME_TIMESTAMP",
"TYPE_NAME_MAP",
"TYPE_NAME_LIST",
"TYPE_NAME_IPADDRESS"
],
"default": "TYPE_NAME_UNSPECIFIED"
},
"Users": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit eb1b100

Please sign in to comment.