Esempio n. 1
0
    def _ValidateArgs(self, args, compute_client):
        self._ValidateInstanceName(args)
        self._CheckForExistingInstances(args.instance_name, compute_client)

        instances_flags.ValidateNicFlags(args)
        instances_flags.ValidateNetworkTierArgs(args)
        daisy_utils.ValidateZone(args, compute_client)
Esempio n. 2
0
 def _ValidateArgs(self, args, compute_client):
     instances_flags.ValidateNicFlags(args)
     instances_flags.ValidateNetworkTierArgs(args)
     daisy_utils.ValidateZone(args, compute_client)
     try:
         args.source_uri = daisy_utils.MakeGcsUri(args.source_uri)
     except resources.UnknownCollectionException:
         raise exceptions.InvalidArgumentException(
             'source-uri',
             'must be a path to an object or a directory in Cloud Storage')
Esempio n. 3
0
 def _ValidateArgs(self, args, compute_client):
   daisy_utils.ValidateZone(args, compute_client)
Esempio n. 4
0
 def _ValidateArgs(self, args, compute_client):
     super(ImportBeta, self)._ValidateArgs(args, compute_client)
     daisy_utils.ValidateZone(args, compute_client)