Пример #1
0
 def ArgsVersioned(parser, release_track):
   api_version = _API_VERSION_PER_TRACK.get(release_track, 'v1')
   feature_mask = _FEATURE_MASK_PER_TRACK.get(release_track, {})
   levels.AddResourceArg(parser, 'to update')
   levels.AddLevelArgs(parser)
   levels.AddLevelSpecArgs(
       parser, api_version=api_version, feature_mask=feature_mask)
Пример #2
0
 def Args(parser):
     levels.AddResourceArg(parser, 'to update')
     levels.AddLevelArgs(parser)
     levels.AddLevelSpecArgs(parser)
Пример #3
0
 def ArgsVersioned(parser, version='v1'):
     levels.AddResourceArg(parser, 'to update')
     levels.AddLevelArgs(parser, version=version)
     levels.AddLevelSpecArgs(parser, version=version)