예제 #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.
    """
        resource_args.AddCloudSqlConnectionProfileResouceArgs(
            parser, 'to create')

        cp_flags.AddDisplayNameFlag(parser)
        cp_flags.AddProviderFlag(parser)
        cs_flags.AddActivationPolicylag(parser)
        cs_flags.AddAuthorizedNetworksFlag(parser)
        cs_flags.AddAutoStorageIncreaseFlag(parser)
        cs_flags.AddDatabaseVersionFlag(parser)
        cs_flags.AddDatabaseFlagsFlag(parser)
        cs_flags.AddDataDiskSizeFlag(parser)
        cs_flags.AddDataDiskTypeFlag(parser)
        cs_flags.AddEnableIpv4Flag(parser)
        cs_flags.AddPrivateNetworkFlag(parser)
        cs_flags.AddRequireSslFlag(parser)
        cs_flags.AddUserLabelsFlag(parser)
        cs_flags.AddStorageAutoResizeLimitFlag(parser)
        cs_flags.AddTierFlag(parser)
        cs_flags.AddZoneFlag(parser)
        flags.AddLabelsCreateFlags(parser)
예제 #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.
    """
    resource_args.AddConnectionProfileResourceArg(parser, 'to create')

    cp_flags.AddDisplayNameFlag(parser)
    cp_flags.AddUsernameFlag(parser, required=True)
    cp_flags.AddPasswordFlagGroup(parser, required=True)
    cp_flags.AddHostFlag(parser, required=True)
    cp_flags.AddPortFlag(parser, required=True)
    cp_flags.AddProviderFlag(parser)
    flags.AddLabelsCreateFlags(parser)
예제 #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.
    """
    resource_args.AddConnectionProfileResourceArg(parser, 'to update')

    cp_flags.AddDisplayNameFlag(parser)
    cp_flags.AddUsernameFlag(parser)
    cp_flags.AddPasswordFlagGroup(parser)
    cp_flags.AddHostFlag(parser)
    cp_flags.AddPortFlag(parser)
    cp_flags.AddCaCertificateFlag(parser)
    cp_flags.AddCertificateFlag(parser)
    cp_flags.AddPrivateKeyFlag(parser)
    cp_flags.AddCloudSQLInstanceFlag(parser)
    flags.AddLabelsUpdateFlags(parser)