def Args(parser):
   """Args is called by calliope to gather arguments for this command."""
   AddBaseArgs(parser, is_alpha=True)
   flags.AddLocationGroup(parser)
   AddBetaArgs(parser)
   AddAlphaArgs(parser)
   flags.AddDatabaseVersion(parser, restrict_choices=False)
示例#2
0
 def Args(parser):
     """Args is called by calliope to gather arguments for this command."""
     AddBaseArgs(parser)
     flags.AddZone(
         parser,
         help_text=(
             'Preferred Compute Engine zone (e.g. us-central1-a, '
             'us-central1-b, etc.). WARNING: Instance may be restarted.'))
     flags.AddDatabaseVersion(parser, support_default_version=False)
示例#3
0
    def Args(parser):
        """Args is called by calliope to gather arguments for this command.

    Please add arguments in alphabetical order except for no- or a clear-
    pair for that argument which can follow the argument itself.

    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.
    """
        _AddCommonFlags(parser)
        flags.AddDatabaseVersion(parser, restrict_choices=False)
示例#4
0
 def Args(parser):
     """Args is called by calliope to gather arguments for this command."""
     AddBaseArgs(parser)
     AddBetaArgs(parser)
     flags.AddDatabaseVersion(parser, restrict_choices=False)
     kms_flag_overrides = {
         'kms-key': '--disk-encryption-key',
         'kms-keyring': '--disk-encryption-key-keyring',
         'kms-location': '--disk-encryption-key-location',
         'kms-project': '--disk-encryption-key-project'
     }
     permission_info = (
         'Please ensure that you have the '
         '`resourcemanager.projects.setIamPolicy` permission for the project '
         'associated with the key')
     kms_resource_args.AddKmsKeyResourceArg(
         parser,
         'instance',
         flag_overrides=kms_flag_overrides,
         permission_info=permission_info)
示例#5
0
 def Args(parser):
     """Args is called by calliope to gather arguments for this command."""
     AddBaseArgs(parser)
     AddBetaArgs(parser)
     flags.AddDatabaseVersion(parser, restrict_choices=False)
示例#6
0
 def Args(parser):
     """Args is called by calliope to gather arguments for this command."""
     AddBaseArgs(parser)
     flags.AddDatabaseVersion(parser)