Skip to content

Admin Config O Auth Dto

immichpy.client.generated.models.admin_config_o_auth_dto.AdminConfigOAuthDto pydantic-model

Bases: BaseModel

AdminConfigOAuthDto

Show JSON schema:
{
  "$defs": {
    "OAuthTokenEndpointAuthMethod": {
      "description": "OAuth token endpoint auth method",
      "enum": [
        "client_secret_post",
        "client_secret_basic"
      ],
      "title": "OAuthTokenEndpointAuthMethod",
      "type": "string"
    }
  },
  "description": "AdminConfigOAuthDto",
  "properties": {
    "accountManagementUrl": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": "",
      "description": "Account management URL",
      "title": "Accountmanagementurl"
    },
    "allowInsecureRequests": {
      "description": "Allow insecure requests",
      "title": "Allowinsecurerequests",
      "type": "boolean"
    },
    "autoLaunch": {
      "description": "Auto launch",
      "title": "Autolaunch",
      "type": "boolean"
    },
    "autoRegister": {
      "description": "Auto register",
      "title": "Autoregister",
      "type": "boolean"
    },
    "buttonText": {
      "description": "Button text",
      "title": "Buttontext",
      "type": "string"
    },
    "clientId": {
      "description": "Client ID",
      "title": "Clientid",
      "type": "string"
    },
    "clientSecret": {
      "description": "Client secret",
      "title": "Clientsecret",
      "type": "string"
    },
    "defaultStorageQuota": {
      "anyOf": [
        {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "description": "Default storage quota",
      "title": "Defaultstoragequota"
    },
    "enabled": {
      "description": "Enabled",
      "title": "Enabled",
      "type": "boolean"
    },
    "endSessionEndpoint": {
      "description": "End session endpoint",
      "title": "Endsessionendpoint",
      "type": "string"
    },
    "issuerUrl": {
      "description": "Issuer URL",
      "title": "Issuerurl",
      "type": "string"
    },
    "mobileOverrideEnabled": {
      "description": "Mobile override enabled",
      "title": "Mobileoverrideenabled",
      "type": "boolean"
    },
    "mobileRedirectUri": {
      "description": "Mobile redirect URI (set to empty string to disable)",
      "title": "Mobileredirecturi",
      "type": "string"
    },
    "profileSigningAlgorithm": {
      "description": "Profile signing algorithm",
      "title": "Profilesigningalgorithm",
      "type": "string"
    },
    "prompt": {
      "description": "OAuth prompt parameter (e.g. select_account, login, consent)",
      "title": "Prompt",
      "type": "string"
    },
    "roleClaim": {
      "description": "Role claim",
      "title": "Roleclaim",
      "type": "string"
    },
    "scope": {
      "description": "Scope",
      "title": "Scope",
      "type": "string"
    },
    "signingAlgorithm": {
      "description": "Signing algorithm",
      "title": "Signingalgorithm",
      "type": "string"
    },
    "storageLabelClaim": {
      "description": "Storage label claim",
      "title": "Storagelabelclaim",
      "type": "string"
    },
    "storageQuotaClaim": {
      "description": "Storage quota claim",
      "title": "Storagequotaclaim",
      "type": "string"
    },
    "timeout": {
      "description": "Timeout",
      "maximum": 9007199254740991,
      "minimum": 1,
      "title": "Timeout",
      "type": "integer"
    },
    "tokenEndpointAuthMethod": {
      "$ref": "#/$defs/OAuthTokenEndpointAuthMethod"
    }
  },
  "required": [
    "allowInsecureRequests",
    "autoLaunch",
    "autoRegister",
    "buttonText",
    "clientId",
    "clientSecret",
    "defaultStorageQuota",
    "enabled",
    "endSessionEndpoint",
    "issuerUrl",
    "mobileOverrideEnabled",
    "mobileRedirectUri",
    "profileSigningAlgorithm",
    "prompt",
    "roleClaim",
    "scope",
    "signingAlgorithm",
    "storageLabelClaim",
    "storageQuotaClaim",
    "timeout",
    "tokenEndpointAuthMethod"
  ],
  "title": "AdminConfigOAuthDto",
  "type": "object"
}

Config:

  • validate_by_name: True
  • validate_by_alias: True
  • validate_assignment: True
  • protected_namespaces: ()

Fields:

account_management_url pydantic-field

account_management_url: Optional[StrictStr] = ''

Account management URL

allow_insecure_requests pydantic-field

allow_insecure_requests: StrictBool

Allow insecure requests

auto_launch pydantic-field

auto_launch: StrictBool

Auto launch

auto_register pydantic-field

auto_register: StrictBool

Auto register

button_text pydantic-field

button_text: StrictStr

Button text

client_id pydantic-field

client_id: StrictStr

Client ID

client_secret pydantic-field

client_secret: StrictStr

Client secret

default_storage_quota pydantic-field

default_storage_quota: Optional[Annotated[int, Field(le=9007199254740991, strict=True, ge=0)]]

Default storage quota

enabled pydantic-field

enabled: StrictBool

Enabled

end_session_endpoint pydantic-field

end_session_endpoint: StrictStr

End session endpoint

issuer_url pydantic-field

issuer_url: StrictStr

Issuer URL

mobile_override_enabled pydantic-field

mobile_override_enabled: StrictBool

Mobile override enabled

mobile_redirect_uri pydantic-field

mobile_redirect_uri: StrictStr

Mobile redirect URI (set to empty string to disable)

profile_signing_algorithm pydantic-field

profile_signing_algorithm: StrictStr

Profile signing algorithm

prompt pydantic-field

prompt: StrictStr

OAuth prompt parameter (e.g. select_account, login, consent)

role_claim pydantic-field

role_claim: StrictStr

Role claim

scope pydantic-field

scope: StrictStr

Scope

signing_algorithm pydantic-field

signing_algorithm: StrictStr

Signing algorithm

storage_label_claim pydantic-field

storage_label_claim: StrictStr

Storage label claim

storage_quota_claim pydantic-field

storage_quota_claim: StrictStr

Storage quota claim

timeout pydantic-field

timeout: Annotated[int, Field(le=9007199254740991, strict=True, ge=1)]

Timeout

from_dict classmethod

from_dict(obj: Optional[Dict[str, Any]]) -> Optional[Self]

Create an instance of AdminConfigOAuthDto from a dict

Source code in immichpy/client/generated/models/admin_config_o_auth_dto.py
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
    """Create an instance of AdminConfigOAuthDto from a dict"""
    if obj is None:
        return None

    if not isinstance(obj, dict):
        return cls.model_validate(obj)

    _obj = cls.model_validate(
        {
            "accountManagementUrl": obj.get("accountManagementUrl")
            if obj.get("accountManagementUrl") is not None
            else "",
            "allowInsecureRequests": obj.get("allowInsecureRequests"),
            "autoLaunch": obj.get("autoLaunch"),
            "autoRegister": obj.get("autoRegister"),
            "buttonText": obj.get("buttonText"),
            "clientId": obj.get("clientId"),
            "clientSecret": obj.get("clientSecret"),
            "defaultStorageQuota": obj.get("defaultStorageQuota"),
            "enabled": obj.get("enabled"),
            "endSessionEndpoint": obj.get("endSessionEndpoint"),
            "issuerUrl": obj.get("issuerUrl"),
            "mobileOverrideEnabled": obj.get("mobileOverrideEnabled"),
            "mobileRedirectUri": obj.get("mobileRedirectUri"),
            "profileSigningAlgorithm": obj.get("profileSigningAlgorithm"),
            "prompt": obj.get("prompt"),
            "roleClaim": obj.get("roleClaim"),
            "scope": obj.get("scope"),
            "signingAlgorithm": obj.get("signingAlgorithm"),
            "storageLabelClaim": obj.get("storageLabelClaim"),
            "storageQuotaClaim": obj.get("storageQuotaClaim"),
            "timeout": obj.get("timeout"),
            "tokenEndpointAuthMethod": obj.get("tokenEndpointAuthMethod"),
        }
    )
    return _obj

from_json classmethod

from_json(json_str: str) -> Optional[Self]

Create an instance of AdminConfigOAuthDto from a JSON string

Source code in immichpy/client/generated/models/admin_config_o_auth_dto.py
124
125
126
127
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
    """Create an instance of AdminConfigOAuthDto from a JSON string"""
    return cls.from_dict(json.loads(json_str))

to_dict

to_dict() -> Dict[str, Any]

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
Source code in immichpy/client/generated/models/admin_config_o_auth_dto.py
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
def to_dict(self) -> Dict[str, Any]:
    """Return the dictionary representation of the model using alias.

    This has the following differences from calling pydantic's
    `self.model_dump(by_alias=True)`:

    * `None` is only added to the output dict for nullable fields that
      were set at model initialization. Other fields with value `None`
      are ignored.
    """
    excluded_fields: Set[str] = set([])

    _dict = self.model_dump(
        by_alias=True,
        exclude=excluded_fields,
        exclude_none=True,
    )
    # set to None if default_storage_quota (nullable) is None
    # and model_fields_set contains the field
    if (
        self.default_storage_quota is None
        and "default_storage_quota" in self.model_fields_set
    ):
        _dict["defaultStorageQuota"] = None

    return _dict

to_json

to_json() -> str

Returns the JSON representation of the model using alias

Source code in immichpy/client/generated/models/admin_config_o_auth_dto.py
120
121
122
def to_json(self) -> str:
    """Returns the JSON representation of the model using alias"""
    return json.dumps(to_jsonable_python(self.to_dict()))

to_str

to_str() -> str

Returns the string representation of the model using alias

Source code in immichpy/client/generated/models/admin_config_o_auth_dto.py
116
117
118
def to_str(self) -> str:
    """Returns the string representation of the model using alias"""
    return pprint.pformat(self.model_dump(by_alias=True))