public AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel GetAzureRmSqlManagedInstanceTransparentDataEncryptionProtector(AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel model) { var managedInstanceEncryptionProtector = Communicator.GetManagedInstanceEncryptionProtector( resourceGroupName: model.ResourceGroupName, managedInstanceName: model.ManagedInstanceName); return(AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel.FromManagedInstanceEncryptionProtector( model.ResourceGroupName, model.ManagedInstanceName, managedInstanceEncryptionProtector)); }
/// <summary> /// Get the entities from the service /// </summary> /// <returns>The list of entities</returns> protected override IEnumerable <AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel> GetEntity() { IList <AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel> resultList = new List <AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel>(); AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel model = new AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel( resourceGroupName: this.ResourceGroupName, managedInstanceName: this.InstanceName); resultList.Add(ModelAdapter.GetAzureRmSqlManagedInstanceTransparentDataEncryptionProtector(model)); return(resultList); }
public AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel CreateOrUpdateManagedInstanceEncryptionProtector(AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel model) { ManagedInstanceEncryptionProtector managedInstanceEncryptionProtector = Communicator.CreateOrUpdateManagedInstanceEncryptionProtector( resourceGroupName: model.ResourceGroupName, managedInstanceName: model.ManagedInstanceName, managedInstanceEncryptionProtector: new ManagedInstanceEncryptionProtector() { ServerKeyType = model.Type.ToString(), ServerKeyName = TdeKeyHelper.CreateServerKeyNameFromKeyId(model.KeyId) }); return(AzureRmSqlManagedInstanceTransparentDataEncryptionProtectorModel .FromManagedInstanceEncryptionProtector( resourceGroupName: model.ResourceGroupName, managedInstanceName: model.ManagedInstanceName, managedInstanceEncryptionProtector: managedInstanceEncryptionProtector)); }