Files
openstacksdk/openstack/shared_file_system/v2/share_snapshot_instance.py
Kafilat Adeleke 79e8c83da8 Add share snapshot instance resource
Introduce Share snapshot instance class with basic methods
to list, and get to shared file system storage service.

Change-Id: I14ccb77453d300afc6f387338e752f32ae57af20
Co-Authored-By: Reynaldo Bontje <rey.bontje80@gmail.com>
2023-03-20 15:46:36 -07:00

48 lines
1.8 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from openstack import resource
class ShareSnapshotInstance(resource.Resource):
resource_key = "snapshot_instance"
resources_key = "snapshot_instances"
base_path = "/snapshot-instances"
# capabilities
allow_create = False
allow_fetch = True
allow_commit = False
allow_delete = False
allow_list = True
allow_head = False
#: Properties
#: The date and time stamp when the resource was created within the
#: services database.
created_at = resource.Body("created_at", type=str)
#: The progress of the snapshot creation.
progress = resource.Body("progress", type=str)
#: Provider location of the snapshot on the backend.
provider_location = resource.Body("provider_location", type=str)
#: The UUID of the share.
share_id = resource.Body("share_id", type=str)
#: The UUID of the share instance.
share_instance_id = resource.Body("share_instance_id", type=str)
#: The UUID of the snapshot.
snapshot_id = resource.Body("snapshot_id", type=str)
#: The snapshot instance status.
status = resource.Body("status", type=str)
#: The date and time stamp when the resource was updated within the
#: services database.
updated_at = resource.Body("updated_at", type=str)