コード例 #1
0
ファイル: list.py プロジェクト: aklomkaew/lets-help-123
 def Args(parser):
     flags.AddRegionArg(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace list services in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat(
         'table(firstof(id,metadata.name):label=SERVICE)')
コード例 #2
0
 def Args(parser):
   flags.AddRegionArg(parser)
   namespace_presentation = presentation_specs.ResourcePresentationSpec(
       '--namespace',
       resource_args.GetNamespaceResourceSpec(),
       'Namespace list configurations in.',
       required=True,
       prefixes=False)
   concept_parsers.ConceptParser([
       resource_args.CLUSTER_PRESENTATION,
       namespace_presentation]).AddToParser(parser)
   parser.display_info.AddFormat(
       'table(metadata.name:label=CONFIGURATION,'
       'status.latestCreatedRevisionName:label="LATEST REVISION",'
       'status.latestReadyRevisionName:label="LATEST READY REVISION")')
コード例 #3
0
 def Args(parser):
     flags.AddRegionArg(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace list routes in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat("""table(
 {ready_column},
 metadata.name:label=ROUTE)
 """.format(ready_column=pretty_print.READY_COLUMN))
コード例 #4
0
 def Args(parser):
     flags.AddServiceFlag(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace to list services in.',
         required=True,
         prefixes=False)
     flags.AddRegionArg(parser)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat(
         'table(name:label=REVISION,service_name:label=SERVICE,'
         'creation_timestamp.date("%Y-%m-%d %H:%M:%S %Z"):label=CREATED,ready)'
     )
コード例 #5
0
 def Args(parser):
     flags.AddRegionArgWithDefault(parser)
     namespace_presentation = presentation_specs.ResourcePresentationSpec(
         '--namespace',
         resource_args.GetNamespaceResourceSpec(),
         'Namespace list services in.',
         required=True,
         prefixes=False)
     concept_parsers.ConceptParser(
         [resource_args.CLUSTER_PRESENTATION,
          namespace_presentation]).AddToParser(parser)
     parser.display_info.AddFormat("""table(
     {ready_column},
     firstof(id,metadata.name):label=SERVICE,
     region:label=REGION,
     latest_created_revision:label="LATEST REVISION",
     serving_revisions.list():label="SERVING REVISION")""".format(
         ready_column=pretty_print.READY_COLUMN))