text: # coding: utf-8
  
  from __future__ import annotations
  
  from datetime import date, datetime  # noqa: F401
  
  import re  # noqa: F401
  from typing import Any, Dict, List, Optional, Union, Literal  # noqa: F401
  
  from pydantic import AnyUrl, BaseModel, EmailStr, validator, Field, Extra  # noqa: F401
  from aries_cloudcontroller.model.attach_decorator import AttachDecorator
  from aries_cloudcontroller.model.v20_cred_format import V20CredFormat
  
  
  class V20CredRequest(BaseModel):
      """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  
      Do not edit the class manually.
  
      V20CredRequest - a model defined in OpenAPI
          formats: Acceptable attachment formats.
          requestsattach: Request attachments.
          id: Message identifier [Optional].
          type: Message type [Optional].
          comment: Human-readable comment [Optional].
      """
  
      formats: List[V20CredFormat]
      requestsattach: List[AttachDecorator] = Field(..., alias="requests~attach")
      id: Optional[str] = Field(None, alias="@id")
      type: Optional[str] = Field(None, alias="@type")
      comment: Optional[str] = None
  
      def __init__(
          self,
          *,
          formats: List[V20CredFormat] = None,
          requestsattach: List[AttachDecorator] = None,
          id: Optional[str] = None,
          type: Optional[str] = None,
          comment: Optional[str] = None,
          **kwargs,
      ):
          super().__init__(
              id=id,
              type=type,
              comment=comment,
              formats=formats,
              requestsattach=requestsattach,
              **kwargs,
          )
  
      class Config:
          allow_population_by_field_name = True
  
  
  V20CredRequest.update_forward_refs()
  