示例#1
0
 def _get_plan_status(self, service_name, plan):
     response = requests.get(get_base_url() + "/service" + service_name +
                             "v1/plans/%s" % plan,
                             auth=get_auth(),
                             verify=False)
     if response.ok:
         return response.json()["status"]
     else:
         return None
示例#2
0
 def has_plans_api(self, service_name):
     if service_name[0] == "/":
         service_name = service_name[1:]
     response = requests.get(get_base_url() + "/service/" + service_name +
                             "/v1/plans/",
                             auth=get_auth(),
                             verify=False)
     if response.ok:
         return True
     else:
         return False
示例#3
0
 def __init__(self):
     self.base_url = get_base_url() + "/secrets/v1/"
     self._cache_secrets_list = None
示例#4
0
 def __init__(self):
     self.base_url = get_base_url()
     self.mesos_url = self.base_url + "/mesos/"
示例#5
0
 def __init__(self):
     self.base_url = get_base_url() + "/ca/api/v2/"
示例#6
0
 def __init__(self):
     self.base_url = get_base_url() + "/service/edgelb/"
示例#7
0
 def __init__(self):
     self.service_url = get_base_url() + "/cosmos/service"
     self.package_url = get_base_url() + "/package"
示例#8
0
 def __init__(self):
     self.marathon_url = get_base_url() + "/service/marathon/v2"
示例#9
0
 def __init__(self):
     self.metronome_url = get_base_url() + "/service/metronome/"
示例#10
0
 def __init__(self):
     self.base_url = get_base_url() + "/acs/api/v1"
示例#11
0
 def __init__(self):
     self.base_url = get_base_url()
示例#12
0
 def __init__(self):
     self.base_url = get_base_url() + "/secrets/v1/"