/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/ |
H A D | apis_internal.py | 35 def _GetApiNameAndAlias(api_name): argument 37 return (apis_util._API_NAME_ALIASES.get(api_name, api_name), api_name) 40 def _GetDefaultVersion(api_name): argument 41 api_name, _ = _GetApiNameAndAlias(api_name) 54 def _GetVersions(api_name): argument 66 api_name, _ = _GetApiNameAndAlias(api_name) 88 api_name, api_name_alias = _GetApiNameAndAlias(api_name) 89 if api_name not in apis_map.MAP: 96 api_name, api_version)) 139 def _GetClientInstance(api_name, argument [all …]
|
H A D | apis.py | 39 def ConstructApiDef(api_name, argument 55 api_name, _ = apis_internal._GetApiNameAndAlias(api_name) 58 base=base_pkg, api_name=api_name, api_version=api_version,) 62 client_cls_path = client_cls_path_fmt.format(api_name=api_name, 67 messages_mod_path = messages_mod_path_fmt.format(api_name=api_name, 89 api_name, _ = apis_internal._GetApiNameAndAlias(api_name) 95 apis_map.MAP[api_name] = api_versions 110 def GetVersions(api_name): argument 140 api_name, api_name_alias = apis_internal._GetApiNameAndAlias(api_name) 141 if api_name not in apis_map.MAP: [all …]
|
H A D | resource.py | 45 api_name, argument 54 self.api_name = api_name 66 return self.api_name + '.' + self.name 117 return (self.api_name == other.api_name and 129 return self._CmpHelper((self.api_name, self.api_version, self.name), 133 return self._CmpHelper((self.api_name, self.api_version, self.name), 196 return api_name, version, resource_path 271 for api_name in k8s_api_names: 272 if (api_name == domain_first_part or 273 domain_first_part.endswith('-' + api_name)): [all …]
|
/dports/cad/gmsh/gmsh-4.9.2-source/api/ |
H A D | GenApi.py | 116 a.c_arg = api_name 142 a.c_arg = api_name 168 a.c_arg = api_name 192 a.c_arg = api_name 223 a.c_arg = api_name 255 a.c_arg = api_name 295 a.c_arg = api_name 335 a.c_arg = api_name 438 a.c_arg = api_name 462 a.c_arg = api_name [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/weston/src/libweston/ |
H A D | plugin-registry.c | 66 const char *api_name, in weston_plugin_api_register() argument 72 assert(api_name); in weston_plugin_api_register() 76 if (!api_name || !vtable || strlen(api_name) == 0) in weston_plugin_api_register() 80 if (strcmp(wpa->api_name, api_name) == 0) in weston_plugin_api_register() 87 wpa->api_name = strdup(api_name); in weston_plugin_api_register() 91 if (!wpa->api_name) { in weston_plugin_api_register() 114 free(wpa->api_name); in weston_plugin_api_destroy_list() 136 const char *api_name, in weston_plugin_api_get() argument 141 assert(api_name); in weston_plugin_api_get() 142 if (!api_name) in weston_plugin_api_get() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/weston/src/libweston/ |
H A D | plugin-registry.c | 66 const char *api_name, in weston_plugin_api_register() argument 72 assert(api_name); in weston_plugin_api_register() 76 if (!api_name || !vtable || strlen(api_name) == 0) in weston_plugin_api_register() 80 if (strcmp(wpa->api_name, api_name) == 0) in weston_plugin_api_register() 87 wpa->api_name = strdup(api_name); in weston_plugin_api_register() 91 if (!wpa->api_name) { in weston_plugin_api_register() 114 free(wpa->api_name); in weston_plugin_api_destroy_list() 136 const char *api_name, in weston_plugin_api_get() argument 141 assert(api_name); in weston_plugin_api_get() 142 if (!api_name) in weston_plugin_api_get() [all …]
|
/dports/www/py-django-tastypie/django-tastypie-0.14.4/tastypie/ |
H A D | api.py | 27 self.api_name = api_name 57 resource._meta.api_name = self.api_name 58 resource.__class__.Meta.api_name = self.api_name 106 …(?P<api_name>%s)%s$" % (self.api_name, trailing_slash), self.wrap_view('top_level'), name="api_%s_… 110 self._registry[name].api_name = self.api_name 123 def top_level(self, request, api_name=None): argument 133 if api_name is None: 134 api_name = self.api_name 139 'api_name': api_name, 147 'api_name': api_name, [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/tools/regen_apis/ |
H A D | main.py | 83 api_name, api_version = args.api.split('/') 85 api_name, api_version = args.api, None 86 api_section = config['apis'].get(api_name) 90 .format(api_name=api_name, config_file=args.config)) 98 api_name=api_name, 102 regenerate_list = [(api_name, api_version, api_config)] 105 (api_name, api_version, api_config) 109 (api_name, api_version, api_config) 115 logging.info('Generating %s %s', api_name, api_version) 117 api_name, api_version, api_config) [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/command_lib/util/apis/ |
H A D | registry.py | 44 def __init__(self, api_name): argument 47 .format(api=api_name) 53 def __init__(self, api_name, version): argument 62 def __init__(self, api_name): argument 109 self.api_name = collection_info.api_name 431 api_name, _ = apis_internal._GetApiNameAndAlias(api_name) 435 raise UnknownAPIError(api_name) 444 raise NoDefaultVersionError(api_name) 447 def GetAPI(api_name, api_version=None): argument 492 if api_name: [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/platform/mediastream/ |
H A D | webrtc_uma_histograms.cc | 23 void UpdateWebRTCMethodCount(RTCAPIName api_name) { in UpdateWebRTCMethodCount() argument 25 << static_cast<int>(api_name); in UpdateWebRTCMethodCount() 26 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCount", api_name, in UpdateWebRTCMethodCount() 28 PerSessionWebRTCAPIMetrics::GetInstance()->LogUsageOnlyOnce(api_name); in UpdateWebRTCMethodCount() 56 void PerSessionWebRTCAPIMetrics::LogUsage(RTCAPIName api_name) { in LogUsage() argument 58 << static_cast<int>(api_name); in LogUsage() 59 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCountPerSession", api_name, in LogUsage() 63 void PerSessionWebRTCAPIMetrics::LogUsageOnlyOnce(RTCAPIName api_name) { in LogUsageOnlyOnce() argument 65 if (!has_used_api_[static_cast<int>(api_name)]) { in LogUsageOnlyOnce() 66 has_used_api_[static_cast<int>(api_name)] = true; in LogUsageOnlyOnce() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/platform/mediastream/ |
H A D | webrtc_uma_histograms.cc | 23 void UpdateWebRTCMethodCount(RTCAPIName api_name) { in UpdateWebRTCMethodCount() argument 25 << static_cast<int>(api_name); in UpdateWebRTCMethodCount() 26 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCount", api_name, in UpdateWebRTCMethodCount() 28 PerSessionWebRTCAPIMetrics::GetInstance()->LogUsageOnlyOnce(api_name); in UpdateWebRTCMethodCount() 56 void PerSessionWebRTCAPIMetrics::LogUsage(RTCAPIName api_name) { in LogUsage() argument 58 << static_cast<int>(api_name); in LogUsage() 59 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCountPerSession", api_name, in LogUsage() 63 void PerSessionWebRTCAPIMetrics::LogUsageOnlyOnce(RTCAPIName api_name) { in LogUsageOnlyOnce() argument 65 if (!has_used_api_[static_cast<int>(api_name)]) { in LogUsageOnlyOnce() 66 has_used_api_[static_cast<int>(api_name)] = true; in LogUsageOnlyOnce() [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/api_lib/regen/ |
H A D | generate.py | 82 root_dir.replace('/', '.'), api_name, api_version), 89 for subdir in [root_dir, api_name, api_version]: 118 for api_name, api_version_config in six.iteritems(api_config): 119 api_versions_map = apis_map.setdefault(api_name, {}) 126 .format(api_name)) 130 if api_name == 'admin' and version == 'v1': 134 '_'.join([api_name, version, 'client']), 135 _CamelCase(api_name) + _CamelCase(version)]) 144 apis_with_default.add(api_name) 199 if discovery_doc.api_name != api_name: [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/surface/meta/apis/ |
H A D | regen.py | 92 api_name, api_version = match.group(1), match.group(2) 93 if api_name not in config['apis']: 94 log.warning('No such api %s in config, adding...', api_name) 97 elif api_version not in config['apis'][api_name]: 103 discovery_doc = api_name + '_' + api_version + '.json' 122 (api_name, api_version, api_config) 125 if re.match(regex_patern, api_name + '/' + api_version) 132 .format(api_name=','.join(args.api), 140 .format(api_name, 144 api_name, api_version, api_config) [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/extensions/renderer/bindings/ |
H A D | api_bindings_system.cc | 50 const std::string& api_name, in CreateAPIInstance() argument 53 std::unique_ptr<APIBinding>& binding = api_bindings_[api_name]; in CreateAPIInstance() 55 binding = CreateNewAPIBinding(api_name); in CreateAPIInstance() 62 const std::string& api_name) { in CreateNewAPIBinding() argument 79 auto iter = binding_hooks_.find(api_name); in CreateNewAPIBinding() 84 hooks = std::make_unique<APIBindingHooks>(api_name); in CreateNewAPIBinding() 107 std::string api_name = type_name.substr(0, dot); in InitializeType() local 110 DCHECK(api_bindings_.find(api_name) == api_bindings_.end()) << api_name; in InitializeType() 112 api_bindings_[api_name] = CreateNewAPIBinding(api_name); in InitializeType() 129 const std::string& api_name) { in GetHooksForAPI() argument [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/extensions/renderer/bindings/ |
H A D | api_bindings_system.cc | 51 const std::string& api_name, in CreateAPIInstance() argument 54 std::unique_ptr<APIBinding>& binding = api_bindings_[api_name]; in CreateAPIInstance() 56 binding = CreateNewAPIBinding(api_name); in CreateAPIInstance() 63 const std::string& api_name) { in CreateNewAPIBinding() argument 80 auto iter = binding_hooks_.find(api_name); in CreateNewAPIBinding() 85 hooks = std::make_unique<APIBindingHooks>(api_name); in CreateNewAPIBinding() 108 std::string api_name = type_name.substr(0, dot); in InitializeType() local 111 DCHECK(api_bindings_.find(api_name) == api_bindings_.end()) << api_name; in InitializeType() 113 api_bindings_[api_name] = CreateNewAPIBinding(api_name); in InitializeType() 130 const std::string& api_name) { in GetHooksForAPI() argument [all …]
|
/dports/devel/grpc/grpc-1.42.0/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/gcp/ |
H A D | api.py | 112 api_name = 'compute' 125 api_name = 'networksecurity' 128 api_name, 139 api_name = 'networkservices' 142 api_name, 165 api_name = 'iam' 173 api = discovery.build(api_name, 181 api_name, argument 198 api_name, 265 self.api_name = api_name [all …]
|
/dports/devel/py-pyface/pyface-7.2.0/pyface/qt/ |
H A D | __init__.py | 58 for api_name, module in QtAPIs: 60 qt_api = api_name 71 for api_name, module in QtAPIs: 73 if api_name == "pyqt": 78 qt_api = api_name 86 elif qt_api not in {api_name for api_name, module in QtAPIs}:
|
/dports/devel/google-cloud-cpp117/google-cloud-cpp-1.17.0/google/cloud/storage/testing/ |
H A D | retry_tests.h | 55 char const* api_name) { in TooManyFailuresStatusTest() argument 74 EXPECT_THAT(status.message(), HasSubstr(api_name)); in TooManyFailuresStatusTest() 105 char const* api_name) { in NonIdempotentFailuresStatusTest() argument 125 EXPECT_THAT(status.message(), HasSubstr(api_name)); in NonIdempotentFailuresStatusTest() 155 char const* api_name) { in IdempotentFailuresStatusTest() argument 177 EXPECT_THAT(status.message(), HasSubstr(api_name)); in IdempotentFailuresStatusTest() 209 char const* api_name) { in TooManyFailuresStatusTest() argument 211 api_name); in TooManyFailuresStatusTest() 213 api_name); in TooManyFailuresStatusTest() 243 char const* api_name) { in PermanentFailureStatusTest() argument [all …]
|
/dports/devel/google-cloud-cpp/google-cloud-cpp-1.21.0/google/cloud/storage/testing/ |
H A D | retry_tests.h | 55 char const* api_name) { in TooManyFailuresStatusTest() argument 74 EXPECT_THAT(status.message(), HasSubstr(api_name)); in TooManyFailuresStatusTest() 105 char const* api_name) { in NonIdempotentFailuresStatusTest() argument 125 EXPECT_THAT(status.message(), HasSubstr(api_name)); in NonIdempotentFailuresStatusTest() 155 char const* api_name) { in IdempotentFailuresStatusTest() argument 177 EXPECT_THAT(status.message(), HasSubstr(api_name)); in IdempotentFailuresStatusTest() 209 char const* api_name) { in TooManyFailuresStatusTest() argument 211 api_name); in TooManyFailuresStatusTest() 213 api_name); in TooManyFailuresStatusTest() 243 char const* api_name) { in PermanentFailureStatusTest() argument [all …]
|
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/third_party/apitools/samples/ |
H A D | uptodate_check_test.py | 25 def GetSampleClientPath(api_name, *path): argument 26 return os.path.join(os.path.dirname(__file__), api_name + '_sample', *path) 43 def _CheckGeneratedFiles(self, api_name, api_version): argument 44 prefix = api_name + '_' + api_version 50 GetSampleClientPath(api_name, prefix + '.json'), 54 'samples.{0}_sample.{0}_{1}'.format(api_name, api_version), 69 api_name, prefix, expected_file)),
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/gsutil/third_party/apitools/samples/ |
H A D | uptodate_check_test.py | 25 def GetSampleClientPath(api_name, *path): argument 26 return os.path.join(os.path.dirname(__file__), api_name + '_sample', *path) 43 def _CheckGeneratedFiles(self, api_name, api_version): argument 44 prefix = api_name + '_' + api_version 50 GetSampleClientPath(api_name, prefix + '.json'), 54 'samples.{0}_sample.{0}_{1}'.format(api_name, api_version), 69 api_name, prefix, expected_file)),
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/depot_tools/external_bin/gsutil/gsutil_4.28/gsutil/third_party/apitools/samples/ |
H A D | uptodate_check_test.py | 24 def GetSampleClientPath(api_name, *path): argument 25 return os.path.join(os.path.dirname(__file__), api_name + '_sample', *path) 43 def _CheckGeneratedFiles(self, api_name, api_version): argument 44 prefix = api_name + '_' + api_version 51 GetSampleClientPath(api_name, prefix + '.json'), 55 'samples.{0}_sample.{0}_{1}'.format(api_name, api_version), 67 api_name, prefix, expected_file)),
|
/dports/devel/py-moto/moto-2.2.16/moto/kinesisvideoarchivedmedia/ |
H A D | models.py | 17 def _get_streaming_url(self, stream_name, stream_arn, api_name): argument 21 data_endpoint = stream.get_data_endpoint(api_name) 27 relative_path = api_to_relative_path[api_name] 44 api_name = "GET_HLS_STREAMING_SESSION_URL" 45 url = self._get_streaming_url(stream_name, stream_arn, api_name) 60 api_name = "GET_DASH_STREAMING_SESSION_URL" 61 url = self._get_streaming_url(stream_name, stream_arn, api_name)
|
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/googlecloudsdk/core/ |
H A D | resources.py | 817 self.registered_apis[api_name].append(api_version) 830 api_name = collection_info.api_name 853 def _AddParserForUriPath(self, api_name, api_version, argument 856 tokens = [api_name, api_version] + path.split('/') 891 api_name = _APINameFromCollection(collection) 961 api_name = _APINameFromCollection(collection_name) 964 .get(api_name, {}).get(api_version, {}) 1006 api_name, api_version, resource_path = ( 1010 api_name = api_name.replace('-', '_') 1016 versions = apis_internal._GetVersions(api_name) [all …]
|
/dports/math/py-optuna/optuna-2.10.0/optuna/integration/ |
H A D | lightgbm.py | 23 for api_name in lgb.__dict__["__all__"]: 24 if api_name in _names_from_tuners: 26 setattr(sys.modules[__name__], api_name, lgb.__dict__[api_name]) 29 for api_name in _names_from_tuners: 30 setattr(sys.modules[__name__], api_name, tuner.__dict__[api_name])
|