1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Antimatter Public API
*
* Interact with the Antimatter Cloud API
*
* The version of the OpenAPI document: 2.0.13
* Contact: support@antimatter.io
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// VendorSettings : Vendor settings for a domain
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VendorSettings {
/// The name of the vendor associated with the domain.
#[serde(rename = "name")]
pub name: String,
/// The contact point for the the vendor
#[serde(rename = "supportContact")]
pub support_contact: String,
/// A UUID or reference used for identifying root encryption keys. May also be \"default\" or \"active\" to refer to the default or active key. Note that it is not permitted to use the default key in a different domain.
#[serde(rename = "managedKeyId")]
pub managed_key_id: String,
/// A flag that indicates whether the subdomains of this domain should have the HYOK (Hold Your Own Key) feature enabled in the UI.
#[serde(rename = "HYOKDisabled")]
pub hyok_disabled: bool,
}
impl VendorSettings {
/// Vendor settings for a domain
pub fn new(name: String, support_contact: String, managed_key_id: String, hyok_disabled: bool) -> VendorSettings {
VendorSettings {
name,
support_contact,
managed_key_id,
hyok_disabled,
}
}
}