pub struct PatchedBulkDeviceWithConfigContextRequest {Show 31 fields
pub id: i32,
pub name: Option<Option<String>>,
pub device_type: Option<Box<BulkDeviceBayTemplateRequestDeviceType>>,
pub role: Option<Box<BulkDeviceWithConfigContextRequestRole>>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub platform: Option<Option<Box<BulkDeviceTypeRequestDefaultPlatform>>>,
pub serial: Option<String>,
pub asset_tag: Option<Option<String>>,
pub site: Option<Box<BulkDeviceWithConfigContextRequestSite>>,
pub location: Option<Option<Box<BulkDeviceWithConfigContextRequestLocation>>>,
pub rack: Option<Option<Box<BulkDeviceWithConfigContextRequestRack>>>,
pub position: Option<Option<f64>>,
pub face: Option<Face>,
pub latitude: Option<Option<f64>>,
pub longitude: Option<Option<f64>>,
pub status: Option<Status>,
pub airflow: Option<Airflow>,
pub primary_ip4: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>,
pub primary_ip6: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>,
pub oob_ip: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>,
pub cluster: Option<Option<Box<BulkDeviceWithConfigContextRequestCluster>>>,
pub virtual_chassis: Option<Option<Box<BulkDeviceWithConfigContextRequestVirtualChassis>>>,
pub vc_position: Option<Option<i32>>,
pub vc_priority: Option<Option<i32>>,
pub description: Option<String>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub config_template: Option<Option<Box<BulkDeviceRoleRequestConfigTemplate>>>,
pub local_context_data: Option<Option<Value>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
PatchedBulkDeviceWithConfigContextRequest : Base serializer class for models inheriting from PrimaryModel.
Fields§
§id: i32§name: Option<Option<String>>§device_type: Option<Box<BulkDeviceBayTemplateRequestDeviceType>>§role: Option<Box<BulkDeviceWithConfigContextRequestRole>>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§platform: Option<Option<Box<BulkDeviceTypeRequestDefaultPlatform>>>§serial: Option<String>Chassis serial number, assigned by the manufacturer
asset_tag: Option<Option<String>>A unique tag used to identify this device
site: Option<Box<BulkDeviceWithConfigContextRequestSite>>§location: Option<Option<Box<BulkDeviceWithConfigContextRequestLocation>>>§rack: Option<Option<Box<BulkDeviceWithConfigContextRequestRack>>>§position: Option<Option<f64>>§face: Option<Face>front- Front *rear- Rear
latitude: Option<Option<f64>>GPS coordinate in decimal format (xx.yyyyyy)
longitude: Option<Option<f64>>GPS coordinate in decimal format (xx.yyyyyy)
status: Option<Status>offline- Offline *active- Active *planned- Planned *staged- Staged *failed- Failed *inventory- Inventory *decommissioning- Decommissioning
airflow: Option<Airflow>front-to-rear- Front to rear *rear-to-front- Rear to front *left-to-right- Left to right *right-to-left- Right to left *side-to-rear- Side to rear *rear-to-side- Rear to side *bottom-to-top- Bottom to top *top-to-bottom- Top to bottom *passive- Passive *mixed- Mixed
primary_ip4: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>§primary_ip6: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>§oob_ip: Option<Option<Box<BulkDeviceWithConfigContextRequestPrimaryIp4>>>§cluster: Option<Option<Box<BulkDeviceWithConfigContextRequestCluster>>>§virtual_chassis: Option<Option<Box<BulkDeviceWithConfigContextRequestVirtualChassis>>>§vc_position: Option<Option<i32>>§vc_priority: Option<Option<i32>>Virtual chassis master election priority
description: Option<String>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§config_template: Option<Option<Box<BulkDeviceRoleRequestConfigTemplate>>>§local_context_data: Option<Option<Value>>Local config context data takes precedence over source contexts in the final rendered config context
custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedBulkDeviceWithConfigContextRequest
impl PatchedBulkDeviceWithConfigContextRequest
Sourcepub fn new(id: i32) -> PatchedBulkDeviceWithConfigContextRequest
pub fn new(id: i32) -> PatchedBulkDeviceWithConfigContextRequest
Base serializer class for models inheriting from PrimaryModel.
Trait Implementations§
Source§impl Clone for PatchedBulkDeviceWithConfigContextRequest
impl Clone for PatchedBulkDeviceWithConfigContextRequest
Source§fn clone(&self) -> PatchedBulkDeviceWithConfigContextRequest
fn clone(&self) -> PatchedBulkDeviceWithConfigContextRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PatchedBulkDeviceWithConfigContextRequest
impl Default for PatchedBulkDeviceWithConfigContextRequest
Source§fn default() -> PatchedBulkDeviceWithConfigContextRequest
fn default() -> PatchedBulkDeviceWithConfigContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedBulkDeviceWithConfigContextRequest
impl<'de> Deserialize<'de> for PatchedBulkDeviceWithConfigContextRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for PatchedBulkDeviceWithConfigContextRequest
Auto Trait Implementations§
impl Freeze for PatchedBulkDeviceWithConfigContextRequest
impl RefUnwindSafe for PatchedBulkDeviceWithConfigContextRequest
impl Send for PatchedBulkDeviceWithConfigContextRequest
impl Sync for PatchedBulkDeviceWithConfigContextRequest
impl Unpin for PatchedBulkDeviceWithConfigContextRequest
impl UnsafeUnpin for PatchedBulkDeviceWithConfigContextRequest
impl UnwindSafe for PatchedBulkDeviceWithConfigContextRequest
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