Home
last modified time | relevance | path

Searched full:api_key (Results 1 – 25 of 55) sorted by relevance

123

/external/autotest/client/common_lib/cros/fake_device_server/
Dresource_delegate.py21 Data is stored based on a combination of <id> + <api_key>
22 tuples. The api_key can be passed in to any command with ?key=<api_key>.
27 # Dictionary of data blobs with keys of <id, api_key> pairs that map
33 def get_data_val(self, id, api_key): argument
34 """Returns the data value for the given id, api_key pair.
37 @param api_key: optional api_key for the data_val.
42 key = (id, api_key)
57 def del_data_val(self, id, api_key): argument
58 """Deletes the data value for the given id, api_key pair.
61 @param api_key: optional api_key for the data_val.
[all …]
Ddevices.py53 def _handle_state_patch(self, device_id, api_key, data): argument
57 @param api_key: string api_key to support this resource delegate.
81 def create_device(self, api_key, device_config): argument
84 @param api_key: Api key for the application.
88 logging.info('Creating device with api_key=%s and device_config=%r',
89 api_key, device_config)
91 new_device = self.resource.update_data_val(None, api_key,
109 id, api_key, _ = common_util.parse_common_args(args, kwargs)
110 if not api_key:
112 api_key = self._oauth.get_api_key_from_access_token(access_token)
[all …]
Dregistration_tickets.py56 def _finalize(self, id, api_key, ticket): argument
65 updated_data_val = self.resource.update_data_val(id, api_key, new_data)
67 api_key, updated_data_val.get('deviceDraft'))
107 id, api_key, _ = common_util.parse_common_args(args, kwargs)
108 return self.resource.get_data_val(id, api_key)
126 id, api_key, operation = common_util.parse_common_args(
129 ticket = self.resource.get_data_val(id, api_key)
131 return self._finalize(id, api_key, ticket)
155 return self.resource.update_data_val(id, api_key, data_in=data)
171 id, api_key, _ = common_util.parse_common_args(args, kwargs)
[all …]
Dcommon_util_unittest.py51 id, api_key, op = common_util.parse_common_args(
55 self.assertEquals(key, api_key)
59 id, api_key, op = common_util.parse_common_args((id,), dict(key=key))
61 self.assertEquals(key, api_key)
65 id, api_key, op = common_util.parse_common_args((id,), dict())
67 self.assertIsNone(api_key)
71 id, api_key, op = common_util.parse_common_args(tuple(), dict())
73 self.assertIsNone(api_key)
Dresource_method.py36 id, api_key, _ = common_util.parse_common_args(args, kwargs)
41 return self.resource.update_data_val(id, api_key, data_in=data)
56 id, api_key, _ = common_util.parse_common_args(args, kwargs)
62 id, api_key, data_in=data, update=False)
Dcommon_util.py64 A 3-tuple containing the id parsed from the args_tuple, api_key,
73 api_key = kwargs.get('key')
90 return id, api_key, operation
Dcommands_unittest.py22 Note unlike other unittests in this project, I set the api_key for all
25 # commands.devices_commands[(id, api_key)] = dict of commands by command id.
/external/autotest/client/common_lib/cros/fake_device_server/client_lib/
Dclient_lib_test.py33 API_KEY = 'AIzaSyC55ef0RkaFTQvGvTXL_HIh6KI3pzVq4w0' variable
53 server_url, api_key = 'http://localhost:8080', None
61 server_url, api_key = SERVER_URL, API_KEY
66 api_key=api_key,
85 api_key=api_key, access_token=robot_token)
99 api_key=api_key,
Dcommon_client.py18 def __init__(self, method, server_url=_DEFAULT_SERVER_URL, api_key=None, argument
23 @param api_key: API key to use with remote server.
28 self.api_key = api_key
66 if self.api_key:
67 params.setdefault('key', self.api_key)
/external/google-breakpad/src/common/linux/
Dsymbol_collector_client.cc46 const string& api_key, in CreateUploadUrl() argument
52 if (!api_key.empty()) { in CreateUploadUrl()
53 url += "?key=" + api_key; in CreateUploadUrl()
102 const string& api_key, in CompleteUpload() argument
111 if (!api_key.empty()) { in CompleteUpload()
112 url += "?key=" + api_key; in CompleteUpload()
155 const string& api_key, in CheckSymbolStatus() argument
162 if (!api_key.empty()) { in CheckSymbolStatus()
163 url += "?key=" + api_key; in CheckSymbolStatus()
Dsymbol_collector_client.h65 const string& api_key,
71 const string& api_key,
80 const string& api_key,
Dsymbol_upload.cc177 options.api_key, in SymUploadV2Start()
194 options.api_key, in SymUploadV2Start()
229 options.api_key, in SymUploadV2Start()
/external/grpc-grpc/tools/run_tests/python_utils/
Dupload_rbe_results.py53 assert os.path.isfile(api_key_file), 'Must add --api_key arg if not on ' \
111 def _get_resultstore_data(api_key, invocation_id): argument
114 api_key: String of ResultStore API key
126 % (invocation_id, api_key, page_token),
141 argp.add_argument('--api_key', default='', type=str)
145 api_key = args.api_key or _get_api_key() variable
147 resultstore_actions = _get_resultstore_data(api_key, invocation_id)
/external/google-breakpad/src/common/windows/
Dsymbol_collector_client.cc14 wstring& api_key, in CreateUploadUrl() argument
18 L"?key=" + api_key; in CreateUploadUrl()
68 wstring& api_key, in CompleteUpload() argument
74 L"?key=" + api_key; in CompleteUpload()
118 wstring& api_key, in CheckSymbolStatus() argument
125 L"?key=" + api_key; in CheckSymbolStatus()
Dsymbol_collector_client.h66 wstring& api_key,
73 wstring& api_key,
82 wstring& api_key,
/external/webrtc/tools_webrtc/android/
Drelease_aar.py239 api_key = os.environ.get('BINTRAY_API_KEY', None)
240 if not user or not api_key:
261 _UploadFile(user, api_key, aar_file, version, base_name + '.aar')
262 _UploadFile(user, api_key, third_party_licenses_file, version,
264 _UploadFile(user, api_key, pom_file, version, base_name + '.pom')
266 tests_pass = skip_tests or _TestAAR(build_dir, user, api_key, version)
269 _PublishAAR(user, api_key, version, {'discard': True})
270 _DeleteUnpublishedVersion(user, api_key, version)
275 _PublishAAR(user, api_key, version, {})
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dupload_rbe_results.py54 assert os.path.isfile(api_key_file), 'Must add --api_key arg if not on ' \
111 def _get_resultstore_data(api_key, invocation_id): argument
114 api_key: String of ResultStore API key
126 % (invocation_id, api_key, page_token),
142 argp.add_argument('--api_key',
165 api_key = args.api_key or _get_api_key() variable
167 resultstore_actions = _get_resultstore_data(api_key, invocation_id)
/external/libopus/
D.appveyor.yml15 api_key:
37 - ps: if ($env:api_key -and "$env:configuration/$env:platform" -eq "ReleaseDLL_fixed/x64") { Start-…
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/
Dapi.py117 api_key=self.private_api_key)
127 api_key=self.private_api_key)
146 def _build_from_discovery_v2(self, api_name, version, *, api_key=None): argument
147 key_arg = f'&key={api_key}' if api_key else ''
/external/adhd/scripts/audio_tuning/frontend/
Dsetup_credential.js9 * 3. Fill in <API_KEY> and <CLIENT_ID> below from credential page. */
10 document.write('<script src="https://www.google.com/jsapi?key=<API_KEY>" type="text/javascript"></s…
/external/python/google-api-python-client/docs/
Dmocks.md21 api_key = 'your_api_key'
22 service = build('books', 'v1', http=http, developerKey=api_key)
100 api_key = 'your_api_key'
/external/google-breakpad/src/tools/windows/symupload/
Dsymupload.cc164 const wchar_t* api_key, in DoSymUploadV2() argument
170 wstring key(api_key); in DoSymUploadV2()
281 const wchar_t* api_key = nullptr; in wmain() local
331 api_key = argv[currentarg++]; in wmain()
335 api_key, in wmain()
/external/python/apitools/apitools/gen/
Dutil.py201 'user_agent', 'client_class_name', 'url_version', 'api_key',
208 scope_ls, client_id, client_secret, user_agent, names, api_key): argument
234 'api_key': api_key,
/external/libiio/
D.travis.yml89 api_key:
101 api_key:
/external/avb/
Daftltool1510 if self.transparency_log_config.api_key:
1511 metadata.append(('x-api-key', self.transparency_log_config.api_key))
2016 api_key: The API key to use to interact with the transparency log
2026 It must be in the format: host:port,key_file[,api_key].
2034 api_key = None
2049 api_key = rest[0]
2050 return TransparencyLogConfig(target, pub_key, api_key)
2052 def __init__(self, target, pub_key, api_key=None): argument
2056 self.api_key = api_key
2131 'host:port,publickey_file[,api_key] format. The '
[all …]

123