cloudstack/tools/marvin/build/lib/marvin/cloudstackAPI/disableUser.py

67 lines
2.3 KiB
Python

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
"""Disables a user account"""
from baseCmd import *
from baseResponse import *
class disableUserCmd (baseCmd):
def __init__(self):
self.isAsync = "true"
"""Disables user by user ID."""
"""Required"""
self.id = None
self.required = ["id",]
class disableUserResponse (baseResponse):
def __init__(self):
"""the user ID"""
self.id = None
"""the account name of the user"""
self.account = None
"""the account ID of the user"""
self.accountid = None
"""the account type of the user"""
self.accounttype = None
"""the api key of the user"""
self.apikey = None
"""the date and time the user account was created"""
self.created = None
"""the domain name of the user"""
self.domain = None
"""the domain ID of the user"""
self.domainid = None
"""the user email address"""
self.email = None
"""the user firstname"""
self.firstname = None
"""the boolean value representing if the updating target is in caller's child domain"""
self.iscallerchilddomain = None
"""true if user is default, false otherwise"""
self.isdefault = None
"""the user lastname"""
self.lastname = None
"""the secret key of the user"""
self.secretkey = None
"""the user state"""
self.state = None
"""the timezone user was created in"""
self.timezone = None
"""the user name"""
self.username = None