pub struct ApplyCertificate<'a> {Show 15 fields
pub dv_auth_method: DvAuthMethod<'a>,
pub domain_name: &'a str,
pub project_id: Option<i64>,
pub package_type: Option<&'a str>,
pub contact_email: Option<&'a str>,
pub contact_phone: Option<&'a str>,
pub validity_period: Option<&'a str>,
pub csr_encrypt_algo: Option<&'a str>,
pub csr_key_parameter: Option<&'a str>,
pub csr_key_password: Option<&'a str>,
pub alias: Option<&'a str>,
pub old_certificate_id: Option<&'a str>,
pub package_id: Option<&'a str>,
pub delete_dns_auto_record: Option<bool>,
pub dns_names: Option<&'a [&'a str]>,
}Expand description
Request payload for ApplyCertificate.
Fieldsยง
ยงdv_auth_method: DvAuthMethod<'a>ยงdomain_name: &'a strยงproject_id: Option<i64>ยงpackage_type: Option<&'a str>ยงcontact_email: Option<&'a str>ยงcontact_phone: Option<&'a str>ยงvalidity_period: Option<&'a str>ยงcsr_encrypt_algo: Option<&'a str>ยงcsr_key_parameter: Option<&'a str>ยงcsr_key_password: Option<&'a str>ยงalias: Option<&'a str>ยงold_certificate_id: Option<&'a str>ยงpackage_id: Option<&'a str>ยงdelete_dns_auto_record: Option<bool>ยงdns_names: Option<&'a [&'a str]>Implementationsยง
Sourceยงimpl<'a> ApplyCertificate<'a>
impl<'a> ApplyCertificate<'a>
Sourcepub fn new(dv_auth_method: DvAuthMethod<'a>, domain_name: &'a str) -> Self
pub fn new(dv_auth_method: DvAuthMethod<'a>, domain_name: &'a str) -> Self
Create a new certificate application request
Sourcepub fn with_project_id(self, project_id: i64) -> Self
pub fn with_project_id(self, project_id: i64) -> Self
Set project ID
Sourcepub fn with_package_type(self, package_type: &'a str) -> Self
pub fn with_package_type(self, package_type: &'a str) -> Self
Set package type (currently only โ83โ is supported)
Sourcepub fn with_contact_email(self, contact_email: &'a str) -> Self
pub fn with_contact_email(self, contact_email: &'a str) -> Self
Set contact email
Sourcepub fn with_contact_phone(self, contact_phone: &'a str) -> Self
pub fn with_contact_phone(self, contact_phone: &'a str) -> Self
Set contact phone
Sourcepub fn with_validity_period(self, validity_period: &'a str) -> Self
pub fn with_validity_period(self, validity_period: &'a str) -> Self
Set validity period (default โ3โ)
Sourcepub fn with_csr_encrypt_algo(self, csr_encrypt_algo: &'a str) -> Self
pub fn with_csr_encrypt_algo(self, csr_encrypt_algo: &'a str) -> Self
Set CSR encrypt algorithm (RSA or ECC)
Sourcepub fn with_csr_key_parameter(self, csr_key_parameter: &'a str) -> Self
pub fn with_csr_key_parameter(self, csr_key_parameter: &'a str) -> Self
Set CSR key parameter (2048 for RSA, prime256v1 for ECC)
Sourcepub fn with_csr_key_password(self, csr_key_password: &'a str) -> Self
pub fn with_csr_key_password(self, csr_key_password: &'a str) -> Self
Set CSR key password
Sourcepub fn with_alias(self, alias: &'a str) -> Self
pub fn with_alias(self, alias: &'a str) -> Self
Set certificate alias
Sourcepub fn with_old_certificate_id(self, old_certificate_id: &'a str) -> Self
pub fn with_old_certificate_id(self, old_certificate_id: &'a str) -> Self
Set old certificate ID for renewal
Sourcepub fn with_package_id(self, package_id: &'a str) -> Self
pub fn with_package_id(self, package_id: &'a str) -> Self
Set package ID for free certificate expansion
Sourcepub fn with_delete_dns_auto_record(self, delete_dns_auto_record: bool) -> Self
pub fn with_delete_dns_auto_record(self, delete_dns_auto_record: bool) -> Self
Set whether to delete DNS auto record after issuance
Sourcepub fn with_dns_names(self, dns_names: &'a [&'a str]) -> Self
pub fn with_dns_names(self, dns_names: &'a [&'a str]) -> Self
Set DNS names for multi-domain certificates
Sourcepub fn with_dv_auth_method(self, dv_auth_method: DvAuthMethod<'a>) -> Self
pub fn with_dv_auth_method(self, dv_auth_method: DvAuthMethod<'a>) -> Self
Override the DV auth method.
Trait Implementationsยง
Sourceยงimpl<'a> Endpoint for ApplyCertificate<'a>
impl<'a> Endpoint for ApplyCertificate<'a>
type Output = ApplyCertificateResponse
fn service(&self) -> Cow<'static, str>
fn action(&self) -> Cow<'static, str>
fn version(&self) -> Cow<'static, str>
fn region(&self) -> Option<Cow<'_, str>>
fn payload(&self) -> Value
fn scheme(&self) -> Cow<'static, str>
fn host(&self) -> Cow<'_, str>
fn path(&self) -> Cow<'_, str>
fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>
fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError>
Auto Trait Implementationsยง
impl<'a> Freeze for ApplyCertificate<'a>
impl<'a> RefUnwindSafe for ApplyCertificate<'a>
impl<'a> Send for ApplyCertificate<'a>
impl<'a> Sync for ApplyCertificate<'a>
impl<'a> Unpin for ApplyCertificate<'a>
impl<'a> UnwindSafe for ApplyCertificate<'a>
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more