class_docstr: Accepts metadata properties 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."""
      metadata_properties_request = dict()
      if self.commit_id:
          metadata_properties_request["CommitId"] = self.commit_id
      if self.repository:
          metadata_properties_request["Repository"] = self.repository
      if self.generated_by:
          metadata_properties_request["GeneratedBy"] = self.generated_by
      if self.project_id:
          metadata_properties_request["ProjectId"] = self.project_id
      return metadata_properties_request
  
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 MetadataProperties obj's underlying member method code with example usage: obj._to_request_dict() and returns: metadata_properties_request