コード例 #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.service_flag(suffix='to describe').AddToParser(parser)
コード例 #2
0
ファイル: describe.py プロジェクト: pdbradley/dotfiles
  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.service_flag(suffix='to describe').AddToParser(parser)
コード例 #3
0
ファイル: describe.py プロジェクト: pdbradley/dotfiles
  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.service_flag(
        suffix='from which to retrieve the configuration').AddToParser(parser)

    parser.add_argument('--version',
                        help='The particular version for which to retrieve '
                             'the configuration. Defaults to the active '
                             'version.')
コード例 #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.service_flag(
            suffix='from which to retrieve the configuration').AddToParser(
                parser)

        parser.add_argument(
            '--version',
            help='The particular version for which to retrieve '
            'the configuration. Defaults to the active '
            'version.')
コード例 #5
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.service_flag(
        suffix='for which to check the IAM policy')
    service_flag.AddToParser(parser)
コード例 #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.service_flag(
            suffix='for which to check the IAM policy')
        service_flag.AddToParser(parser)
コード例 #7
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.service_flag(
            suffix='to which the member is to be added')
        service_flag.AddToParser(parser)

        iam_util.AddArgsForAddIamPolicyBinding(parser)
コード例 #8
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.service_flag(
            suffix='from which the member is to be removed')
        service_flag.AddToParser(parser)

        parser.add_argument('--member',
                            required=True,
                            help='The member to remove from the binding.')
コード例 #9
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.service_flag(
        suffix='from which the member is to be removed')
    service_flag.AddToParser(parser)

    parser.add_argument(
        '--member', required=True,
        help='The member to remove from the binding.')
コード例 #10
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.service_flag(
            suffix='for which to check the IAM policy')
        service_flag.AddToParser(parser)

        parser.add_argument('--member',
                            required=True,
                            help='The member for which to check permissions.')