class_docstr: Accepts file source parameters for conversion to request dict.
class_docstr_tok: ["Accepts","file","source","parameters","for","conversion","to","request","dict","."]
docstr: Generates a request dictionary using the parameters provided to the class.
docstr_tok: ["Generates","a","request","dictionary","using","the","parameters","provided","to","the","class","."]
code: def _to_request_dict(self):
      """Generates a request dictionary using the parameters provided to the class."""
      file_source_request = {"S3Uri": self.s3_uri}
      if self.content_digest is not None:
          file_source_request["ContentDigest"] = self.content_digest
      if self.content_type is not None:
          file_source_request["ContentType"] = self.content_type
      return file_source_request
  
file_path: sagemaker-python-sdk/src/sagemaker/model_metrics.py
imports: from __future__ import absolute_import
  from typing import Optional, Union
  from sagemaker.workflow.entities import PipelineVariable
label_desc: Use image node_id 2 for calling the FileSource obj's underlying member method code with example usage: obj._to_request_dict() and returns: file_source_request