def Run(self, args):
     if flags.ShouldUseGen2():
         if not args.IsSpecified('format'):
             args.format = _DISPLAY_INFO_V2_FORMAT
         return command_v2.Run(args, self.ReleaseTrack())
     else:
         if not args.IsSpecified('format'):
             args.format = _DISPLAY_INFO_V1_FORMAT
         return command_v1.Run(args)
    def Run(self, args):
        """Runs the command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The specified function with its description and configured filter.
    """
        if flags.ShouldUseGen2():
            return command_v2.Run(args, self.ReleaseTrack())
        else:
            return command_v1.Run(args)
Example #3
0
    def Run(self, args):
        """Runs the command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The updated IAM policy.
    """
        if flags.ShouldUseGen2():
            return command_v2.Run(args, self.ReleaseTrack())
        else:
            return command_v1.Run(args)
    def Run(self, args):
        """This is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      List of cloudfunctions_v1.Location or cloudfunctions_v2alpha.Location:
        List of GCF regions

    Raises:
      FunctionsError: If the user doesn't confirm on prompt.
    """
        if flags.ShouldUseGen2():
            return command_v2.Run(args, self.ReleaseTrack())
        else:
            return command_v1.Run(args)
Example #5
0
 def Run(self, args):
     if flags.ShouldUseGen2():
         return command_v2.Run(args, self.ReleaseTrack())
     else:
         return command_v1.Run(args)