Beispiel #1
0
  def Args(parser):
    """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
    common_flags.producer_service_flag(suffix='to describe').AddToParser(parser)
Beispiel #2
0
  def Args(parser):
    """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
    common_flags.producer_service_flag(suffix='to delete').AddToParser(parser)

    base.ASYNC_FLAG.AddToParser(parser)
    parser.display_info.AddCacheUpdater(None)
Beispiel #3
0
  def Args(parser):
    """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
    common_flags.producer_service_flag(
        flag_name='--service',
        suffix='from which to retrieve the configuration.').AddToParser(parser)

    parser.add_argument('config_id',
                        help='The configuration ID to retrieve.')
Beispiel #4
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        common_flags.producer_service_flag(
            suffix='for which to list operations',
            flag_name='--service').AddToParser(parser)
        base.FILTER_FLAG.RemoveFromParser(parser)
        parser.add_argument('--filter',
                            metavar='EXPRESSION',
                            help=_FILTER_HELP)
        parser.display_info.AddFormat(
            'table(name, done, metadata.startTime.date(tz=LOCAL))')
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        service_flag = common_flags.producer_service_flag(
            suffix='for which to check the IAM policy')
        service_flag.AddToParser(parser)
Beispiel #6
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        service_flag = common_flags.producer_service_flag(
            suffix='whose IAM policy is to be described')
        service_flag.AddToParser(parser)
        base.URI_FLAG.RemoveFromParser(parser)
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Args:
      parser: An argparse parser that you can use to add arguments that go
          on the command line after this command. Positional arguments are
          allowed.
    """
        service_flag = common_flags.producer_service_flag(
            suffix='to which the member is to be added')
        service_flag.AddToParser(parser)

        iam_util.AddArgsForAddIamPolicyBinding(parser)