openstack_types/compute/v2/assisted_volume_snapshot/response/
create.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 POST `os-assisted-volume-snapshots` operation
18
19use serde::{Deserialize, Serialize};
20use structable::{StructTable, StructTableOptions};
21
22/// AssistedVolumeSnapshot response representation
23#[derive(Clone, Deserialize, Serialize, StructTable)]
24pub struct AssistedVolumeSnapshotResponse {
25    /// Its the same arbitrary string which was sent in request body.
26    ///
27    /// Note
28    ///
29    /// This string is passed back to user as it is and not being used in Nova
30    /// internally. So use `snapshot_id` instead for further operation on this
31    /// snapshot.
32    #[structable(optional)]
33    pub id: Option<String>,
34
35    /// The source volume ID.
36    #[serde(rename = "volumeId")]
37    #[structable(title = "volumeId")]
38    pub volume_id: String,
39}