Exemple #1
0
    def Args(cls, parser):
        parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
        cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument()
        cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='create')

        parser.add_argument(
            '--description',
            help='An optional, textual description for the SSL certificate.')

        parser.add_argument('--certificate',
                            required=True,
                            metavar='LOCAL_FILE_PATH',
                            help="""\
        The path to a local certificate file. The certificate must be in PEM
        format.  The certificate chain must be no greater than 5 certs long. The
        chain must include at least one intermediate cert.
        """)

        parser.add_argument('--private-key',
                            required=True,
                            metavar='LOCAL_FILE_PATH',
                            help="""\
        The path to a local private key file. The private key must be in PEM
        format and must use RSA or ECDSA encryption.
        """)

        parser.display_info.AddCacheUpdater(flags.SslCertificatesCompleter)
Exemple #2
0
  def Args(cls, parser):
    cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument()
    cls.SSL_CERTIFICATE_ARG.AddArgument(parser)

    parser.add_argument(
        '--description',
        help='An optional, textual description for the SSL certificate.')

    certificate = parser.add_argument(
        '--certificate',
        required=True,
        metavar='LOCAL_FILE_PATH',
        help='The path to a local certificate file.')
    certificate.detailed_help = """\
        The path to a local certificate file. The certificate must be in PEM
        format.  The certificate chain must be no greater than 5 certs long. The
        chain must include at least one intermediate cert.
        """

    private_key = parser.add_argument(
        '--private-key',
        required=True,
        metavar='LOCAL_FILE_PATH',
        help='The path to a local private key file.')
    private_key.detailed_help = """\
Exemple #3
0
 def Args(parser):
     Describe.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
         include_l7_internal_load_balancing=True,
         global_help_text='(Default) If set, the SSL certificate is global.'
     )
     Describe.SSL_CERTIFICATE_ARG.AddArgument(parser,
                                              operation_type='describe')
Exemple #4
0
 def Args(cls, parser):
   parser.display_info.AddFormat(flags.DEFAULT_LIST_FORMAT)
   cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument()
   cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='create')
   _Args(
       parser,
       include_l7_internal_load_balancing=False,
       support_managed_certs=False)
Exemple #5
0
  def Args(cls, parser):
    parser.display_info.AddFormat(flags.ALPHA_LIST_FORMAT)
    cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument()
    cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='create')

    parser.add_argument(
        '--description',
        help='An optional, textual description for the SSL certificate.')

    managed_or_not = parser.add_group(
        mutex=True,
        required=True,
        help='Flags for managed or self-managed certificate. ')

    managed_or_not.add_argument(
        '--domains',
        metavar='DOMAIN',
        type=arg_parsers.ArgList(min_length=1),
        default=[],
        help="""\
        List of domains to create a managed certificate for.
        """)

    not_managed = managed_or_not.add_group('Flags for self-managed certificate')

    not_managed.add_argument(
        '--certificate',
        metavar='LOCAL_FILE_PATH',
        required=True,
        help="""\
        The path to a local certificate file to create a self-managed
        certificate. The certificate must be in PEM format. The certificate
        chain must be no greater than 5 certs long. The chain must include at
        least one intermediate cert.
        """)

    not_managed.add_argument(
        '--private-key',
        metavar='LOCAL_FILE_PATH',
        required=True,
        help="""\
        The path to a local private key file. The private key must be in PEM
        format and must use RSA or ECDSA encryption.
        """)

    parser.display_info.AddCacheUpdater(flags.SslCertificatesCompleter)
Exemple #6
0
 def Args(cls, parser):
     cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
         plural=True, include_alpha=True)
     cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='delete')
     parser.display_info.AddCacheUpdater(
         flags.SslCertificatesCompleterAlpha)
Exemple #7
0
 def Args(parser):
     Delete.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(plural=True)
     Delete.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='delete')
     parser.display_info.AddCacheUpdater(flags.SslCertificatesCompleter)
Exemple #8
0
 def Args(parser):
     Delete.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(plural=True)
     Delete.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='delete')
Exemple #9
0
 def Args(cls, parser):
     cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
         plural=True, include_l7_internal_load_balancing=True)
     cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='delete')
     parser.display_info.AddCacheUpdater(flags.SslCertificatesCompleterBeta)
Exemple #10
0
 def Args(cls, parser):
   cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
       include_l7_internal_load_balancing=True)
   cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='describe')
Exemple #11
0
 def Args(parser):
   Describe.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument()
   Describe.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='describe')
 def Args(cls, parser):
     cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
         include_alpha=True)
     cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='describe')
Exemple #13
0
 def Args(cls, parser):
     parser.display_info.AddFormat(flags.ALPHA_LIST_FORMAT)
     cls.SSL_CERTIFICATE_ARG = flags.SslCertificateArgument(
         include_alpha=True)
     cls.SSL_CERTIFICATE_ARG.AddArgument(parser, operation_type='create')
     _Args(parser, include_alpha=True, support_managed_certs=True)