Exemplo n.º 1
0
    def CommonArgs(parser):
        # Flags not specific to any platform
        route_presentation = presentation_specs.ResourcePresentationSpec(
            'ROUTE',
            resource_args.GetRouteResourceSpec(),
            'Route to describe.',
            required=True,
            prefixes=False)
        concept_parsers.ConceptParser([route_presentation]).AddToParser(parser)

        parser.display_info.AddFormat('yaml')
Exemplo n.º 2
0
 def CommonArgs(parser):
     flags.AddRegionArg(parser)
     route_presentation = presentation_specs.ResourcePresentationSpec(
         'ROUTE',
         resource_args.GetRouteResourceSpec(),
         'Route to describe.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          route_presentation]).AddToParser(parser)
     parser.display_info.AddFormat('yaml')
Exemplo n.º 3
0
 def CommonArgs(parser):
     # Flags specific to managed CR
     managed_group = flags.GetManagedArgGroup(parser)
     flags.AddRegionArg(managed_group)
     # Flags specific to CRoGKE
     gke_group = flags.GetGkeArgGroup(parser)
     concept_parsers.ConceptParser([resource_args.CLUSTER_PRESENTATION
                                    ]).AddToParser(gke_group)
     # Flags not specific to any platform
     route_presentation = presentation_specs.ResourcePresentationSpec(
         'ROUTE',
         resource_args.GetRouteResourceSpec(),
         'Route to describe.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser([route_presentation]).AddToParser(parser)
     parser.display_info.AddFormat('yaml')