2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-15 04:07:48 +00:00
pyghmi/pyghmi/media.py
Jarrod Johnson 7d0df42298 Implement remote media upload
Platforms that support concept of media upload can be supported.

Change-Id: I7475563ac6af90b10e2c1870f72f227db5cdfd70
2017-12-08 18:16:15 -05:00

26 lines
813 B
Python

# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 IBM Corporation
# Copyright 2015-2017 Lenovo
#
# 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.
# These are the objects returned by list_media
class Media(object):
def __init__(self, name, url=None):
self.name = name
self.url = url