GafaelfawrScope#

pydantic model phalanx.models.environments.GafaelfawrScope#

A Gafaelfawr scope and its associated groups.

Parameters:

data (Any) –

Show JSON schema
{
   "title": "GafaelfawrScope",
   "description": "A Gafaelfawr scope and its associated groups.",
   "type": "object",
   "properties": {
      "scope": {
         "title": "Scope",
         "type": "string"
      },
      "groups": {
         "title": "Groups",
         "type": "array",
         "items": {
            "anyOf": [
               {
                  "type": "string"
               },
               {
                  "$ref": "#/definitions/GafaelfawrGitHubGroup"
               }
            ]
         }
      }
   },
   "required": [
      "scope",
      "groups"
   ],
   "definitions": {
      "GafaelfawrGitHubTeam": {
         "title": "GafaelfawrGitHubTeam",
         "description": "Designates a GitHub team for use as a Gafaelfawr group.",
         "type": "object",
         "properties": {
            "organization": {
               "title": "Organization",
               "type": "string"
            },
            "team": {
               "title": "Team",
               "type": "string"
            }
         },
         "required": [
            "organization",
            "team"
         ]
      },
      "GafaelfawrGitHubGroup": {
         "title": "GafaelfawrGitHubGroup",
         "description": "A group based on a GitHub team.",
         "type": "object",
         "properties": {
            "github": {
               "$ref": "#/definitions/GafaelfawrGitHubTeam"
            }
         },
         "required": [
            "github"
         ]
      }
   }
}

Fields:
field groups: list[str | GafaelfawrGitHubGroup] [Required]#

List of groups that grant that scope.

field scope: str [Required]#

Name of the scope.

groups_as_rst()#

Format the groups as a list of reStructuredText elements.

Return type:

list[str]