/// <summary />
 public virtual Task<KeyPair> CreateKeyPairAsync(string name, KeyPairType? type = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     var keyPair = new KeyPairDefinition(name)
     {
         Type = type
     };
     return _computeApi.CreateKeyPairAsync<KeyPair>(keyPair, cancellationToken);
 }
        /// <summary />
        public virtual Task <KeyPair> CreateKeyPairAsync(string name, KeyPairType?type = null, CancellationToken cancellationToken = default(CancellationToken))
        {
            var keyPair = new KeyPairDefinition(name)
            {
                Type = type
            };

            return(_computeApi.CreateKeyPairAsync <KeyPair>(keyPair, cancellationToken));
        }