old_contents: # Lint as: python2, python3
  # Copyright 2020 Google LLC. All Rights Reserved.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  """Command-line placeholders for use in container component definitions."""
  
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  from typing import List, Text, Union
  
  from tfx.utils import json_utils
  
  
  class InputValuePlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the value of the input argument.
  
    Represents a placeholder that will be replaced at runtime with the string
    value of the input argument of an execution property.
    """
  
    def __init__(self, input_name: Text):
      self.input_name = input_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.input_name == other.input_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  class InputUriPlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the URI of the input artifact argument.
  
    Represents a placeholder that will be replaced at runtime with the URI
    of the input artifact argument data.
    """
  
    def __init__(self, input_name: Text):
      self.input_name = input_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.input_name == other.input_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  class OutputUriPlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the URI of the output artifact argument.
  
    Represents a placeholder that will be replaced at runtime with the URI
    for the output artifact data.
    """
  
    def __init__(self, output_name: Text):
      self.output_name = output_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.output_name == other.output_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  
  class ConcatPlaceholder(object):
    """Represents a placeholder for result of concatenation of multiple parts.
  
    Represents a placeholder that will be replaced at runtime with a single string
    containing the concatenated parts.
    """
  
    def __init__(self, items: List['CommandlineArgumentType']):
      self.items = items
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.items == other.items
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  
  CommandlineArgumentType = Union[
      Text,
      InputValuePlaceholder,
      InputUriPlaceholder,
      OutputUriPlaceholder,
      ConcatPlaceholder,
  ]
  
new_contents: # Lint as: python2, python3
  # Copyright 2020 Google LLC. All Rights Reserved.
  #
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  #
  #     http://www.apache.org/licenses/LICENSE-2.0
  #
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  """Command-line placeholders for use in container component definitions."""
  
  from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  
  from typing import List, Text, Union
  
  from tfx.utils import json_utils
  
  
  class InputValuePlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the value of the input argument.
  
    Represents a placeholder that will be replaced at runtime with the string
    value of the input argument of an execution property.
    """
  
    def __init__(self, input_name: Text):
      self.input_name = input_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.input_name == other.input_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  class InputUriPlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the URI of the input artifact argument.
  
    Represents a placeholder that will be replaced at runtime with the URI
    of the input artifact argument data.
    """
  
    def __init__(self, input_name: Text):
      self.input_name = input_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.input_name == other.input_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  class OutputUriPlaceholder(json_utils.Jsonable):
    """Represents a placeholder for the URI of the output artifact argument.
  
    Represents a placeholder that will be replaced at runtime with the URI
    for the output artifact data.
    """
  
    def __init__(self, output_name: Text):
      self.output_name = output_name
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.output_name == other.output_name
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  class ConcatPlaceholder(object):
    """Represents a placeholder for result of concatenation of multiple parts.
  
    Represents a placeholder that will be replaced at runtime with a single string
    containing the concatenated parts.
    """
  
    def __init__(self, items: List['CommandlineArgumentType']):
      self.items = items
  
    def __eq__(self, other):
      return isinstance(other, self.__class__) and self.items == other.items
  
    def __ne__(self, other):
      return not self.__eq__(other)
  
  
  CommandlineArgumentType = Union[
      Text,
      InputValuePlaceholder,
      InputUriPlaceholder,
      OutputUriPlaceholder,
      ConcatPlaceholder,
  ]
  
subject: Update placeholders.py