class_docstr: DatasourceConfigS3DelegatedAccessAllOf
class_docstr_tok: ["DatasourceConfigS3DelegatedAccessAllOf"]
docstr: Create an instance of DatasourceConfigS3DelegatedAccessAllOf from a dict
docstr_tok: ["Create","an","instance","of","DatasourceConfigS3DelegatedAccessAllOf","from","a","dict"]
code: def from_dict(
      cls, obj: dict
  ) -> DatasourceConfigS3DelegatedAccessAllOf:
      """Create an instance of DatasourceConfigS3DelegatedAccessAllOf from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return DatasourceConfigS3DelegatedAccessAllOf.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in DatasourceConfigS3DelegatedAccessAllOf) in the input: "
                  + str(obj)
              )
  
      _obj = DatasourceConfigS3DelegatedAccessAllOf.parse_obj(
          {
              "s3_region": obj.get("s3Region"),
              "s3_external_id": obj.get("s3ExternalId"),
              "s3_arn": obj.get("s3ARN"),
              "s3_server_side_encryption_kms_key": obj.get(
                  "s3ServerSideEncryptionKMSKey"
              ),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/datasource_config_s3_delegated_access_all_of.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, constr, validator
  from lightly.openapi_generated.swagger_client.models.s3_region import S3Region
label_desc: Use image node_id 8 for calling the DatasourceConfigS3DelegatedAccessAllOf obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, DatasourceConfigS3DelegatedAccessAllOf