com.atproto.admin.update_subject_status#

pydantic model atproto.xrpc_client.models.com.atproto.admin.update_subject_status.Data#

Bases: DataModelBase

Input data model for com.atproto.admin.updateSubjectStatus.

Show JSON schema
{
   "title": "Data",
   "description": "Input data model for :obj:`com.atproto.admin.updateSubjectStatus`.",
   "type": "object",
   "properties": {
      "subject": {
         "discriminator": {
            "mapping": {
               "com.atproto.admin.defs#repoBlobRef": "#/$defs/RepoBlobRef",
               "com.atproto.admin.defs#repoRef": "#/$defs/RepoRef",
               "com.atproto.repo.strongRef": "#/$defs/Main"
            },
            "propertyName": "$type"
         },
         "oneOf": [
            {
               "$ref": "#/$defs/RepoRef"
            },
            {
               "$ref": "#/$defs/Main"
            },
            {
               "$ref": "#/$defs/RepoBlobRef"
            }
         ],
         "title": "Subject"
      },
      "takedown": {
         "anyOf": [
            {
               "$ref": "#/$defs/StatusAttr"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.repo.strongRef`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.repo.strongRef",
               "default": "com.atproto.repo.strongRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "uri"
         ],
         "title": "Main",
         "type": "object"
      },
      "RepoBlobRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "did": {
               "title": "Did",
               "type": "string"
            },
            "recordUri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Recorduri"
            },
            "$type": {
               "const": "com.atproto.admin.defs#repoBlobRef",
               "default": "com.atproto.admin.defs#repoBlobRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "did"
         ],
         "title": "RepoBlobRef",
         "type": "object"
      },
      "RepoRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "did": {
               "title": "Did",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.admin.defs#repoRef",
               "default": "com.atproto.admin.defs#repoRef",
               "title": "$Type"
            }
         },
         "required": [
            "did"
         ],
         "title": "RepoRef",
         "type": "object"
      },
      "StatusAttr": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "applied": {
               "title": "Applied",
               "type": "boolean"
            },
            "ref": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Ref"
            },
            "$type": {
               "const": "com.atproto.admin.defs#statusAttr",
               "default": "com.atproto.admin.defs#statusAttr",
               "title": "$Type"
            }
         },
         "required": [
            "applied"
         ],
         "title": "StatusAttr",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "subject"
   ]
}

Fields:
field subject: Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef][Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef]] [Required]#
field takedown: Optional[models.ComAtprotoAdminDefs.StatusAttr] = None#

Takedown.

class atproto.xrpc_client.models.com.atproto.admin.update_subject_status.DataDict#

Bases: TypedDict

subject: Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef][Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef]]#
takedown: typing_extensions.NotRequired[Optional[models.ComAtprotoAdminDefs.StatusAttr]]#

Takedown.

pydantic model atproto.xrpc_client.models.com.atproto.admin.update_subject_status.Response#

Bases: ResponseModelBase

Output data model for com.atproto.admin.updateSubjectStatus.

Show JSON schema
{
   "title": "Response",
   "description": "Output data model for :obj:`com.atproto.admin.updateSubjectStatus`.",
   "type": "object",
   "properties": {
      "subject": {
         "discriminator": {
            "mapping": {
               "com.atproto.admin.defs#repoBlobRef": "#/$defs/RepoBlobRef",
               "com.atproto.admin.defs#repoRef": "#/$defs/RepoRef",
               "com.atproto.repo.strongRef": "#/$defs/Main"
            },
            "propertyName": "$type"
         },
         "oneOf": [
            {
               "$ref": "#/$defs/RepoRef"
            },
            {
               "$ref": "#/$defs/Main"
            },
            {
               "$ref": "#/$defs/RepoBlobRef"
            }
         ],
         "title": "Subject"
      },
      "takedown": {
         "anyOf": [
            {
               "$ref": "#/$defs/StatusAttr"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "Main": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.repo.strongRef`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "uri": {
               "title": "Uri",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.repo.strongRef",
               "default": "com.atproto.repo.strongRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "uri"
         ],
         "title": "Main",
         "type": "object"
      },
      "RepoBlobRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "cid": {
               "title": "Cid",
               "type": "string"
            },
            "did": {
               "title": "Did",
               "type": "string"
            },
            "recordUri": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Recorduri"
            },
            "$type": {
               "const": "com.atproto.admin.defs#repoBlobRef",
               "default": "com.atproto.admin.defs#repoBlobRef",
               "title": "$Type"
            }
         },
         "required": [
            "cid",
            "did"
         ],
         "title": "RepoBlobRef",
         "type": "object"
      },
      "RepoRef": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "did": {
               "title": "Did",
               "type": "string"
            },
            "$type": {
               "const": "com.atproto.admin.defs#repoRef",
               "default": "com.atproto.admin.defs#repoRef",
               "title": "$Type"
            }
         },
         "required": [
            "did"
         ],
         "title": "RepoRef",
         "type": "object"
      },
      "StatusAttr": {
         "additionalProperties": false,
         "description": "Definition model for :obj:`com.atproto.admin.defs`.",
         "properties": {
            "applied": {
               "title": "Applied",
               "type": "boolean"
            },
            "ref": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Ref"
            },
            "$type": {
               "const": "com.atproto.admin.defs#statusAttr",
               "default": "com.atproto.admin.defs#statusAttr",
               "title": "$Type"
            }
         },
         "required": [
            "applied"
         ],
         "title": "StatusAttr",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "subject"
   ]
}

Fields:
field subject: Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef][Union[models.ComAtprotoAdminDefs.RepoRef, models.ComAtprotoRepoStrongRef.Main, models.ComAtprotoAdminDefs.RepoBlobRef]] [Required]#
field takedown: Optional[models.ComAtprotoAdminDefs.StatusAttr] = None#

Takedown.