Home
last modified time | relevance | path

Searched refs:resp_json (Results 1 – 25 of 69) sorted by relevance

123

/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/module_utils/
H A Dlxd.py93 if resp_json['type'] == 'async':
98 return resp_json
111 resp_json = json.loads(resp_data)
115 'response': {'json': resp_json}
120 return resp_json
122 return resp_json
124 return resp_json
128 def _raise_err_from_json(self, resp_json): argument
135 def _get_err_from_resp_json(resp_json): argument
137 metadata = resp_json.get('metadata', None)
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/general/plugins/module_utils/
H A Dlxd.py80 if resp_json['type'] == 'async':
85 return resp_json
98 resp_json = json.loads(resp_data)
102 'response': {'json': resp_json}
107 return resp_json
109 return resp_json
111 return resp_json
115 def _raise_err_from_json(self, resp_json): argument
122 def _get_err_from_resp_json(resp_json): argument
124 metadata = resp_json.get('metadata', None)
[all …]
/dports/www/py-flask-peewee/flask-peewee-3.0.4/flask_peewee/tests/
H A Drest.py57 def assertAPIMeta(self, resp_json, meta): argument
140 self.assertEqual(resp_json, {
155 self.assertEqual(resp_json, {
171 self.assertEqual(resp_json, {
187 self.assertEqual(resp_json, {
195 self.assertEqual(resp_json, {
565 self.assertAPIMeta(resp_json, {
577 self.assertAPIMeta(resp_json, {
597 self.assertAPIMeta(resp_json, {
685 self.assertAPINotes(resp_json, [
[all …]
/dports/www/seahub/seahub-8.0.7-server/tests/api/
H A Dtest_group_repos.py22 resp_json = resp.json()
23 assert len(resp_json['id']) == 36
24 assert resp_json['name'] == 'grepo-test'
25 assert resp_json['size'] >= 0
26 assert resp_json['mtime'] > 0
27 assert resp_json['permission'] == 'rw'
28 assert '</time>' in resp_json['mtime_relative']
35 resp_json = resp.json()
36 assert resp_json['permission'] == 'r'
H A Dtest_repo.py120 resp_json = json.loads(resp.content)
121 assert self.repo.id in [e['id'] for e in resp_json]
141 resp_json = json.loads(resp.content)
142 assert self.repo.id in [e['id'] for e in resp_json]
162 resp_json = json.loads(resp.content)
163 assert self.repo.id in [e['id'] for e in resp_json]
194 resp_json = json.loads(resp.content)
195 assert self.repo.id in [e['id'] for e in resp_json]
227 resp_json = json.loads(resp.content)
228 assert self.repo.id in [e['id'] for e in resp_json]
[all …]
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/module_utils/network/nso/
H A Dnso.py89 return resp_json['result']['th']
105 return resp_json['result']
122 return resp_json['result']
127 return resp_json['result']
136 return resp_json['result']
144 return resp_json['result']
173 return resp_json['result']
184 return resp_json['result']
254 if 'error' in resp_json:
256 return resp, resp_json
[all …]
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/cisco/nso/plugins/module_utils/
H A Dnso.py92 return resp_json['result']['th']
108 return resp_json['result']
131 return resp_json['result']
136 return resp_json['result']
145 return resp_json['result']
153 return resp_json['result']
182 return resp_json['result']
193 return resp_json['result']
264 if 'error' in resp_json:
266 return resp, resp_json
[all …]
/dports/www/seahub/seahub-8.0.7-server/seahub/dingtalk/
H A Dutils.py26 resp_json = requests.get(DINGTALK_DEPARTMENT_GET_ACCESS_TOKEN_URL,
29 access_token = resp_json.get('access_token', '')
34 logger.error(resp_json)
37 expires_in = resp_json.get('expires_in', 7200)
55 resp_json = requests.get(DINGTALK_GET_USERID_BY_UNIONID, params=data).json()
56 user_id = resp_json.get('userid', '')
61 logger.error(resp_json)
/dports/www/searx/searx-1.0.0/searx/engines/
H A Dsolr.py52 resp_json = __get_response(resp)
55 for result in resp_json['response']['docs']:
67 resp_json = loads(resp.text)
71 if 'error' in resp_json:
72 raise SearxEngineAPIException(resp_json['error']['msg'])
74 return resp_json
H A Delasticsearch.py114 resp_json = loads(resp.text)
115 if 'error' in resp_json:
116 raise SearxEngineAPIException(resp_json['error'])
118 for result in resp_json['hits']['hits']:
H A Dwolframalpha_noapi.py82 resp_json = loads(resp.text)
84 if not resp_json['queryresult']['success']:
91 for pod in resp_json['queryresult']['pods']:
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/cloud/digital_ocean/
H A Ddigital_ocean_tag.py122 resp_json = response.json
124 if status_code == 200 and resp_json['tag']['name'] == name:
130 resp_json = response.json
136 module.exit_json(changed=False, data=resp_json)
140 module.exit_json(changed=changed, data=resp_json)
149 resp_json = response.json
151 for resource in resp_json['droplets']:
172 module.fail_json(msg=resp_json['message'])
H A Ddigital_ocean_certificate.py101 resp_json = response.json
107 for cert in resp_json['certificates']:
124 resp_json = response.json
126 results.update(changed=True, response=resp_json)
128 results.update(changed=False, response=resp_json)
132 for cert in resp_json['certificates']:
H A D_digital_ocean_certificate_facts.py94 resp_json = response.json
95 certificate = resp_json['certificate']
H A Ddigital_ocean_load_balancer_info.py96 resp_json = response.json
97 load_balancer = resp_json['load_balancer']
H A D_digital_ocean_load_balancer_facts.py96 resp_json = response.json
97 load_balancer = resp_json['load_balancer']
H A D_digital_ocean_tag_facts.py96 resp_json = response.json
97 tag = resp_json['tag']
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/digitalocean/plugins/modules/
H A Ddigital_ocean_tag.py125 resp_json = response.json
127 if status_code == 200 and resp_json["tag"]["name"] == name:
133 resp_json = response.json
139 module.exit_json(changed=False, data=resp_json)
143 module.exit_json(changed=changed, data=resp_json)
152 resp_json = response.json
154 for resource in resp_json["droplets"]:
180 module.fail_json(msg=resp_json["message"])
H A Ddigital_ocean_certificate.py105 resp_json = response.json
111 for cert in resp_json["certificates"]:
132 resp_json = response.json
134 results.update(changed=True, response=resp_json)
136 results.update(changed=False, response=resp_json)
140 for cert in resp_json["certificates"]:
/dports/devel/py-moto/moto-2.2.16/moto/efs/
H A Dresponses.py54 resp_json = {"FileSystems": file_systems}
56 resp_json["Marker"] = marker
58 resp_json["NextMarker"] = next_marker
59 return json.dumps(resp_json), {"Content-Type": "application/json"}
90 resp_json = {"MountTargets": mount_targets}
92 resp_json["Marker"] = marker
94 resp_json["NextMarker"] = next_marker
95 return json.dumps(resp_json), {"Content-Type": "application/json"}
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/webrtc/tools_webrtc/perf/
H A Dcatapult_uploader.py86 resp_json = None
98 resp_json = json.loads(content)
103 resp_json['state'] == 'COMPLETED' or
104 resp_json['state'] == 'FAILED'):
107 return response, resp_json
178 response, resp_json = _WaitForUploadConfirmation(
185 if response.status != 200 or resp_json['state'] == 'FAILED':
188 str(resp_json)))
191 if resp_json['state'] == 'COMPLETED':
/dports/devel/emscripten/emscripten-2.0.3/third_party/websockify/websockify/
H A Dtoken_plugins.py82 resp_json = resp.json()
83 return (resp_json['host'], resp_json['port'])
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/subliminal_patch/providers/
H A Dtitlovi.py177 resp_json = response.json()
178 self.login_token = resp_json.get('Token')
179 self.user_id = resp_json.get('UserId')
180 self.token_exp = dateutil.parser.parse(resp_json.get('ExpirationDate'))
238 resp_json = response.json()
239 if resp_json['SubtitleResults']:
240 query_results.extend(resp_json['SubtitleResults'])
/dports/devel/py-ddtrace/ddtrace-0.56.1/tests/contrib/sanic/
H A Dtest_sanic.py30 resp_json = response.json()
31 if asyncio.iscoroutine(resp_json):
32 resp_json = await resp_json
33 return resp_json
/dports/www/novnc-websockify/websockify-0.9.0/websockify/
H A Dtoken_plugins.py91 resp_json = resp.json()
92 return (resp_json['host'], resp_json['port'])

123