openstack_types/network/v2/flavor/response/list.rs
1// Licensed under the Apache License, Version 2.0 (the "License");
2// you may not use this file except in compliance with the License.
3// You may obtain a copy of the License at
4//
5// http://www.apache.org/licenses/LICENSE-2.0
6//
7// Unless required by applicable law or agreed to in writing, software
8// distributed under the License is distributed on an "AS IS" BASIS,
9// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10// See the License for the specific language governing permissions and
11// limitations under the License.
12//
13// SPDX-License-Identifier: Apache-2.0
14//
15// WARNING: This file is automatically generated from OpenAPI schema using
16// `openstack-codegenerator`.
17//! Response type for the GET `flavors` operation
18
19use serde::{Deserialize, Serialize};
20use structable::{StructTable, StructTableOptions};
21
22/// Flavor response representation
23#[derive(Clone, Deserialize, Serialize, StructTable)]
24pub struct FlavorResponse {
25 /// The human-readable description for the flavor.
26 #[serde(default)]
27 #[structable(optional, wide)]
28 pub description: Option<String>,
29
30 /// Indicates whether the flavor is enabled or not. Default is true.
31 #[serde(default)]
32 #[structable(optional, wide)]
33 pub enabled: Option<bool>,
34
35 /// The ID of the flavor.
36 #[serde(default)]
37 #[structable(optional)]
38 pub id: Option<String>,
39
40 /// Name of the flavor.
41 #[serde(default)]
42 #[structable(optional)]
43 pub name: Option<String>,
44
45 /// Service profile UUIDs associated with this flavor.
46 #[serde(default)]
47 #[structable(optional, serialize, wide)]
48 pub service_profiles: Option<Vec<String>>,
49
50 /// Service type for the flavor. Example: FIREWALL.
51 #[serde(default)]
52 #[structable(optional, wide)]
53 pub service_type: Option<String>,
54}