edutap.wallet_google.models.datatypes.general.Image#

pydantic model edutap.wallet_google.models.datatypes.general.Image#

see: https://developers.google.com/wallet/generic/rest/v1/Image

Show JSON schema
{
   "title": "Image",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/Image",
   "type": "object",
   "properties": {
      "kind": {
         "default": null,
         "deprecated": true,
         "title": "Kind",
         "type": "string"
      },
      "sourceUri": {
         "$ref": "#/$defs/ImageUri"
      },
      "contentDescription": {
         "anyOf": [
            {
               "$ref": "#/$defs/LocalizedString"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "ImageUri": {
         "additionalProperties": false,
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/Image#imageuri",
         "properties": {
            "uri": {
               "format": "uri",
               "minLength": 1,
               "title": "Uri",
               "type": "string"
            },
            "description": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "deprecated": true,
               "title": "Description"
            },
            "localizedDescription": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/LocalizedString"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "deprecated": true
            }
         },
         "required": [
            "uri"
         ],
         "title": "ImageUri",
         "type": "object"
      },
      "LocalizedString": {
         "additionalProperties": false,
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString",
         "properties": {
            "kind": {
               "default": null,
               "deprecated": true,
               "title": "Kind",
               "type": "string"
            },
            "translatedValues": {
               "items": {
                  "$ref": "#/$defs/TranslatedString"
               },
               "title": "Translatedvalues",
               "type": "array"
            },
            "defaultValue": {
               "$ref": "#/$defs/TranslatedString"
            }
         },
         "required": [
            "defaultValue"
         ],
         "title": "LocalizedString",
         "type": "object"
      },
      "TranslatedString": {
         "additionalProperties": false,
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring",
         "properties": {
            "kind": {
               "default": null,
               "deprecated": true,
               "title": "Kind",
               "type": "string"
            },
            "language": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Language"
            },
            "value": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Value"
            }
         },
         "title": "TranslatedString",
         "type": "object"
      }
   },
   "additionalProperties": false,
   "required": [
      "sourceUri"
   ]
}

Config:
  • extra: str = forbid

Fields:
field contentDescription: LocalizedString | None = None#
field sourceUri: ImageUri [Required]#
kind: Annotated[str, Field(deprecated=deprecated('Attribute "kind" was used in the past to identify resources but is now deprecated.'), exclude=True, default=None)]#

Read-only data descriptor used to emit a runtime deprecation warning before accessing a deprecated field.

Attributes:

msg: The deprecation message to be emitted. wrapped_property: The property instance if the deprecated field is a computed field, or None. field_name: The name of the field being deprecated.