Exemple #1
0
 public void ConfigureCryptoKey(CryptoKeyId keyId)
 {
     try
     {
         VersionUtils.RequiresVersion(this.Client, VimVersion.Vim65);
         ConfigureCryptoKeyRequestType configureCryptoKeyRequestType = new ConfigureCryptoKeyRequestType();
         configureCryptoKeyRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
         configureCryptoKeyRequestType.keyId = (VimApi_65.CryptoKeyId)VIConvert.ToWsdlType(keyId);
         this.VimServiceProxy.ConfigureCryptoKey(new ConfigureCryptoKeyRequest(configureCryptoKeyRequestType));
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
Exemple #2
0
 public void RemoveKey(CryptoKeyId key, bool force)
 {
     try
     {
         VersionUtils.RequiresVersion(this.Client, VimVersion.Vim65);
         RemoveKeyRequestType removeKeyRequestType = new RemoveKeyRequestType();
         removeKeyRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
         removeKeyRequestType.key   = (VimApi_65.CryptoKeyId)VIConvert.ToWsdlType(key);
         removeKeyRequestType.force = force;
         this.VimServiceProxy.RemoveKey(new RemoveKeyRequest(removeKeyRequestType));
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }