def __init__(self, gateway, headers, verify, busy, log=False): self.me = gateway self.headers = headers self.verify = verify self.response = None self.logger = _get_logger() if log else None self.busy = busy
def __init__(self, url, username, org, instance, api_url, org_url, version='5.7', verify=True, log=False): self.url = url self.username = username self.user_id = None self.token = None self.org = org self.instance = instance self.version = version self.verify = verify self.api_url = api_url self.org_url = org_url self.organization = None self.response = None self.session = None self.log = log self.logger = _get_logger() if log else None
def __init__(self, session, verify, log=False): self.vcloud_session = session self.verify = verify self.response = None self.logger = _get_logger() if log else None o = urlparse(self.vcloud_session.url) self.api_url = '%s://%s%s' % (o.scheme, o.netloc, '/api/cluster') self.username = self.vcloud_session.username self.org_id = self.vcloud_session.organization.get_id().split(':')[-1]
def __init__(self, url, org_url=None, token=None, version='5.7', verify=True, log=False): self.url = url self.org_url = org_url self.token = token self.version = version self.verify = verify self.response = None self.blueprints = BlueprintsClient(self) self.deployments = DeploymentsClient(self) self.executions = ExecutionsClient(self) self.events = EventsClient(self) self.logger = _get_logger() if log else None
def __init__(self, host=None, token=None, version='5.7', verify=True, log=False): self.token = token self.version = version self.verify = verify self.org_url = None self.response = None self.host = host self.logger = _get_logger() if log else None
def __init__(self, url, username, org, instance, api_url, org_url, version='5.7', verify=True, log=False): self.url = url self.username = username self.token = None self.org = org self.instance = instance self.version = version self.verify = verify self.api_url = api_url self.org_url = org_url self.organization = None self.response = None self.session = None self.log = log self.logger = _get_logger() if log else None
def __init__(self, url, org_url=None, token=None, version='5.7', verify=True, log=False): self.url = url self.org_url = org_url self.token = token self.version = version self.verify = verify self.response = None self.blueprints = BlueprintsClient(self, log) self.deployments = DeploymentsClient(self, log) self.executions = ExecutionsClient(self, log) self.events = EventsClient(self, log) self.logger = _get_logger() if log else None
def __init__(self, profile=None, profile_file=None, json_output=False, xml_output=False, debug=False, insecure=False, host_score=None): self.profile = profile self.profile_file = profile_file self.debug = debug self.verify = not insecure self.json_output = json_output self.xml_output = xml_output self.password = None self.config = ConfigParser.RawConfigParser() self.vca = None self.instance = None self.logger = _get_logger() if debug else None self.error_message = None self.vdc_name = None self.gateway = None self.host_score = host_score
def __init__(self, host, username, service_type='ondemand', version='5.7', verify=True, log=False): if not (host.startswith('https://') or host.startswith('http://')): host = 'https://' + host self.host = host self.username = username self.token = None self.service_type = service_type self.version = version self.verify = verify self.vcloud_session = None self.instances = None self.org = None self.organization = None self.vdc = None self.services = None self.response = None self.log = log self.logger = _get_logger() if log else None
def __init__(self, session, verify, log=False): self.vcloud_session = session self.verify = verify self.response = None self.logger = _get_logger() if log else None
def __init__(self, score, log=False): self.score = score self.logger = _get_logger() if log else None
def __init__(self, vApp, headers, verify, log=False): self.me = vApp self.headers = headers self.verify = verify self.response = None self.logger = _get_logger() if log else None