# Path: magnumclient/i18n.py



import os
from magnumclient.i18n import _
from osc_lib.command import command
#    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.





def _show_cert(certificate):
    try:
        print(certificate.pem)
    except AttributeError:
        return None


def _get_target_uuid(cs, args):
    target = None
    if args.cluster:
        target = cs.clusters.get(args.cluster)
    return target.uuid


class RotateCa(command.Command):

# Path: magnumclient/i18n.py



# Path: magnumclient/osc/v1/certificates.py
import os
from magnumclient.i18n import _
from osc_lib.command import command

#    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.





def _show_cert(certificate):
    try:
        print(certificate.pem)
    except AttributeError:
        return None


def _get_target_uuid(cs, args):
    target = None
    if args.cluster:
        target = cs.clusters.get(args.cluster)
    return target.uuid


class RotateCa(command.Command):

    _description = _("Rotate the CA certificate for cluster to revoke access.")