Example #1
0
 def Args(cls, parser):
   dataproc = dp.Dataproc(cls.ReleaseTrack())
   flags.AddJobResourceArg(parser, 'kill', dataproc.api_version)
Example #2
0
 def Args(cls, parser):
     dataproc = dp.Dataproc(cls.ReleaseTrack())
     flags.AddJobResourceArg(parser, 'retrieve the policy for',
                             dataproc.api_version)
     base.URI_FLAG.RemoveFromParser(parser)
Example #3
0
 def Args(cls, parser):
   dataproc = dp.Dataproc(cls.ReleaseTrack())
   flags.AddJobResourceArg(parser, 'update', dataproc.api_version)
   changes = parser.add_argument_group(required=True)
   # Allow the user to specify new labels as well as update/remove existing
   labels_util.AddUpdateLabelsFlags(changes)
Example #4
0
 def Args(cls, parser):
     dataproc = dp.Dataproc(cls.ReleaseTrack())
     flags.AddJobResourceArg(parser, 'set the policy on',
                             dataproc.api_version)
     iam_util.AddArgForPolicyFile(parser)