(args)
Validated google-cls-v2 arguments.
Validated google-cls-v2 arguments.
Validated google - cls - v2 arguments .
def _google_cls_v2_parse_arguments(args):
  """Validated google-cls-v2 arguments."""

  # For the google-cls-v2 provider, the addition of the "--location" parameter,
  # along with a default (us-central1), we can just default everything.

  # So we only need to validate that there is not both a region and zone.
  if (args.zones and args.regions):
    raise ValueError('At most one of --regions and --zones may be specified')

  if args.machine_type and (args.min_cores or args.min_ram):
    raise ValueError(
        '--machine-type not supported together with --min-cores or --min-ram.')

  _check_private_address(args)
  _check_nvidia_driver_version(args)
def _google_cls_v2_parse_arguments ( args ) : # For the google-cls-v2 provider, the addition of the "--location" parameter, # along with a default (us-central1), we can just default everything. # So we only need to validate that there is not both a region and zone. if ( args . zones and args . regions ) : raise ValueError ( 'At most one of --regions and --zones may be specified' ) if args . machine_type and ( args . min_cores or args . min_ram ) : raise ValueError ( '--machine-type not supported together with --min-cores or --min-ram.' ) _check_private_address ( args ) _check_nvidia_driver_version ( args )