/// <summary> /// Uploads a certificate for a resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='certificateName'> /// Certificate friendly name. /// </param> /// <param name='properties'> /// </param> public static VaultCertificateResponse Create(this IVaultCertificatesOperations operations, string resourceGroupName, string vaultName, string certificateName, RawCertificateData properties = default(RawCertificateData)) { return(operations.CreateAsync(resourceGroupName, vaultName, certificateName, properties).GetAwaiter().GetResult()); }
/// <summary> /// Upload a certificate for a resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='certificateName'> /// Certificate friendly name. /// </param> /// <param name='certificateRequest'> /// Input parameters for uploading the vault certificate. /// </param> public static VaultCertificateResponse Create(this IVaultCertificatesOperations operations, string resourceGroupName, string vaultName, string certificateName, CertificateRequest certificateRequest) { return(operations.CreateAsync(resourceGroupName, vaultName, certificateName, certificateRequest).GetAwaiter().GetResult()); }