Search is not available for this dataset
id int64 0 10.8M | vector listlengths 1.54k 1.54k | ast_depth int64 3 164 | ast_data stringlengths 297 510k | full_path stringlengths 0 319 | code stringlengths 60 56.5k |
|---|---|---|---|---|---|
11,901 | [
0.039852939546108246,
0.011989113874733448,
0.07945024967193604,
-0.049439117312431335,
-0.01495443843305111,
0.03330877423286438,
0.006965956650674343,
0.00594023521989584,
0.01739571802318096,
0.04243481904268265,
0.03619740903377533,
-0.028323963284492493,
-0.038421403616666794,
-0.0077... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def enforcement_readiness_period(self):
if 'staging_settings' in self._values:
if self._values['staging_settings'] is None:
return None
if 'enforcementReadinessPeriod' in self._values['staging_settings']:
return self._values['staging_settings']['enforcemen... | |
11,902 | [
0.05903537571430206,
0.027685916051268578,
0.01664295233786106,
-0.052022308111190796,
-0.02037191577255726,
0.017048558220267296,
-0.025723304599523544,
-0.03558870032429695,
0.006087368819862604,
0.022687798365950584,
0.02030649408698082,
-0.0013967256527394056,
-0.017964443191885948,
-0... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def place_signatures_in_staging(self):
if 'staging_settings' in self._values:
if self._values['staging_settings'] is None:
return None
if 'placeSignaturesInStaging' in self._values['staging_settings']:
return flatten_boolean(self._values['staging_settings'... | |
11,903 | [
0.008034630678594112,
0.061657313257455826,
0.004739496856927872,
-0.04004450887441635,
0.018127623945474625,
0.0003121167537756264,
-0.0018756244098767638,
-0.006368059199303389,
0.03618507832288742,
-0.0006169240223243833,
-0.002884339075535536,
-0.034875210374593735,
0.03155376389622688,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def trigger_asm_irule_event(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'triggerAsmIruleEvent' in self._values['attributes']:
return self._values['attributes']['triggerAsmIruleEvent']
if 'general' i... | |
11,904 | [
0.029930362477898598,
0.02995305508375168,
0.020399846136569977,
-0.03297105059027672,
0.012185446918010712,
-0.006654343567788601,
-0.005562304984778166,
-0.004946792498230934,
0.06585133820772171,
0.02489280328154564,
-0.0024265944957733154,
-0.06439907103776932,
0.03426447883248329,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def path_parameter_handling(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'pathParameterHandling' in self._values['attributes']:
return self._values['attributes']['pathParameterHandling']
if 'general'... | |
11,905 | [
-0.018800130113959312,
0.026603957638144493,
-0.027541430667042732,
-0.03516789898276329,
-0.00004389454988995567,
-0.02759210392832756,
-0.029163004830479622,
-0.030632557347416878,
0.052042409777641296,
0.02989778108894825,
0.029568398371338844,
-0.014214114286005497,
0.024310950189828873,... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def inspect_http_uploads(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'inspectHttpUploads' in self._values['attributes']:
return flatten_boolean(self._values['attributes']['inspectHttpUploads'])
if '... | |
11,906 | [
-0.008541569113731384,
-0.01969570480287075,
0.0011136697139590979,
0.0007034746231511235,
0.04256200045347214,
-0.03241611272096634,
-0.05519362911581993,
0.028611402958631516,
0.039340678602457047,
0.03140152245759964,
0.04192788153886795,
-0.044109247624874115,
-0.005694379564374685,
0.... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def mask_credit_card_numbers_in_request(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'maskCreditCardNumbersInRequest' in self._values['attributes']:
return flatten_boolean(self._values['attributes']['maskCre... | |
11,907 | [
0.0352168045938015,
-0.01536419428884983,
0.032799966633319855,
-0.05416310206055641,
0.00430499529466033,
0.015148404985666275,
-0.023909449577331543,
-0.0315483883023262,
0.04097837954759598,
0.02529050037264824,
0.026196815073490143,
-0.04842310771346092,
-0.04404258728027344,
0.0107948... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def maximum_http_header_length(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'maximumHttpHeaderLength' in self._values['attributes']:
if self._values['attributes']['maximumHttpHeaderLength'] == 'any':
... | |
11,908 | [
0.009510648436844349,
-0.01219936367124319,
-0.03362411633133888,
-0.022165212780237198,
0.054866790771484375,
0.012927684001624584,
-0.014517850242555141,
0.020757127553224564,
0.03957206755876541,
0.035857632756233215,
0.042776674032211304,
-0.035711970180273056,
0.008594178594648838,
0.... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def use_dynamic_session_id_in_url(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'useDynamicSessionIdInUrl' in self._values['attributes']:
return flatten_boolean(self._values['attributes']['useDynamicSessionId... | |
11,909 | [
0.03695717453956604,
-0.015769116580486298,
0.022261006757616997,
-0.04890051856637001,
0.0075919353403151035,
0.019313104450702667,
-0.013796621933579445,
-0.0279617328196764,
0.03572165593504906,
0.02388668991625309,
0.038994695991277695,
-0.05457956716418266,
-0.030714554712176323,
0.01... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def maximum_cookie_header_length(self):
if 'attributes' in self._values:
if self._values['attributes'] is None:
return None
if 'maximumCookieHeaderLength' in self._values['attributes']:
if self._values['attributes']['maximumCookieHeaderLength'] == 'any':
... | |
11,910 | [
0.025075627490878105,
0.015229511074721813,
-0.009878083132207394,
0.006777196191251278,
0.0455222986638546,
0.0016767167253419757,
-0.015702636912465096,
-0.029538346454501152,
0.041711725294589996,
0.03557388857007027,
0.014500643126666546,
0.0028755131643265486,
0.009750211611390114,
0.... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def trust_xff(self):
if 'trust_xff' in self._values:
if self._values['trust_xff'] is None:
return None
return flatten_boolean(self._values['trust_xff'])
if 'general' in self._values:
if self._values['general'] is None:
return None
... | |
11,911 | [
0.014420888386666775,
-0.014455609023571014,
-0.005028792656958103,
-0.005077981390058994,
0.007575016934424639,
-0.012349187396466732,
-0.08147917687892914,
-0.00977402925491333,
0.06036866083741188,
0.040554407984018326,
0.005526463966816664,
-0.03900352492928505,
-0.014397740364074707,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def allowed_response_codes(self):
if 'allowed_response_codes' in self._values:
if self._values['allowed_response_codes'] is None:
return None
return self._values['allowed_response_codes']
if 'general' in self._values:
if self._values['general'] is None... | |
11,912 | [
0.040270689874887466,
-0.002117337193340063,
0.0318957082927227,
-0.03257986158132553,
0.018637284636497498,
-0.008829118683934212,
-0.020666154101490974,
-0.02592705748975277,
0.0356939397752285,
-0.01506317313760519,
-0.019498374313116074,
-0.023202240467071533,
-0.04173336178064346,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def custom_xff_headers(self):
if 'custom_xff_headers' in self._values:
if self._values['custom_xff_headers'] is None:
return None
return self._values['custom_xff_headers']
if 'general' in self._values:
if self._values['general'] is None:
... | |
11,913 | [
0.04245225340127945,
-0.027754684910178185,
0.0014991299249231815,
-0.017978474497795105,
-0.03433866426348686,
-0.06353428959846497,
-0.01313470583409071,
0.01977410539984703,
0.015384785830974579,
0.03338542953133583,
0.03837329149246216,
-0.04788348451256752,
0.004558352287858725,
0.016... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "items", "annotation": null, "type_comment": null}}], "kwarg": nul... | def format_csrf_collection(self, items):
result = list()
key_map = {
'requiredParameters': 'csrf_url_required_parameters',
'url': 'csrf_url',
'method': 'csrf_url_method',
'enforcementAction': 'csrf_url_enforcement_action',
'id': 'csrf_url_id',
... | |
11,914 | [
0.028952233493328094,
-0.0061836522072553635,
0.03299412503838539,
-0.01083512045443058,
0.02662375383079052,
0.020516984164714813,
-0.003484482644125819,
0.00694699864834547,
0.03374099358916283,
0.01806768774986267,
0.0058980840258300304,
-0.04595453292131424,
0.00103037990629673,
-0.002... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def csrf_protection_expiration_time_in_seconds(self):
if 'csrf_protection' in self._values:
if 'expirationTimeInSeconds' in self._values['csrf_protection']:
if self._values['csrf_protection']['expirationTimeInSeconds'] is None:
return None
if self.... | |
11,915 | [
0.015670906752347946,
0.031068626791238785,
0.015894422307610512,
-0.0414000004529953,
0.003660063026472926,
0.04686370864510536,
-0.04244307428598404,
-0.0361846424639225,
-0.011647630482912064,
0.022798560559749603,
0.03566310927271843,
-0.07842903584241867,
-0.018638692796230316,
-0.024... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class AsmPolicyFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(AsmPolicyFactManager, self).__init__(**kwargs)
self.want = AsmPolicyFactParameters(params=self.module.params)
def... | |
11,916 | [
0.001448431401513517,
-0.030681032687425613,
0.031009288504719734,
-0.016642600297927856,
-0.0009840853745117784,
-0.04138219356536865,
-0.010564385913312435,
-0.00137799303047359,
0.027464119717478752,
0.0471813902258873,
-0.007916450500488281,
-0.05952382832765579,
0.007801560685038567,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def csrf_urls(self):
if 'csrfUrls' in self._values:
if self._values['csrfUrls'] is None:
return None
return self._values['csrfUrls']
if 'csrf-urls' in self._values:
if self._values['csrf-urls'] is None:
return None
return se... | |
11,917 | [
0.02639058046042919,
0.03732100501656532,
0.01509088184684515,
-0.05519373342394829,
0.01171820517629385,
0.05051629617810249,
-0.05524296686053276,
-0.02535662055015564,
0.009194851852953434,
0.013823051005601883,
0.03761642426252365,
-0.1008356511592865,
-0.036090102046728134,
-0.0203468... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class AsmPolicyFactManagerV12(AsmPolicyFactManager):
def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results... | |
11,918 | [
0.08990795165300369,
0.0018258026102557778,
0.002872998360544443,
-0.015137563459575176,
0.03696269541978836,
0.0356348380446434,
0.02269427292048931,
0.010121887549757957,
-0.041042834520339966,
-0.023949701339006424,
0.003386033931747079,
-0.017467347905039787,
-0.06286796927452087,
-0.0... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def increment_read(self):
n = 0
result = []
while True:
items = self.read_collection_from_device(skip=n)
if not items:
break
result.extend(items)
n = n + 10
return result | |
11,919 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,920 | [
0.030419671908020973,
0.009477770887315273,
0.0060221366584300995,
-0.013494630344212055,
0.028502676635980606,
0.018299728631973267,
-0.05816563963890076,
-0.01884203590452671,
0.013898207806050777,
0.00485239177942276,
0.017669137567281723,
-0.056450434029102325,
-0.0011665918864309788,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "skip", "annotation": null, "type_comment": null}}], "kwarg": null... | def read_collection_from_device(self, skip=0):
uri = "https://{0}:{1}/mgmt/tm/asm/policies".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
to_expand = 'policy-builder,geolocation-enforcement,csrf-protection'
query = '?$top=10&$skip... | |
11,921 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,922 | [
0.022376446053385735,
0.03522149473428726,
0.011771525256335735,
-0.06086194887757301,
0.012361031956970692,
0.051181621849536896,
-0.05490482598543167,
-0.0225750170648098,
0.01226174645125866,
0.018330566585063934,
0.03690934553742409,
-0.09794504195451736,
-0.03921773284673691,
-0.01430... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs... | class AsmPolicyFactManagerV13(AsmPolicyFactManager):
def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results... | |
11,923 | [
-0.0028288611210882664,
0.04072333499789238,
-0.0001877282775240019,
-0.047445137053728104,
0.011573031544685364,
0.02975747175514698,
-0.03822105750441551,
-0.03503188118338585,
-0.015025928616523743,
0.02277808077633381,
0.03620942309498787,
-0.08071070164442062,
-0.03952125832438469,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class AsmServerTechnologyFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(AsmServerTechnologyFactManager, self).__init__(**kwargs)
self.want = AsmServerTechnologyFactParameters(param... | |
11,924 | [
0.023853354156017303,
0.005401116795837879,
0.0025284176226705313,
-0.01977250911295414,
0.02397969551384449,
0.016778206452727318,
-0.055691514164209366,
-0.01238782424479723,
0.016032788902521133,
0.00921032577753067,
0.019279776141047478,
-0.05650010332465172,
-0.004046099726110697,
-0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "skip", "annotation": null, "type_comment": null}}], "kwarg": null... | def read_collection_from_device(self, skip=0):
uri = "https://{0}:{1}/mgmt/tm/asm/policies".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
to_expand = 'general,signature-settings,header-settings,cookie-settings,antivirus,' \
... | |
11,925 | [
0.01416272483766079,
0.02272235043346882,
-0.00784433726221323,
-0.0074628498405218124,
0.053837429732084274,
-0.010049812495708466,
-0.0438472218811512,
-0.010872394777834415,
0.007593986112624407,
-0.007069441024214029,
0.021601730957627296,
-0.040986068546772,
0.0009179543703794479,
-0.... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/asm/server-technologies".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except Val... | |
11,926 | [
0.03404514119029045,
0.03952806442975998,
0.044398944824934006,
-0.06921236962080002,
0.04110918939113617,
0.036952365189790726,
-0.04585255682468414,
-0.017634617164731026,
0.012017806991934776,
0.020108310505747795,
0.011641653254628181,
-0.09374526888132095,
-0.02323230169713497,
-0.005... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
if 'asm' not in self.provisioned_modules:
return results
if self.version_is_less_than_13():
return results
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(att... | |
11,927 | [
-0.008745088241994381,
-0.022443357855081558,
0.017762720584869385,
-0.01596156321465969,
-0.04322775453329086,
-0.03144913911819458,
-0.05721041560173035,
-0.029932375997304916,
0.013603471219539642,
0.002506214426830411,
-0.007927458733320236,
-0.09479770809412003,
0.023035842925310135,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "isUserDefined"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "assignToPolicyByDefaul... | class AsmSignatureSetsFactParameters(BaseParameters):
api_map = {
'isUserDefined': 'is_user_defined',
'assignToPolicyByDefault': 'assign_to_policy_by_default',
'defaultAlarm': 'default_alarm',
'defaultBlock': 'default_block',
'defaultLearn': 'default_learn',
}
return... | |
11,928 | [
0.010503873229026794,
0.047315437346696854,
0.010651093907654285,
-0.05596945434808731,
-0.02109736017882824,
0.03203009441494942,
-0.019036270678043365,
-0.02649971842765808,
-0.023478494957089424,
0.007066591642796993,
0.029290510341525078,
-0.09283862262964249,
-0.02617967315018177,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class AsmSignatureSetsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(AsmSignatureSetsFactManager, self).__init__(**kwargs)
self.want = AsmSignatureSetsFactParameters(params=self.mo... | |
11,929 | [
0.08145399391651154,
-0.0007320780423469841,
-0.01956445537507534,
-0.01725207269191742,
0.03692548722028732,
0.035157907754182816,
0.021162541583180428,
0.0058596511371433735,
-0.0401458740234375,
-0.025254612788558006,
0.01179194264113903,
-0.01622300036251545,
-0.05748269334435463,
-0.0... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def increment_read(self):
n = 0
result = []
while True:
items = self.read_collection_from_device(skip=n)
if not items:
break
result.extend(items)
n = n + 5
return result | |
11,930 | [
0.04377153888344765,
0.054726649075746536,
0.02931959554553032,
-0.05526462569832802,
0.0311291441321373,
0.03963891789317131,
-0.052525848150253296,
-0.014024009928107262,
0.007873986847698689,
0.006272290367633104,
0.01595582626760006,
-0.09116217494010925,
0.005471442360430956,
-0.01161... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
if 'asm' not in self.provisioned_modules:
return results
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['name'])
... | |
11,931 | [
0.0121299521997571,
-0.012368965893983841,
0.04213814064860344,
-0.02244339883327484,
-0.0057124304585158825,
0.007995013147592545,
-0.028203632682561874,
-0.017495812848210335,
0.02827533707022667,
0.022718265652656555,
0.02469012886285782,
-0.057650137692689896,
0.002956302370876074,
0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "alertTimeout"}}, {"_type": ... | class ClientSslProfilesParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'alertTimeout': 'alert_timeout',
'allowNonSsl': 'allow_non_ssl',
'authenticateDepth': 'authenticate_depth',
'authenticate': 'authenticate_frequency',
'caFile': 'ca_file',
'... | |
11,932 | [
0.026490453630685806,
0.023836378008127213,
-0.01384899765253067,
-0.02525775507092476,
0.028025038540363312,
0.004018851090222597,
-0.026264039799571037,
-0.01962255872786045,
-0.01029555406421423,
-0.007823865860700607,
0.00837103370577097,
-0.05846516042947769,
-0.006993681192398071,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "skip", "annotation": null, "type_comment": null}}], "kwarg": null... | def read_collection_from_device(self, skip=0):
uri = "https://{0}:{1}/mgmt/tm/asm/signature-sets".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
query = '?$top=5&$skip={0}'.format(skip)
resp = self.client.api.get(uri + query)
... | |
11,933 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,934 | [
0.017110511660575867,
0.03383292630314827,
0.013800271786749363,
-0.04052188992500305,
-0.01665392704308033,
0.04410608112812042,
-0.019005337730050087,
-0.0028251176699995995,
-0.022977624088525772,
0.024952352046966553,
0.0353168249130249,
-0.08072417229413986,
-0.022737916558980942,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class ClientSslProfilesFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(ClientSslProfilesFactManager, self).__init__(**kwargs)
self.want = ClientSslProfilesParameters(params=self.mod... | |
11,935 | [
0.01448614802211523,
0.003901012474671006,
0.002145556965842843,
-0.008739432319998741,
0.037589456886053085,
0.0006026190822012722,
-0.04264330863952637,
-0.0002720155753195286,
0.002029108814895153,
0.0027729212306439877,
0.007371167186647654,
-0.025315824896097183,
0.021391522139310837,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/profile/client-ssl".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except Valu... | |
11,936 | [
0.0066758194006979465,
0.004350753966718912,
0.018880313262343407,
-0.020066628232598305,
0.001043621334247291,
-0.006787735968828201,
-0.07144749164581299,
-0.0417000874876976,
0.0014423239044845104,
-0.004563395399600267,
-0.013228530064225197,
-0.020503103733062744,
-0.003228791058063507,... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "autoSync"}}, {"_type": "Con... | class DeviceGroupsParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'autoSync': 'autosync_enabled',
'asmSync': 'asm_sync_enabled',
'devicesReference': 'devices',
'fullLoadOnSync': 'full_load_on_sync',
'incrementalConfigSyncSizeMax': 'incremental_config_... | |
11,937 | [
0.01245153695344925,
0.05116109922528267,
0.0059717148542404175,
-0.03413075953722,
-0.007125176023691893,
0.0401112362742424,
-0.015441774390637875,
-0.026374831795692444,
-0.011768220923841,
0.013222457841038704,
0.026164580136537552,
-0.05415133759379387,
-0.03560251742601395,
-0.012182... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class DeviceGroupsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(DeviceGroupsFactManager, self).__init__(**kwargs)
self.want = DeviceGroupsParameters(params=self.module.params)
... | |
11,938 | [
0.035557523369789124,
0.04953530803322792,
0.03354668617248535,
-0.07023224234580994,
0.023455705493688583,
0.055665917694568634,
-0.04906938225030899,
-0.007007284555584192,
-0.013033672235906124,
0.04698497802019119,
0.002259128959849477,
-0.07180167734622955,
-0.030751127749681473,
-0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,939 | [
0.019862251356244087,
0.006238784175366163,
-0.01136639341711998,
-0.023693490773439407,
-0.0027880652341991663,
0.00793448369950056,
-0.08278252929449081,
-0.019202491268515587,
0.02358931675553322,
0.03370564058423042,
-0.004421550314873457,
-0.022443417459726334,
0.002264308277517557,
0... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "activeModules"}}, {"_type":... | class DevicesParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'activeModules': 'active_modules',
'baseMac': 'base_mac_address',
'chassisId': 'chassis_id',
'chassisType': 'chassis_type',
'configsyncIp': 'configsync_address',
'failoverState': 'fa... | |
11,940 | [
0.024422183632850647,
0.03162948042154312,
-0.004062712658196688,
0.007580287288874388,
0.032754186540842056,
0.012991499155759811,
-0.021713707596063614,
-0.015849171206355095,
0.015918029472231865,
-0.016629578545689583,
0.014747417531907558,
-0.0313081368803978,
0.0021059541031718254,
-... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/cm/device-group/?expandSubcollections=true".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()... | |
11,941 | [
0.04150441288948059,
-0.028110014274716377,
0.05316756293177605,
-0.032529253512620926,
0.000057393888710066676,
-0.027631644159555435,
-0.04038821533322334,
-0.02072942815721035,
0.058999139815568924,
0.03774578124284744,
-0.011298676952719688,
0.02567259781062603,
0.0074147568084299564,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def unicast_addresses(self):
if self._values['unicast_addresses'] is None:
return None
result = []
for addr in self._values['unicast_addresses']:
tmp = {}
for key in ['effectiveIp', 'effectivePort', 'ip', 'port']:
if key in addr:
... | |
11,942 | [
0.012371477670967579,
0.01616727188229561,
-0.03112334944307804,
-0.050004992634058,
0.004614972043782473,
0.04085615649819374,
-0.06008385494351387,
0.009895019233226776,
0.026516487821936607,
0.03696303442120552,
0.0028171066660434008,
-0.06332812458276749,
0.0035578811075538397,
-0.0013... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def active_modules(self):
if self._values['active_modules'] is None:
return None
result = []
for x in self._values['active_modules']:
parts = x.split('|')
result += parts[2:]
return list(set(result)) | |
11,943 | [
0.036342423409223557,
0.054344262927770615,
-0.023494336754083633,
-0.03888300433754921,
0.0026464397087693214,
0.033898625522851944,
-0.044956207275390625,
-0.027535071596503258,
-0.004309916403144598,
0.034939054399728775,
0.026059115305542946,
-0.06261930614709854,
-0.05255375802516937,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class DevicesFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(DevicesFactManager, self).__init__(**kwargs)
self.want = DevicesParameters(params=self.module.params)
def exec_modu... | |
11,944 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,945 | [
0.029920736327767372,
0.02930722013115883,
-0.01744982972741127,
0.005683877971023321,
0.04381924867630005,
0.004560080822557211,
-0.02848133072257042,
-0.012801261618733406,
0.008848798461258411,
-0.003218012861907482,
0.008766209706664085,
-0.030274687334895134,
-0.0005722222849726677,
-... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/cm/device".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ex:... | |
11,946 | [
-0.02091323770582676,
0.04167979955673218,
0.03701068460941315,
-0.034688349813222885,
-0.02681685797870159,
-0.018150880932807922,
-0.01695304550230503,
-0.022758882492780685,
0.03265936300158501,
0.002082462189719081,
0.0053688716143369675,
-0.07260352373123169,
0.0050846911035478115,
-0... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "defaultsFrom"}}, {"_type": ... | class ExternalMonitorsParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'defaultsFrom': 'parent',
'adaptiveDivergenceType': 'adaptive_divergence_type',
'adaptiveDivergenceValue': 'adaptive_divergence_value',
'adaptiveLimit': 'adaptive_limit',
'adaptiveS... | |
11,947 | [
-0.018302079290151596,
0.04279385507106781,
0.020086169242858887,
-0.041191816329956055,
-0.02081436850130558,
0.03495357558131218,
-0.004099156241863966,
-0.03019600361585617,
-0.01322895660996437,
0.025899628177285194,
0.039541229605674744,
-0.07121790945529938,
-0.04650767147541046,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class ExternalMonitorsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(ExternalMonitorsFactManager, self).__init__(**kwargs)
self.want = ExternalMonitorsParameters(params=self.module... | |
11,948 | [
0.003140816232189536,
-0.001973215024918318,
-0.008472039364278316,
-0.0188911072909832,
-0.013185574673116207,
-0.02720911055803299,
-0.01034513022750616,
-0.0029236238915473223,
0.04552103951573372,
0.012347612529993057,
0.016192378476262093,
-0.02755415439605713,
-0.018127083778381348,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def variables(self):
if self._values['variables'] is None:
return None
result = {}
for k, v in iteritems(self._values['variables']):
k = k.replace('userDefined ', '').strip()
result[k] = v
return result | |
11,949 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,950 | [
0.005759802646934986,
0.011613642796874046,
-0.005677519831806421,
-0.01588059961795807,
0.04179970920085907,
-0.0028093731962144375,
-0.025319622829556465,
-0.021005647256970406,
0.005380713380873203,
0.003494084347039461,
0.014423016458749771,
-0.030068520456552505,
0.0009918027790263295,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/monitor/external".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueE... | |
11,951 | [
0.04429414123296738,
-0.0252651609480381,
0.01848670281469822,
-0.0047233528457582,
0.01784583181142807,
0.007111218757927418,
0.008251232095062733,
0.03603674843907356,
0.05565730109810829,
0.03487824648618698,
0.0392904058098793,
0.00026170240016654134,
-0.06462951749563217,
-0.039438299... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def idle_timeout(self):
if self._values['idle_timeout'] is None:
return None
elif self._values['idle_timeout'] == 'immediate':
return 0
elif self._values['idle_timeout'] == 'indefinite':
return 4294967295
return int(self._values['idle_timeout']) | |
11,952 | [
-0.018475832417607307,
-0.029888421297073364,
0.046906571835279465,
-0.033704470843076706,
0.014434614218771458,
-0.035813961178064346,
-0.06100935488939285,
0.009344575926661491,
0.04192911833524704,
0.007934297434985638,
0.008088361471891403,
-0.06456468254327774,
0.013533932156860828,
-... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "clientCloseTimeout"}}, {"_t... | class FastHttpProfilesParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'clientCloseTimeout': 'client_close_timeout',
'connpoolIdleTimeoutOverride': 'oneconnect_idle_timeout_override',
'connpoolMaxReuse': 'oneconnect_maximum_reuse',
'connpoolMaxSize': 'oneconne... | |
11,953 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,954 | [
-0.01816704496741295,
0.01690293662250042,
0.019130174070596695,
-0.043316785246133804,
-0.003325809258967638,
0.02277803048491478,
-0.029231004416942596,
0.00590820237994194,
0.015542514622211456,
0.041173819452524185,
0.037802863866090775,
-0.07570204138755798,
-0.0074341618455946445,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class FastHttpProfilesFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(FastHttpProfilesFactManager, self).__init__(**kwargs)
self.want = FastHttpProfilesParameters(params=self.module... | |
11,955 | [
-0.005499615333974361,
-0.006663861218839884,
0.040446292608976364,
-0.026153726503252983,
0.014125327579677105,
-0.015193088911473751,
-0.05485464259982109,
-0.010156598873436451,
0.03270180523395538,
0.01808762364089489,
0.0007276537944562733,
-0.03427128493785858,
0.016659652814269066,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "clientTimeout"}}, {"_type":... | class FastL4ProfilesParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'clientTimeout': 'client_timeout',
'defaultsFrom': 'parent',
'explicitFlowMigration': 'explicit_flow_migration',
'hardwareSynCookie': 'hardware_syn_cookie',
'idleTimeout': 'idle_timeo... | |
11,956 | [
-0.0023610496427863836,
0.00698846997693181,
-0.004272375255823135,
-0.010385067202150822,
0.03668798878788948,
-0.005340469069778919,
-0.04090118780732155,
0.004674759693443775,
0.008562503382563591,
0.008118696510791779,
0.00718966219574213,
-0.020864814519882202,
0.02176426164805889,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/profile/fasthttp".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueE... | |
11,957 | [
0.04429414123296738,
-0.0252651609480381,
0.01848670281469822,
-0.0047233528457582,
0.01784583181142807,
0.007111218757927418,
0.008251232095062733,
0.03603674843907356,
0.05565730109810829,
0.03487824648618698,
0.0392904058098793,
0.00026170240016654134,
-0.06462951749563217,
-0.039438299... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def idle_timeout(self):
if self._values['idle_timeout'] is None:
return None
elif self._values['idle_timeout'] == 'immediate':
return 0
elif self._values['idle_timeout'] == 'indefinite':
return 4294967295
return int(self._values['idle_timeout']) | |
11,958 | [
0.02266380935907364,
-0.05374983698129654,
0.028059953823685646,
0.018484441563487053,
-0.013458620756864548,
0.0018291344167664647,
-0.0034281392581760883,
0.0042243353091180325,
0.036672625690698624,
0.03157274052500725,
0.038894567638635635,
0.03574152663350105,
-0.05387680605053902,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def tcp_handshake_timeout(self):
if self._values['tcp_handshake_timeout'] is None:
return None
elif self._values['tcp_handshake_timeout'] == 'immediate':
return 0
elif self._values['tcp_handshake_timeout'] == 'indefinite':
return 4294967295
return int(... | |
11,959 | [
0.030235271900892258,
-0.03017006255686283,
0.0348651148378849,
0.010226955637335777,
-0.006466566119343042,
0.0005345785175450146,
0.01016174629330635,
0.01774773560464382,
0.05090654641389847,
0.04912416636943817,
0.03501727059483528,
0.027344336733222008,
-0.039755795150995255,
-0.00596... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def tcp_close_timeout(self):
if self._values['tcp_close_timeout'] is None:
return None
elif self._values['tcp_close_timeout'] == 'immediate':
return 0
elif self._values['tcp_close_timeout'] == 'indefinite':
return 4294967295
return int(self._values['tc... | |
11,960 | [
-0.005883907899260521,
0.023688003420829773,
0.013467350974678993,
-0.03326400741934776,
-0.004231256432831287,
0.02014828287065029,
-0.03392037749290466,
0.0003444855392444879,
-0.005186512600630522,
0.03305302932858467,
0.02852874994277954,
-0.054056938737630844,
0.010373025201261044,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class FastL4ProfilesFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(FastL4ProfilesFactManager, self).__init__(**kwargs)
self.want = FastL4ProfilesParameters(params=self.module.param... | |
11,961 | [
0.0019994648173451424,
0.0064650848507881165,
0.0008252824191004038,
-0.009703591465950012,
0.038313381373882294,
-0.0049144187942147255,
-0.04759352281689644,
0.003110278397798538,
0.000046967292291810736,
0.006190736312419176,
0.01073538139462471,
-0.013311872258782387,
0.02063578739762306... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/profile/fastl4".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueErr... | |
11,962 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,963 | [
-0.024062709882855415,
0.029555965214967728,
0.040242161601781845,
-0.015015731565654278,
-0.004473436623811722,
-0.02780412882566452,
-0.03343502804636955,
-0.030406855046749115,
0.034511156380176544,
0.02045893482863903,
0.013426566496491432,
-0.07287634909152985,
-0.00006207675323821604,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "defaultsFrom"}}, {"_type": ... | class GatewayIcmpMonitorsParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'defaultsFrom': 'parent',
'adaptiveDivergenceType': 'adaptive_divergence_type',
'adaptiveDivergenceValue': 'adaptive_divergence_value',
'adaptiveLimit': 'adaptive_limit',
'adapti... | |
11,964 | [
-0.004470835905522108,
0.037199296057224274,
0.007005220279097557,
-0.05045700818300247,
0.007357302121818066,
0.016912082210183144,
-0.01885460503399372,
-0.0304490327835083,
-0.002616334240883589,
0.036592260003089905,
0.037514954805374146,
-0.06730838865041733,
-0.055313315242528915,
0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GatewayIcmpMonitorsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GatewayIcmpMonitorsFactManager, self).__init__(**kwargs)
self.want = GatewayIcmpMonitorsParameters(params=se... | |
11,965 | [
0.03554072603583336,
0.04957060515880585,
0.03352944925427437,
-0.07019845396280289,
0.023485330864787102,
0.05572707578539848,
-0.04905552417039871,
-0.007008807733654976,
-0.013061032630503178,
0.04701972007751465,
0.002268817974254489,
-0.07186634093523026,
-0.03083139657974243,
-0.0048... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
return results | |
11,966 | [
0.010225904174149036,
0.00849749706685543,
-0.013008217327296734,
-0.018777601420879364,
0.049672119319438934,
-0.0066546667367219925,
-0.03187013044953346,
-0.01581461913883686,
0.003718784311786294,
0.014393351040780544,
0.013249109499156475,
-0.030593398958444595,
-0.008985305204987526,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/ltm/monitor/gateway-icmp".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except Va... | |
11,967 | [
-0.012632467783987522,
0.023883365094661713,
0.054551467299461365,
-0.010710581205785275,
-0.0020364467054605484,
-0.01904103346168995,
-0.047520510852336884,
-0.018890565261244774,
0.04620733857154846,
0.006955722346901894,
0.03326709568500519,
-0.052116625010967255,
-0.021872567012906075,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "alternateMode"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "dynamicRatio"}}, {"_ty... | class GtmXPoolsParameters(BaseParameters):
api_map = {
'alternateMode': 'alternate_mode',
'dynamicRatio': 'dynamic_ratio',
'fallbackMode': 'fallback_mode',
'fullPath': 'full_path',
'loadBalancingMode': 'load_balancing_mode',
'manualResume': 'manual_resume',
'm... | |
11,968 | [
0.05704415962100029,
0.003981852903962135,
0.01240090373903513,
-0.032190680503845215,
-0.015449459664523602,
0.01578531786799431,
-0.042163074016571045,
0.039217859506607056,
0.05849093198776245,
0.03828779235482216,
0.0459350161254406,
-0.03947621211409569,
-0.0024640338961035013,
-0.020... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def members(self):
result = []
if self._values['members'] is None or 'items' not in self._values['members']:
return result
for item in self._values['members']['items']:
self._remove_internal_keywords(item)
if 'disabled' in item:
item['disabled'... | |
11,969 | [
-0.007225481793284416,
0.06082819029688835,
0.047023557126522064,
-0.02295081317424774,
-0.005487707443535328,
-0.018963078036904335,
-0.030267756432294846,
0.00478040287271142,
0.004277363419532776,
0.01899966411292553,
0.03568229451775551,
-0.09619341790676117,
-0.06312083452939987,
-0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmAPoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmAPoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
def exe... | |
11,970 | [
0.0062067024409770966,
-0.005372695624828339,
0.0370105616748333,
0.01406933180987835,
0.02944406494498253,
-0.013102367520332336,
0.00545428367331624,
-0.012437579222023487,
0.04109598696231842,
0.011579398065805435,
0.020221643149852753,
-0.019411809742450714,
-0.03589855134487152,
-0.01... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def availability_status(self):
# This fact is a combination of the availability_state and enabled_state
#
# The purpose of the fact is to give a higher-level view of the availability
# of the pool, that can be used in playbooks. If you need further detail,
# consider using the fo... | |
11,971 | [
0.015922827646136284,
0.023420877754688263,
0.010759643279016018,
0.0018940703012049198,
0.05362971872091293,
-0.01839008368551731,
-0.03750229254364967,
0.008785838261246681,
0.013094509951770306,
-0.006360706407576799,
0.009562121704220772,
-0.04688989743590355,
-0.010392563417553902,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/a".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ex... | |
11,972 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,973 | [
-0.0020913935732096434,
0.056632257997989655,
0.045437511056661606,
-0.02101149410009384,
0.012408122420310974,
-0.00432302663102746,
-0.021377336233854294,
0.007670476101338863,
-0.003960233647376299,
0.012164228595793247,
0.033413518220186234,
-0.09819184988737106,
-0.06194915249943733,
... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmAaaaPoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmAaaaPoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
d... | |
11,974 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,975 | [
0.016513515263795853,
0.02058400586247444,
0.008634557947516441,
0.0007719763671047986,
0.05367197096347809,
-0.020571818575263023,
-0.02968776598572731,
0.0028045554645359516,
0.00836644135415554,
-0.008403003215789795,
0.012174909003078938,
-0.051137056201696396,
-0.0064408802427351475,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/aaaa".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as... | |
11,976 | [
0.0003618276969064027,
0.07088380306959152,
0.0494270846247673,
-0.021229220554232597,
0.0001975646591745317,
-0.001314104301854968,
-0.02442617528140545,
0.006633383221924305,
-0.01060862373560667,
0.007315879222005606,
0.040375031530857086,
-0.08975422382354736,
-0.06513646990060806,
-0.... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmCnamePoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmCnamePoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
... | |
11,977 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,978 | [
0.023417994379997253,
0.031996626406908035,
0.016237273812294006,
0.003429063595831394,
0.05280996859073639,
-0.02169748954474926,
-0.035031408071517944,
-0.0019699193071573973,
0.00282569183036685,
-0.0032319221645593643,
0.01155964843928814,
-0.03854410722851753,
-0.007192669901996851,
-... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/cname".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError a... | |
11,979 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,980 | [
-0.01261318102478981,
0.06656890362501144,
0.039238352328538895,
-0.021400563418865204,
0.008291224017739296,
-0.012242557480931282,
-0.022859150543808937,
0.01679764874279499,
0.0032130733598023653,
0.011471419595181942,
0.034145258367061615,
-0.09000192582607269,
-0.06259963661432266,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmMxPoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmMxPoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
def e... | |
11,981 | [
-0.018723344430327415,
0.06927277147769928,
0.041818272322416306,
-0.02740645967423916,
0.014507889747619629,
-0.005821770988404751,
-0.02275865152478218,
0.009733977727591991,
-0.0002953670627903193,
0.0150723522529006,
0.03547707572579384,
-0.0747012197971344,
-0.06283549219369888,
-0.03... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmNaptrPoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmNaptrPoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
... | |
11,982 | [
0.015493413433432579,
0.03117959015071392,
0.0075057512149214745,
0.0016159052029252052,
0.051516201347112656,
-0.02120404876768589,
-0.033299993723630905,
0.00932496227324009,
0.01725238561630249,
-0.006427477113902569,
0.008228616788983345,
-0.04448031261563301,
-0.006427477113902569,
-0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/mx".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as e... | |
11,983 | [
0.002680653240531683,
0.031106011942029,
0.012619171291589737,
-0.005143417045474052,
0.06073896959424019,
-0.00926797091960907,
-0.034297630190849304,
0.004750602412968874,
0.01228773407638073,
-0.007899257354438305,
0.007267071399837732,
-0.035426974296569824,
-0.007788778282701969,
-0.0... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/naptr".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError a... | |
11,984 | [
0.014182178303599358,
0.05280783027410507,
0.057175394147634506,
-0.052460409700870514,
0.0031857166904956102,
0.043898988515138626,
-0.017420627176761627,
0.012128678150475025,
-0.002673892769962549,
0.019604410976171494,
0.005400518886744976,
-0.04382454231381416,
0.0005370274884626269,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,985 | [
-0.016054699197411537,
0.07326436787843704,
0.05133715271949768,
-0.02675783261656761,
0.005582441575825214,
-0.01189302746206522,
-0.02581065334379673,
0.014361615292727947,
0.00272166240029037,
0.022625761106610298,
0.03393271937966347,
-0.08657224476337433,
-0.06090366840362549,
-0.0287... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmSrvPoolsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmSrvPoolsFactManager, self).__init__(**kwargs)
self.want = GtmXPoolsParameters(params=self.module.params)
def... | |
11,986 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,987 | [
0.015303200110793114,
0.027115987613797188,
0.010613701306283474,
0.0001625000440981239,
0.05323471501469612,
-0.01855616830289364,
-0.038560740649700165,
0.007574431132525206,
0.010530595667660236,
-0.0035705487243831158,
0.010803655721247196,
-0.04290594533085823,
-0.005983563140034676,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/pool/srv".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ... | |
11,988 | [
-0.02320275828242302,
0.028716053813695908,
0.04778970777988434,
-0.041971419006586075,
-0.017595620825886726,
-0.0219593346118927,
-0.05916820839047432,
-0.01331401988863945,
0.03932034596800804,
0.021384544670581818,
0.015624911524355412,
-0.0777961015701294,
-0.02925565280020237,
0.0056... | 12 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "exposeRouteDomains"}}, {"_t... | class GtmServersParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'exposeRouteDomains': 'expose_route_domains',
'iqAllowPath': 'iq_allow_path',
'iqAllowServiceCheck': 'iq_allow_service_check',
'iqAllowSnmp': 'iq_allow_snmp',
'limitCpuUsage': 'limit_cpu_... | |
11,989 | [
0.061044346541166306,
0.0033045175950974226,
-0.010688913986086845,
-0.0373404324054718,
-0.0050921570509672165,
0.0033229785040020943,
-0.0633581206202507,
0.020368628203868866,
0.03633123263716698,
0.055629123002290726,
0.0022645483259111643,
-0.012430401518940926,
-0.04083571210503578,
... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def devices(self):
result = []
if self._values['devices'] is None or 'items' not in self._values['devices']:
return result
for item in self._values['devices']['items']:
self._remove_internal_keywords(item)
if 'fullPath' in item:
item['full_path... | |
11,990 | [
-0.004652600269764662,
0.0311727374792099,
0.035683587193489075,
-0.0623454749584198,
-0.014049151912331581,
0.030089126899838448,
0.013003340922296047,
-0.006476470269262791,
0.03916122391819954,
0.012178031727671623,
-0.013406544923782349,
-0.05226536840200424,
-0.002675954019650817,
0.0... | 8 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def monitor_type(self):
if self._values['monitors'] is None:
return None
pattern = r'min\s+\d+\s+of'
matches = re.search(pattern, self._values['monitors'])
if matches:
return 'm_of_n'
else:
return 'and_list' | |
11,991 | [
0.010848285630345345,
-0.0038680362049490213,
-0.005773472599685192,
-0.05157381668686867,
-0.024389587342739105,
0.018571654334664345,
-0.053352221846580505,
0.0034266100265085697,
0.03368811681866646,
0.051395975053310394,
0.027235040441155434,
-0.04405369237065315,
-0.019968975335359573,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def virtual_servers(self):
result = []
if self._values['virtual_servers'] is None or 'items' not in self._values['virtual_servers']:
return result
for item in self._values['virtual_servers']['items']:
self._remove_internal_keywords(item)
if 'disabled' in item:... | |
11,992 | [
-0.003495966549962759,
0.07868319004774094,
0.03891058638691902,
-0.0430770106613636,
-0.010877005755901337,
0.00819516833871603,
-0.024854885414242744,
-0.0026788441464304924,
0.0014374468009918928,
0.013193681836128235,
0.03804856538772583,
-0.0677642822265625,
-0.03895847499370575,
-0.0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmServersFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmServersFactManager, self).__init__(**kwargs)
self.want = GtmServersParameters(params=self.module.params)
def ... | |
11,993 | [
0.015043032355606556,
0.03695828095078468,
0.0018803790444508195,
-0.0029376433230936527,
0.03856716305017471,
-0.002798302797600627,
-0.03459092974662781,
0.004841006360948086,
0.005562129430472851,
-0.00773986428976059,
0.009796932339668274,
-0.029764289036393166,
0.004881228320300579,
-... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/server".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ex... | |
11,994 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,995 | [
-0.020120417699217796,
-0.00009066890925168991,
0.06845512241125107,
0.007107690908014774,
-0.01555032841861248,
-0.054841067641973495,
-0.07187066227197647,
0.02024068310856819,
0.03576695919036865,
0.013986877165734768,
-0.002551131881773472,
-0.04945317283272743,
-0.028959931805729866,
... | 11 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [{"_type": "Constant", "_fields": {"kind": null, "value": "fullPath"}}, {"_type": "Constant", "_fields": {"kind": null, "value": "failureRcode"}}, {"_type": ... | class GtmXWideIpsParameters(BaseParameters):
api_map = {
'fullPath': 'full_path',
'failureRcode': 'failure_rcode',
'failureRcodeResponse': 'failure_rcode_response',
'failureRcodeTtl': 'failure_rcode_ttl',
'lastResortPool': 'last_resort_pool',
'minimalResponse': 'minim... | |
11,996 | [
0.04581771418452263,
-0.014659782871603966,
0.037922173738479614,
-0.02743406407535076,
0.033444102853536606,
-0.023486291989684105,
-0.08475334197282791,
0.04680760204792023,
0.025666404515504837,
0.02460581064224243,
0.010299558751285076,
-0.05519809201359749,
-0.0600532591342926,
-0.042... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def pools(self):
result = []
if self._values['pools'] is None:
return []
for pool in self._values['pools']:
del pool['nameReference']
for x in ['order', 'ratio']:
if x in pool:
pool[x] = int(pool[x])
result.appen... | |
11,997 | [
-0.021508662030100822,
0.05695045739412308,
0.04050838574767113,
-0.010839586146175861,
-0.03480846807360649,
0.007009193301200867,
-0.019072800874710083,
-0.029961103573441505,
0.003574627684429288,
0.030984167009592056,
0.049935173243284225,
-0.04557498171925545,
-0.03532000258564949,
-0... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmAWideIpsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmAWideIpsFactManager, self).__init__(**kwargs)
self.want = GtmXWideIpsParameters(params=self.module.params)
d... | |
11,998 | [
0.014310532249510288,
0.05282361060380936,
0.05719248205423355,
-0.05242644250392914,
0.003236314980313182,
0.0437631718814373,
-0.017413422465324402,
0.0120454216375947,
-0.002547473181039095,
0.01942409574985504,
0.005457984749227762,
-0.043837640434503555,
0.0006504434859380126,
-0.0167... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def _exec_module(self):
if 'gtm' not in self.provisioned_modules:
return []
results = []
facts = self.read_facts()
for item in facts:
attrs = item.to_return()
results.append(attrs)
results = sorted(results, key=lambda k: k['full_path'])
... | |
11,999 | [
0.010406605899333954,
0.022503068670630455,
-0.005960091948509216,
-0.00024428474716842175,
0.025530224665999413,
-0.010133068077266216,
-0.030782155692577362,
-0.0026533198542892933,
0.0014733066782355309,
0.0036410964094102383,
0.020290449261665344,
-0.020922627300024033,
-0.00305450893938... | 9 | {"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []... | def read_collection_from_device(self):
uri = "https://{0}:{1}/mgmt/tm/gtm/wideip/a".format(
self.client.provider['server'],
self.client.provider['server_port'],
)
resp = self.client.api.get(uri)
try:
response = resp.json()
except ValueError as ... | |
12,000 | [
-0.01243165135383606,
0.05205676332116127,
0.03643973544239998,
-0.01813310571014881,
-0.02509879693388939,
0.011111640371382236,
-0.017686905339360237,
-0.02149200811982155,
-0.010566283948719501,
0.020326927304267883,
0.04248823598027229,
-0.05770864337682724,
-0.03943919762969017,
-0.03... | 10 | {"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an... | class GtmAaaaWideIpsFactManager(BaseManager):
def __init__(self, *args, **kwargs):
self.client = kwargs.get('client', None)
self.module = kwargs.get('module', None)
super(GtmAaaaWideIpsFactManager, self).__init__(**kwargs)
self.want = GtmXWideIpsParameters(params=self.module.params)
... |