예제 #1
0
 def Args(parser):
     """Register flags for this command."""
     read_logs_lib.LogFilterPositionalArgs(parser)
     read_logs_lib.LoggingReadArgs(parser)
     view_group = parser.add_argument_group(
         help='These arguments are used in conjunction with the parent to '
         'construct a view resource.')
     view_group.add_argument(
         '--location',
         required=True,
         metavar='LOCATION',
         help='Location of the bucket. If this argument is provided then '
         '`--bucket` and `--view` must also be specified.')
     view_group.add_argument(
         '--bucket',
         required=True,
         help='Id of the bucket. If this argument is provided then '
         '`--location` and `--view` must also be specified.')
     view_group.add_argument(
         '--view',
         required=True,
         help='Id of the view. If this argument is provided then '
         '`--location` and `--bucket` must also be specified.')
     util.AddParentArgs(parser, 'Read log entries')
예제 #2
0
 def Args(parser):
     parser.add_argument('service', help='Name for a Cloud Run service.')
     read_logs_lib.LogFilterArgs(parser)
     read_logs_lib.LoggingReadArgs(parser)
예제 #3
0
 def Args(parser):
     read_logs_lib.LogFilterArgs(parser)
     read_logs_lib.LoggingReadArgs(parser)
     parser.add_argument('revision', help='Name for a Cloud Run revision.')