示例#1
0
 def Args(parser):
   flags.AddBrokerArg(parser)
   namespace_presentation = presentation_specs.ResourcePresentationSpec(
       '--namespace',
       resource_args.GetCoreNamespaceResourceSpec(),
       'Namespace to create the Broker in.',
       required=True,
       prefixes=False)
   concept_parsers.ConceptParser([namespace_presentation]).AddToParser(parser)
示例#2
0
 def CommonArgs(parser):
     """Defines arguments common to all release tracks."""
     flags.AddServiceAccountFlag(parser)
     flags.AddBrokerArg(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetCoreNamespaceResourceSpec(),
         'Namespace to create the Broker in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser([namespace_presentation
                                    ]).AddToParser(parser)