Implementation for both cases: - as action for fuel v1; - as command for fuel v2. Add deprecation message for --fuel-version in 7.0 release. Also solved several problems: - support custom credential; - support interective mode; - support unified scheme of api queries. Change-Id: I915d3b5ff265883883fbf92786c3cbc860ec4128 Closes-Bug: #1474767 Closes-Bug: #1399608 DocImpact
21 lines
723 B
Python
21 lines
723 B
Python
# Copyright 2015 Mirantis, Inc.
|
|
#
|
|
# 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 fuelclient.objects.base import BaseObject
|
|
|
|
|
|
class FuelVersion(BaseObject):
|
|
|
|
class_api_path = "version/"
|