Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type=str,
help="""Email address of the service account to be authorized on the
Compute Engine VM for each job task. If not specified, the default
Compute Engine service account for the project will be used.""")
google_v2.add_argument(
'--disk-type',
help="""
The disk type to use for the data disk. Valid values are pd-standard
pd-ssd and local-ssd. The default value is pd-standard.""")
google_v2.add_argument(
'--enable-stackdriver-monitoring',
default=False,
action='store_true',
help='If set to true, enables Stackdriver monitoring on the VM.')
args = provider_base.parse_args(
parser, {
'google': ['project', 'zones', 'logging'],
'google-v2': ['project', 'logging'],
'test-fails': [],
'local': ['logging'],
}, argv)
if args.provider == 'google':
_google_parse_arguments(args)
if args.provider == 'google-v2':
_google_v2_parse_arguments(args)
return args
'--label',
nargs='*',
action=param_util.ListParamAction,
default=[],
help='User labels to match. Tasks returned must match all labels.',
metavar='KEY=VALUE')
# Shared arguments between the "google" and "google-v2" providers
google_common = parser.add_argument_group(
title='google-common',
description='Options common to the "google" and "google-v2" providers')
google_common.add_argument(
'--project',
help='Cloud project ID in which to find and delete the job(s)')
return provider_base.parse_args(
parser, {
'google': ['project'],
'google-v2': ['project'],
'test-fails': [],
'local': [],
}, sys.argv[1:])
action='store_true',
help='Display output with full task information'
' and input parameters.')
output_style.add_argument(
'--summary',
action='store_true',
help='Display a summary of the results, grouped by (job, status).')
# Shared arguments between the "google" and "google-v2" providers
google_common = parser.add_argument_group(
title='google-common',
description='Options common to the "google" and "google-v2" providers')
google_common.add_argument(
'--project',
help='Cloud project ID in which to find and delete the job(s)')
return provider_base.parse_args(
parser, {
'google': ['project'],
'google-v2': ['project'],
'test-fails': [],
'local': [],
}, sys.argv[1:])