query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Process posts and map posted document names to post details in the environment.
def process_posts(app, doctree): env = app.builder.env if not hasattr(env, "ablog_posts"): env.ablog_posts = {} post_nodes = list(doctree.findall(PostNode)) if not post_nodes: return post_date_format = app.config["post_date_format"] should_auto_orphan = app.config["post_auto_orph...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def preprocess_post(self, post):\n # tokenize, clean, & tag part-of-speech for all words\n if self.document_level == 'postwise':\n\n doc_text = all_comments_from_post(post)\n # leave early if there's nothing there\n if doc_text == '':\n return []\n\n ...
[ "0.6553351", "0.6254215", "0.61910105", "0.5871757", "0.58004254", "0.5777974", "0.5763263", "0.57372594", "0.5677387", "0.56719476", "0.56647515", "0.5660065", "0.5658226", "0.56144637", "0.5554312", "0.55404764", "0.5533678", "0.55197513", "0.55081964", "0.54926974", "0.547...
0.6616748
0
Replace `PostList` nodes with lists of posts. Also, register all posts if they have not been registered yet.
def process_postlist(app, doctree, docname): blog = Blog(app) if not blog: register_posts(app) for node in doctree.findall(PostList): colls = [] for cat in ["tags", "author", "category", "location", "language"]: for coll in node[cat]: if coll in blog.catal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_all_posts():\n for post in CURRENT_POSTS:\n update_tag(post)", "def postList(posts):\n post_list = list()\n for post in posts:\n visible_to = list()\n visible = post.visibleTo.all()\n if visible:\n for author in visible:\n auth = \"{}/api/...
[ "0.61877924", "0.5988142", "0.5968003", "0.5947699", "0.5835054", "0.5783334", "0.57208127", "0.55403996", "0.5534692", "0.5378993", "0.52760565", "0.52615005", "0.5249777", "0.5159502", "0.5143264", "0.5132592", "0.5100237", "0.5050234", "0.5036484", "0.5034668", "0.5029585"...
0.67510056
0
Generate archive pages for all posts, categories, tags, authors, and drafts.
def generate_archive_pages(app): if not ablog.builder_support(app): return blog = Blog(app) for post in blog.posts: for redirect in post.redirect: yield (redirect, {"redirect": post.docname, "post": post}, "ablog/redirect.html") found_docs = app.env.found_docs atom_feed =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_archives():\n if not session.get('logged_in'): \n latest = Post.query.filter_by(visible=True)\n else:\n latest = Post.query\n latest = latest.order_by(Post.id.desc()).limit(10)\n months = Post.query.get_months()\n tags = Tag.query.order_by(Tag.name).all()\n #: Needed for ca...
[ "0.69427127", "0.6276616", "0.6273013", "0.6104014", "0.6066514", "0.6062876", "0.6052862", "0.6033781", "0.5921405", "0.58953536", "0.5889372", "0.5798566", "0.5767002", "0.57562274", "0.5737558", "0.57229877", "0.5699462", "0.56583685", "0.5576395", "0.55608106", "0.5549129...
0.7827306
0
Register posts found in the Sphinx build environment.
def register_posts(app): blog = Blog(app) for docname, posts in getattr(app.env, "ablog_posts", {}).items(): for postinfo in posts: blog.register(docname, postinfo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def process_posts(app, doctree):\n env = app.builder.env\n if not hasattr(env, \"ablog_posts\"):\n env.ablog_posts = {}\n post_nodes = list(doctree.findall(PostNode))\n if not post_nodes:\n return\n post_date_format = app.config[\"post_date_format\"]\n should_auto_orphan = app.confi...
[ "0.6535343", "0.57032394", "0.5624015", "0.5593621", "0.5499079", "0.54742163", "0.54069036", "0.53931034", "0.53523624", "0.5307932", "0.5259326", "0.525728", "0.5236999", "0.5183155", "0.5156276", "0.51393497", "0.5135678", "0.51328725", "0.5109809", "0.5106693", "0.5074628...
0.7119269
0
Use 2 variables to pass into the function for robustness. tn is the triggering number, tn = 1 will print all digits. otherwise, the lines will be whatever tn value is. xs is just 10 for now
def printstring(tn,xs): #Printing function if (tn > -1) and (tn <= 9): for x in range(xs): #Outer loop for line iteration print("\n") #Need this new line to meet the output requirement for y in range(xs): #Inner loop for horizontal printing print(tn,end=' '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def printstringtp2(xs): #Printing function\n for x in range(xs+1): #Outer loop for line iteration\n print(\"\\n\")\n for y in range(x):\n print(y,end=' ')", "def errs_tab(n):\n return [10**(q / -10) for q in range(n + 1)]", "def run_trials(f, n):\n\tfor value in range(2, 3):\n...
[ "0.5916246", "0.54745644", "0.53639555", "0.53562635", "0.52387565", "0.52075", "0.5177339", "0.51054317", "0.5100311", "0.50899476", "0.5084036", "0.5077306", "0.50571287", "0.50172555", "0.49812546", "0.49663547", "0.49617088", "0.49617088", "0.49607396", "0.49602693", "0.4...
0.70049286
0
Gives user a choice on how to write a release note
def select_input(cls): print('Would you like to insert release notes?') print('0) Cancel') print('1) Insert directly from command line') print('2) Insert from a file') inputValue = 0 inputNote = False try: try: input = raw_input except Nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def select_input(cls):\n #Change current working directory to root sdk directory\n Utility.pushd(Settings.rootSdkPath)\n print('Would you like to insert release notes?')\n print('0) Cancel')\n print('1) Insert directly from command line')\n print('2) Insert from a file')\n...
[ "0.74510175", "0.6731308", "0.6731308", "0.6720483", "0.6429505", "0.6398019", "0.63253635", "0.62014854", "0.6157431", "0.6125236", "0.6102147", "0.6084187", "0.59821856", "0.5821075", "0.5782732", "0.5755479", "0.5750794", "0.5741082", "0.5711053", "0.5698787", "0.56906605"...
0.74380577
1
Return a sequence of oslo.messaging.Target This sequence is defining the exchange and topics to be connected for this plugin.
def get_targets(conf): return [oslo.messaging.Target(topic=topic, exchange=conf.glance_control_exchange) for topic in conf.notification_topics]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def targets(self): # type: () -> t.List[HostConfig]\n return self.host_settings.targets", "def get_next_target_addresses(self) -> List[str]:\n targets = []\n for edge in self._get_out_edges(self.active_pod):\n targets.append(self._get_target_pod(edge.pod).full_address)\n r...
[ "0.6079792", "0.5927731", "0.58305705", "0.5789932", "0.57026273", "0.56879294", "0.5579699", "0.5555303", "0.55435085", "0.5541425", "0.5445215", "0.54273444", "0.53700495", "0.5360802", "0.53459704", "0.5276226", "0.5225042", "0.5207724", "0.52066725", "0.52066725", "0.5206...
0.72574925
0
Get or set if learning task is a time series.
def time_series(self) -> bool: return self._time_series
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_t(self):\n return any(map(lambda s: s.is_temporal, self))", "def is_timeseries(filepath):\n\n if os.path.isdir(os.path.dirname(filepath)):\n\n if len(os.listdir(os.path.dirname(filepath))) > 1:\n ts = True\n else:\n ts = False\n else:\n ts = None\n\n ...
[ "0.5922883", "0.58697695", "0.55525404", "0.55141145", "0.54814786", "0.5361244", "0.53277946", "0.517447", "0.51625425", "0.51449305", "0.51449305", "0.5139298", "0.51210666", "0.51178837", "0.5052959", "0.49301153", "0.49274877", "0.49274877", "0.49248353", "0.49169722", "0...
0.667246
0
Get suitable hyperparameters ranges for a given task. The returning dictionary may contain other dictionaries in the values of a argument. This indicates that this is a optuna.trial method. The class _Objective will handle transforming this dictionary into a callable.
def _get_params_ranges(task: str,) -> Dict[str, Any]: params_file = os.path.join( os.path.dirname(__file__), "params", "xgboost.yml" ) params = utils.read_yaml(params_file) if "regression" in task.lower(): params.update({"objective": "reg:squarederror"}) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def objective(trial, \n bounds: Optional[Iterable]=None, \n func: Optional[Callable]=None, \n param_names: Optional[List[str]]=None):\n if param_names is None:\n param_names = PARAM_NAMES\n if (bounds is None):\n bounds = ((-10, 10) for _ in param_names)\n...
[ "0.591799", "0.5714507", "0.56155163", "0.56040365", "0.54333824", "0.5401873", "0.53382957", "0.53382957", "0.51623964", "0.51542753", "0.51444685", "0.51438236", "0.5132472", "0.5115702", "0.5096597", "0.5092274", "0.5077159", "0.50753367", "0.5072571", "0.50602084", "0.505...
0.717844
0
Compute impact of an hazard to exposures.
def calc_mortality(impact, key, exposures, impact_funcs, hazard, kanton, save_mat=False): # 1. Assign centroids to each exposure if not done assign_haz = INDICATOR_CENTR + hazard.tag.haz_type if assign_haz not in exposures: exposures.assign_centroids(hazard) else: LOGGER.info('Expo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exp_impact_mortality(impact, exp_iimp, exposures, key, hazard, imp_fun, insure_flag, kanton):\r\n if not exp_iimp.size:\r\n return \r\n \r\n if kanton is None:\r\n kanton_name = 'CH'\r\n else:\r\n kanton_name = kanton\r\n \r\n directory = '../../input_data/impact_functi...
[ "0.6713164", "0.5624437", "0.5555471", "0.5456832", "0.5363461", "0.53354156", "0.53214157", "0.5289515", "0.528789", "0.52875054", "0.52398354", "0.52398354", "0.5215647", "0.5214677", "0.5208311", "0.52081144", "0.52079606", "0.51916474", "0.5190379", "0.51640564", "0.51617...
0.69947916
0
Compute impact for inpute exposure indexes and impact function.
def exp_impact_mortality(impact, exp_iimp, exposures, key, hazard, imp_fun, insure_flag, kanton): if not exp_iimp.size: return if kanton is None: kanton_name = 'CH' else: kanton_name = kanton directory = '../../input_data/impact_functions/' annual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calc_mortality(impact, key, exposures, impact_funcs, hazard, kanton, save_mat=False):\r\n # 1. Assign centroids to each exposure if not done\r\n assign_haz = INDICATOR_CENTR + hazard.tag.haz_type\r\n if assign_haz not in exposures:\r\n exposures.assign_centroids(hazard)\r\n else:\r\n ...
[ "0.6271787", "0.5877842", "0.5789374", "0.5760987", "0.561309", "0.550563", "0.5501243", "0.5386281", "0.5335529", "0.52324504", "0.51998514", "0.51906973", "0.51878357", "0.5186649", "0.5170273", "0.51142454", "0.5087062", "0.5052597", "0.50490326", "0.49957764", "0.49872687...
0.65110976
0
Checks object's class and names it. Since we've got multiple nets predicting objects like 0,1,2 classes, we want to make sure it doesn't get confusing during saving data and drawing BBs
def determine_object_class(self, components_detected): for subimage, components in components_detected.items(): for component in components: if component.class_id == 0: component.object_name = "insl" # Insulator elif component.class_id == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_class(self, obj):\n\n object_type = obj.object_type\n\n 'Background class'\n object_class = 0\n\n # Don't care classes\n if object_type in ['DontCare', 'Person_sitting'] or obj.truncation > 0.75 or obj.occlusion > 1:\n object_class = 1\...
[ "0.6626742", "0.63194853", "0.6168209", "0.5960394", "0.59308374", "0.59003305", "0.57764536", "0.57340455", "0.5691106", "0.56500655", "0.5616511", "0.5613041", "0.5608129", "0.560139", "0.55893856", "0.55811214", "0.556558", "0.5529344", "0.5505262", "0.547894", "0.5475821"...
0.6471579
1
syncroomaware users list. optional parameter conversation_id to get a list of users in other rooms. will include users in linked syncrooms. append "rooms" to segment user list by individual rooms.
def syncusers(bot, event, *args): if not bot.get_config_option('syncing_enabled'): return combined = True tokens = list(args) if "rooms" in args: tokens.remove("rooms") combined = False if "rooms" in args: tokens.remove("room") combined = False if len(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_app_service_users_in_room(\n self,\n room_id: str,\n app_service: \"ApplicationService\",\n cache_context: _CacheContext,\n ) -> Sequence[str]:\n # We can use `get_local_users_in_room(...)` here because an application service\n # can only be interested in ...
[ "0.6436777", "0.62776923", "0.62760395", "0.61903304", "0.6125914", "0.60984933", "0.5976745", "0.59659094", "0.5931594", "0.5930427", "0.5922079", "0.5916611", "0.5900496", "0.5876881", "0.5788277", "0.5786364", "0.57371485", "0.5726489", "0.57155997", "0.5680143", "0.564648...
0.75178987
0
Rename OpsiDepotserver with id `oldId` to `newId`. References to the old id will be changed aswell.
def host_renameOpsiDepotserver(self, oldId, newId):
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rename_var(self, old_id, new_id): # to be overriden in subclasses when necessary\n pass", "def rename(old, new):", "def rename(old, new):", "def rename(oldname, newname):", "def rename_preset(self, preset_id, new_id, REQUEST=None):\r\n\r\n raise NotImplementedError", "def rename(self, ...
[ "0.66649985", "0.65495193", "0.65495193", "0.63409895", "0.5982003", "0.5981632", "0.5942411", "0.59153366", "0.58583134", "0.5855038", "0.58548456", "0.5828306", "0.58214545", "0.5795251", "0.57640916", "0.57169753", "0.56786716", "0.56594557", "0.56323206", "0.5627446", "0....
0.8711123
0
Sub the center joint 1 (spine joint in ntu dataset
def sub_center_joint(data: np.ndarray, silient=False) -> np.array: N, M, T, V, C = data.shape # new_data = np.zeros((N, M, T, V+1, C)) # new_data[:, :, :, :V, :] = data new_data = data.copy() #sub center joint for i_s, sample in enumerate(tqdm(new_data, disable=silient)): if samp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_center_of_mass_allies(self,obs):", "def transform(self, joint):\n num_dims = len(joint.shape) \n joint_axes = (colon,) * num_dims + (None, None)\n mask_axes = (None,)*(num_dims-1) + (colon, colon, colon)\n prefix = (joint[joint_axes] * self.mask[mask_axes]).sum(axis=-3)\n ...
[ "0.5900161", "0.5705653", "0.53400606", "0.5208176", "0.519333", "0.5152531", "0.50909877", "0.5073647", "0.50445163", "0.50417227", "0.5018438", "0.50131714", "0.4979352", "0.49765232", "0.4962862", "0.49624056", "0.4957071", "0.49393547", "0.49254608", "0.49253595", "0.4923...
0.6629508
0
parallel the bone between right shoulder(jpt 8) and left shoulder(jpt 4) of the first person to the x axis
def align_horizontal(data: np.ndarray, xaxis=[8, 4], silient=False) -> None: for i_s, skeleton in enumerate(tqdm(data, disable=silient)): if skeleton.sum() == 0: continue joint_rshoulder = skeleton[0, 0, xaxis[0]] joint_lshoulder = skeleton[0, 0, xaxis[1]] axis = np.cros...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def align_bone_x_axis(edit_bone, new_x_axis):\n new_x_axis = new_x_axis.cross(edit_bone.y_axis)\n new_x_axis.normalize()\n dot = max(-1.0, min(1.0, edit_bone.z_axis.dot(new_x_axis)))\n angle = math.acos(dot)\n edit_bone.roll += angle\n dot1 = edit_bone.z_axis.dot(new_x_axis)\n edit_bone.roll -...
[ "0.58034986", "0.54752916", "0.54640716", "0.5453321", "0.5449038", "0.5423321", "0.5419779", "0.53930056", "0.5369793", "0.536415", "0.53400546", "0.53232163", "0.5317551", "0.52692205", "0.52663136", "0.5261364", "0.52119005", "0.5207496", "0.5202532", "0.5192694", "0.51798...
0.5684662
1
Get load balancer related models. The models are stored in a SimpleNamespace object, could be accessed by the dot operator like `load_balancer_models.ManagedClusterLoadBalancerProfile`.
def load_balancer_models(self) -> SimpleNamespace: if self.__loadbalancer_models is None: load_balancer_models = {} load_balancer_models["ManagedClusterLoadBalancerProfile"] = self.ManagedClusterLoadBalancerProfile load_balancer_models[ "ManagedClusterLoadBala...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_models(self):\n self.load()\n return self._models", "def models(self):\n \n # Call the Razor RESTful API to get a list of models\n headers = {'content-type': 'application/json'}\n r = requests.get(self.url + '/model', headers=headers)\n\n # Check the statu...
[ "0.6290427", "0.61453086", "0.5930261", "0.5809687", "0.57820994", "0.5760742", "0.5676707", "0.5666027", "0.5642722", "0.5629715", "0.5624789", "0.5556899", "0.55357313", "0.5533739", "0.5526333", "0.5447427", "0.5439883", "0.5436307", "0.541895", "0.54091656", "0.54033613",...
0.7657893
0
Get nat gateway related models. The models are stored in a SimpleNamespace object, could be accessed by the dot operator like `nat_gateway_models.ManagedClusterNATGatewayProfile`.
def nat_gateway_models(self) -> SimpleNamespace: if self.__nat_gateway_models is None: nat_gateway_models = {} nat_gateway_models["ManagedClusterNATGatewayProfile"] = ( self.ManagedClusterNATGatewayProfile if hasattr(self, "ManagedClusterNATGatewayProfile") else None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_models():\n\n from lmfit.models import lmfit_models\n models = lmfit_models\n if 'Expression' in models:\n del models['Expression']\n if 'Gaussian-2D' in models:\n del models['Gaussian-2D']\n\n filenames = set()\n\n models_path = pkg_resources.resource_filename('nexpy.api.fr...
[ "0.5768648", "0.5745505", "0.5712239", "0.56414086", "0.556433", "0.5561573", "0.5515015", "0.5510445", "0.54994595", "0.5485388", "0.54605484", "0.5453052", "0.5449938", "0.53977805", "0.5384797", "0.53555644", "0.5336726", "0.53359085", "0.5330911", "0.53225255", "0.5315613...
0.7860511
0
Get maintenance configuration related models. The models are stored in a SimpleNamespace object, could be accessed by the dot operator like `maintenance_configuration_models.ManagedClusterMaintenanceConfigurationProfile`.
def maintenance_configuration_models(self) -> SimpleNamespace: if self.__maintenance_configuration_models is None: maintenance_configuration_models = {} # getting maintenance configuration related models maintenance_configuration_models["MaintenanceConfiguration"] = self.Main...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def models(self):\n return self.config.models()", "def get_seo_models():\n seo_models = []\n for model_name in getattr(settings, setting_name_seo_models, ()):\n if \".\" in model_name:\n # TODO: Test this block\n app_label, model_name = model_name.split(\".\", 1)\n ...
[ "0.6285593", "0.57894367", "0.5700239", "0.5656415", "0.56433", "0.5520452", "0.55160034", "0.5408721", "0.5361932", "0.5250989", "0.5221271", "0.5219817", "0.5212507", "0.5210442", "0.51967865", "0.51966053", "0.51966053", "0.5143466", "0.5135863", "0.5131256", "0.5119935", ...
0.7894215
0
Get the existing ManagedCluster object in update mode.
def existing_mc(self) -> ManagedCluster: return self.__existing_mc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_mc(self) -> ManagedCluster:\n mc = self.client.get(self.context.get_resource_group_name(), self.context.get_name())\n\n # attach mc to AKSContext\n self.context.attach_mc(mc)\n return mc", "def cluster(self):\n return self._cluster", "def cluster(self):\n ret...
[ "0.6477688", "0.6216452", "0.6216452", "0.6137707", "0.60626763", "0.5750455", "0.5741859", "0.57252145", "0.5679924", "0.5643245", "0.5634165", "0.5621059", "0.56092423", "0.5558072", "0.5544139", "0.55095327", "0.55016065", "0.5501055", "0.54964584", "0.54956895", "0.548824...
0.6553012
0
Attach the ManagedCluster object to the context. The `mc` object is only allowed to be attached once, and attaching again will raise a CLIInternalError.
def attach_mc(self, mc: ManagedCluster) -> None: if self.decorator_mode == DecoratorMode.UPDATE: self.attach_existing_mc(mc) if self.mc is None: self.mc = mc else: msg = "the same" if self.mc == mc else "different" raise CLIInternalError( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attach_existing_mc(self, mc: ManagedCluster) -> None:\n if self.__existing_mc is None:\n self.__existing_mc = mc\n else:\n msg = \"the same\" if self.__existing_mc == mc else \"different\"\n raise CLIInternalError(\n \"Attempting to attach the exist...
[ "0.7152228", "0.6109371", "0.6080918", "0.59397835", "0.58328784", "0.5819823", "0.5793942", "0.5712632", "0.57011956", "0.5686649", "0.56610256", "0.55625063", "0.55554956", "0.55520815", "0.5481644", "0.5396167", "0.5384683", "0.5381763", "0.5370491", "0.53529763", "0.53496...
0.75938123
0
Attach the existing ManagedCluster object to the context in update mode. The `mc` object is only allowed to be attached once, and attaching again will raise a CLIInternalError.
def attach_existing_mc(self, mc: ManagedCluster) -> None: if self.__existing_mc is None: self.__existing_mc = mc else: msg = "the same" if self.__existing_mc == mc else "different" raise CLIInternalError( "Attempting to attach the existing `mc` object ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attach_mc(self, mc: ManagedCluster) -> None:\n if self.decorator_mode == DecoratorMode.UPDATE:\n self.attach_existing_mc(mc)\n\n if self.mc is None:\n self.mc = mc\n else:\n msg = \"the same\" if self.mc == mc else \"different\"\n raise CLIIntern...
[ "0.7666705", "0.64610124", "0.61480016", "0.5906628", "0.58978236", "0.5808993", "0.57912594", "0.57744676", "0.57592237", "0.57166994", "0.57078767", "0.5704928", "0.5699452", "0.56803733", "0.5608162", "0.5579427", "0.55647975", "0.54819435", "0.5457632", "0.54316694", "0.5...
0.7262131
1
Attach the AKSAgentPoolContext object to the context. The `agentpool_context` object is only allowed to be attached once, and attaching again will raise a CLIInternalError.
def attach_agentpool_context(self, agentpool_context: AKSAgentPoolContext) -> None: if self.agentpool_context is None: self.agentpool_context = agentpool_context else: msg = "the same" if self.agentpool_context == agentpool_context else "different" raise CLIInternalEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_agentpool_decorator_context(self) -> None:\n self.agentpool_decorator = AKSAgentPoolAddDecorator(\n self.cmd, self.client, self.__raw_parameters, self.resource_type, self.agentpool_decorator_mode\n )\n self.agentpool_context = self.agentpool_decorator.context\n self....
[ "0.72640747", "0.69137096", "0.54524636", "0.5199811", "0.5116517", "0.51051664", "0.50245696", "0.5019702", "0.49775326", "0.48670903", "0.48327", "0.47892487", "0.47868285", "0.47780704", "0.4746131", "0.46875876", "0.4678888", "0.4650176", "0.46418124", "0.45968106", "0.45...
0.8392019
0
Helper function to parse and verify cluster_autoscaler_profile. If the user input is a list, parse it with function "extract_comma_separated_string". If the type of user input or parsed value is not a dictionary, raise an InvalidArgumentValueError. Otherwise, take the keys from the attribute map of ManagedClusterProper...
def __validate_cluster_autoscaler_profile( self, cluster_autoscaler_profile: Union[List, Dict, None] ) -> Union[Dict, None]: if cluster_autoscaler_profile is not None: # convert list to dict if isinstance(cluster_autoscaler_profile, list): params_dict = {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_cluster_autoscaler_profile(self, read_only: bool = False) -> Union[Dict[str, str], None]:\n # read the original value passed by the command\n cluster_autoscaler_profile = self.raw_param.get(\"cluster_autoscaler_profile\")\n # parse and validate user input\n cluster_autoscaler_p...
[ "0.5151069", "0.48074573", "0.47254848", "0.46981266", "0.46793914", "0.46076208", "0.46075413", "0.45812404", "0.45526966", "0.45468676", "0.45406038", "0.45279703", "0.44712833", "0.44638926", "0.4431412", "0.44211832", "0.4415951", "0.4395557", "0.4394504", "0.4365359", "0...
0.76978266
0
Helper function to validate gmsa related options. When enable_windows_gmsa is specified, if both gmsa_dns_server and gmsa_root_domain_name are not assigned and user does not confirm the operation, a DecoratorEarlyExitException will be raised; if only one of gmsa_dns_server or gmsa_root_domain_name is assigned, raise a ...
def __validate_gmsa_options( self, enable_windows_gmsa, gmsa_dns_server, gmsa_root_domain_name, yes, ) -> None: if enable_windows_gmsa: if gmsa_dns_server is None and gmsa_root_domain_name is None: msg = ( "Please assure...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_enable_windows_gmsa(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_windows_gmsa = self.raw_param.get(\"enable_windows_gmsa\")\n # In create mode, try to read the property value corresponding to the parameter from the `mc` obj...
[ "0.658627", "0.6262542", "0.572155", "0.54077303", "0.5399864", "0.5287891", "0.51974815", "0.5153438", "0.51176727", "0.5077888", "0.5069212", "0.5049037", "0.5024756", "0.5018313", "0.5013415", "0.4993465", "0.49794912", "0.49742782", "0.49498725", "0.493851", "0.493188", ...
0.90864724
0
Helper function to obtain the value of subscription_id.
def get_subscription_id(self): subscription_id = self.get_intermediate("subscription_id", None) if not subscription_id: subscription_id = self.cmd.cli_ctx.data.get('subscription_id') if not subscription_id: subscription_id = Profile(cli_ctx=self.cmd.cli_ctx).get_s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subscription_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"subscription_id\")", "def get_subscription_id(self):\n return self.instance_metadata.subscription_id", "def saas_subscription_id(self) -> Optional[str]:\n return pulumi.get(self, \"saas_subscription_id\")", "def ...
[ "0.80306053", "0.7716836", "0.71688896", "0.69573057", "0.6479567", "0.6479567", "0.6466907", "0.6387201", "0.63323355", "0.6320796", "0.6316846", "0.6220021", "0.62054557", "0.6165518", "0.6147188", "0.6112461", "0.6112461", "0.6112461", "0.60991603", "0.6084195", "0.6038495...
0.774553
1
Internal function to dynamically obtain the value of location according to the context. When location is not assigned, dynamic completion will be triggerd. Function "get_rg_location" will be called to get the location of the provided resource group, which internally used ResourceManagementClient to send the request. Th...
def _get_location(self, read_only: bool = False) -> Union[str, None]: # read the original value passed by the command location = self.raw_param.get("location") # try to read the property value corresponding to the parameter from the `mc` object read_from_mc = False if self.mc and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_location(self, name, group=None):\n opt_group = OptGroup(group) if group is not None else None\n value, loc = self._do_get(name, opt_group, None)\n return loc", "def get_location(\n self,\n ) -> Callable[[locations_pb2.GetLocationRequest], locations_pb2.Location]:\n ...
[ "0.60400724", "0.5878248", "0.5878248", "0.57633233", "0.57633233", "0.567988", "0.5667443", "0.5663981", "0.5646442", "0.5597646", "0.55917937", "0.5571136", "0.55641526", "0.547663", "0.5475348", "0.54751396", "0.54690164", "0.54690164", "0.54402465", "0.54215884", "0.53779...
0.757754
0
Obtain the value of enable_keda. This function will verify the parameter by default. If both enable_keda and disable_keda are specified, raise a MutuallyExclusiveArgumentError.
def get_enable_keda(self) -> bool: return self._get_enable_keda(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_enable_keda(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n enable_keda = self.raw_param.get(\"enable_keda\")\n\n # In create mode, try to read the property value corresponding to the parameter from the `mc` object.\n if self...
[ "0.7840266", "0.7120032", "0.6913669", "0.658747", "0.53017634", "0.5260179", "0.5184817", "0.5177506", "0.50327575", "0.50327575", "0.5014237", "0.5014237", "0.5014237", "0.5014237", "0.5014237", "0.5014237", "0.5014237", "0.5014237", "0.5001445", "0.49837804", "0.49564895",...
0.7669549
1
Internal function to obtain the value of enable_keda. This function supports the option of enable_validation. When enabled, if both enable_keda and disable_keda are specified, raise a MutuallyExclusiveArgumentError.
def _get_enable_keda(self, enable_validation: bool = False) -> bool: # Read the original value passed by the command. enable_keda = self.raw_param.get("enable_keda") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if self.decorator_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_keda(self) -> bool:\n return self._get_enable_keda(enable_validation=True)", "def _get_disable_keda(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_keda = self.raw_param.get(\"disable_keda\")\n\n # This option...
[ "0.8043966", "0.7622176", "0.71619093", "0.6395778", "0.5821647", "0.572448", "0.5659248", "0.53447306", "0.5200703", "0.5100513", "0.5003512", "0.49870613", "0.49826953", "0.49732137", "0.49466726", "0.49347606", "0.4917666", "0.488792", "0.48556545", "0.48528686", "0.485286...
0.8436318
0
Obtain the value of disable_keda. This function will verify the parameter by default. If both enable_keda and disable_keda are specified, raise a MutuallyExclusiveArgumentError.
def get_disable_keda(self) -> bool: return self._get_disable_keda(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_disable_keda(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_keda = self.raw_param.get(\"disable_keda\")\n\n # This option is not supported in create mode, hence we do not read the property value from the `mc` object.\n ...
[ "0.78769684", "0.7046115", "0.7018525", "0.5916144", "0.580819", "0.5683263", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.55558777", "0.5489834", "0.5451636", "0.5...
0.7675799
1
Internal function to obtain the value of disable_keda. This function supports the option of enable_validation. When enabled, if both enable_keda and disable_keda are specified, raise a MutuallyExclusiveArgumentError.
def _get_disable_keda(self, enable_validation: bool = False) -> bool: # Read the original value passed by the command. disable_keda = self.raw_param.get("disable_keda") # This option is not supported in create mode, hence we do not read the property value from the `mc` object. # This pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_disable_keda(self) -> bool:\n return self._get_disable_keda(enable_validation=True)", "def _get_enable_keda(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n enable_keda = self.raw_param.get(\"enable_keda\")\n\n # In create mo...
[ "0.7952239", "0.7631249", "0.7269853", "0.6264979", "0.6230891", "0.5819878", "0.5817734", "0.55076265", "0.5475607", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.53721267", "0.5...
0.85147
0
Obtain the value of storage_profile.
def get_storage_profile(self) -> Optional[ManagedClusterStorageProfile]: profile = self.models.ManagedClusterStorageProfile() if self.mc.storage_profile is not None: profile = self.mc.storage_profile profile.disk_csi_driver = self.get_disk_driver() profile.file_csi_driver = s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def infra_storage_profile(self) -> Optional[pulumi.Input['CloudProviderProfileInfraStorageProfileArgs']]:\n return pulumi.get(self, \"infra_storage_profile\")", "def storage_account(self) -> str:\n return pulumi.get(self, \"storage_account\")", "def profile(self):\n return self._profile", ...
[ "0.6968962", "0.660511", "0.6473169", "0.6440383", "0.64237225", "0.64216846", "0.63830006", "0.63589996", "0.6344794", "0.6344794", "0.63355017", "0.6243928", "0.6243725", "0.6231311", "0.619964", "0.6122273", "0.61142886", "0.61056834", "0.61004585", "0.60826564", "0.604672...
0.67672837
1
Obtain the value of vnet_subnet_id.
def get_vnet_subnet_id(self) -> Union[str, None]: return self.agentpool_context.get_vnet_subnet_id()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def virtual_network_subnet_id(self) -> pulumi.Output[Optional[str]]:\n return pulumi.get(self, \"virtual_network_subnet_id\")", "def virtual_network_subnet_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"virtual_network_subnet_id\")", "def virtual_network_subnet_id(self) -> O...
[ "0.8586591", "0.8491768", "0.8491768", "0.8350412", "0.827008", "0.81594074", "0.81481266", "0.81481266", "0.7513854", "0.7413974", "0.72993106", "0.7277127", "0.71174496", "0.6944694", "0.6929398", "0.68267703", "0.67024887", "0.65791535", "0.6576807", "0.65344477", "0.65188...
0.858173
1
Obtain the value of nodepool_labels.
def get_nodepool_labels(self) -> Union[Dict[str, str], None]: return self.agentpool_context.get_nodepool_labels()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def node_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:\n return pulumi.get(self, \"node_labels\")", "def node_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:\n return pulumi.get(self, \"node_labels\")", "def node_labels(self) -> Optional[pulumi....
[ "0.75618106", "0.75618106", "0.75618106", "0.75618106", "0.74900925", "0.72915566", "0.7250921", "0.72248256", "0.7205818", "0.71913624", "0.7010873", "0.7010873", "0.7010873", "0.7010873", "0.7010873", "0.7010873", "0.6988701", "0.69853497", "0.69787246", "0.6936395", "0.692...
0.82592916
0
Internal function to dynamically obtain the value of dns_name_prefix according to the context. When both dns_name_prefix and fqdn_subdomain are not assigned, dynamic completion will be triggerd. A default dns_name_prefix composed of name (cluster), resource_group_name, and subscription_id will be created. This function...
def _get_dns_name_prefix( self, enable_validation: bool = False, read_only: bool = False ) -> Union[str, None]: # read the original value passed by the command dns_name_prefix = self.raw_param.get("dns_name_prefix") # try to read the property value corresponding to the parameter from...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_dns_name_prefix(self) -> Union[str, None]:\n return self._get_dns_name_prefix(enable_validation=True)", "def _get_fqdn_subdomain(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n fqdn_subdomain = self.raw_param.get(\"fqdn_...
[ "0.6694165", "0.61246324", "0.5349504", "0.510091", "0.50762033", "0.50762033", "0.50762033", "0.50762033", "0.50762033", "0.50762033", "0.50762033", "0.50762033", "0.50749433", "0.5021455", "0.50058", "0.49834308", "0.4929956", "0.49134374", "0.49113208", "0.4905484", "0.489...
0.7448428
0
Dynamically obtain the value of dns_name_prefix according to the context. When both dns_name_prefix and fqdn_subdomain are not assigned, dynamic completion will be triggerd. A default dns_name_prefix composed of name (cluster), resource_group_name, and subscription_id will be created. This function will verify the para...
def get_dns_name_prefix(self) -> Union[str, None]: return self._get_dns_name_prefix(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_dns_name_prefix(\n self, enable_validation: bool = False, read_only: bool = False\n ) -> Union[str, None]:\n # read the original value passed by the command\n dns_name_prefix = self.raw_param.get(\"dns_name_prefix\")\n # try to read the property value corresponding to the pa...
[ "0.682005", "0.586163", "0.56214464", "0.52388936", "0.52388936", "0.52388936", "0.52388936", "0.52388936", "0.52388936", "0.52388936", "0.52388936", "0.52154386", "0.51832396", "0.51107603", "0.5110376", "0.5059555", "0.50069714", "0.49874726", "0.49273393", "0.4908478", "0....
0.6307889
1
Obtain the value of node_osdisk_diskencryptionset_id.
def get_node_osdisk_diskencryptionset_id(self) -> Union[str, None]: # read the original value passed by the command node_osdisk_diskencryptionset_id = self.raw_param.get("node_osdisk_diskencryptionset_id") # try to read the property value corresponding to the parameter from the `mc` object ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def disk_encryption_set_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"disk_encryption_set_id\")", "def secure_vm_disk_encryption_set_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"secure_vm_disk_encryption_set_id\")", "def disk_datastore_id(self, disk_...
[ "0.67298186", "0.64388275", "0.59858125", "0.5931737", "0.587634", "0.55603164", "0.54654", "0.5460655", "0.5446653", "0.5400962", "0.5372715", "0.5357355", "0.5334524", "0.533248", "0.5307974", "0.53060496", "0.53060496", "0.5286388", "0.52851397", "0.5281432", "0.52798504",...
0.88044465
0
Obtain the value of ssh_key_value and no_ssh_key.
def get_ssh_key_value_and_no_ssh_key(self) -> Tuple[str, bool]: # ssh_key_value # read the original value passed by the command raw_value = self.raw_param.get("ssh_key_value") # try to read the property value corresponding to the parameter from the `mc` object value_obtained_from...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ssh_key(self, profile):\n ssh_key = '/home/ssm-user/bastion'\n if self._value.has_option(profile, 'ssh_key'):\n ssh_key = self._value.get(profile, 'ssh_key')\n self.logger.info(\"%s is selected as a ssh user\" % ssh_key)\n return ssh_key", "def get_ssh_key():\n p...
[ "0.61679715", "0.5973256", "0.5830172", "0.5803089", "0.570957", "0.57062227", "0.56491816", "0.56238395", "0.56121117", "0.5565539", "0.5533316", "0.5528271", "0.55282676", "0.55056614", "0.55056614", "0.55056614", "0.55056614", "0.55056614", "0.55056614", "0.547856", "0.545...
0.82931334
0
Obtain the value of admin_username.
def get_admin_username(self) -> str: # read the original value passed by the command admin_username = self.raw_param.get("admin_username") # try to read the property value corresponding to the parameter from the `mc` object if ( self.mc and self.mc.linux_profile a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def admin_username(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"admin_username\")", "def admin_username(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"admin_username\")", "def admin_username(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(s...
[ "0.8626268", "0.8626268", "0.8626268", "0.855688", "0.74516624", "0.7449859", "0.72956645", "0.7219957", "0.7098218", "0.70965356", "0.70321", "0.7005626", "0.6985179", "0.6983305", "0.69539434", "0.69539434", "0.69539434", "0.6949018", "0.6928104", "0.69225544", "0.69225544"...
0.87167406
0
Dynamically obtain the value of windows_admin_username and windows_admin_password according to the context.
def get_windows_admin_username_and_password( self, ) -> Tuple[Union[str, None], Union[str, None]]: return self._get_windows_admin_username_and_password(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_windows_admin_password(self) -> Union[str, None]:\n # read the original value passed by the command\n windows_admin_password = self.raw_param.get(\"windows_admin_password\")\n\n # this parameter does not need dynamic completion\n # this parameter does not need validation\n ...
[ "0.7026003", "0.666714", "0.63422173", "0.62357956", "0.6139254", "0.6005626", "0.5972383", "0.594172", "0.59377044", "0.59334505", "0.59334505", "0.59334505", "0.59157515", "0.5905103", "0.58902407", "0.5879214", "0.5821186", "0.5772675", "0.576862", "0.5750392", "0.57445866...
0.7639984
0
Obtain the value of windows_admin_password.
def get_windows_admin_password(self) -> Union[str, None]: # read the original value passed by the command windows_admin_password = self.raw_param.get("windows_admin_password") # this parameter does not need dynamic completion # this parameter does not need validation return wind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_windows_admin_username_and_password(\n self,\n ) -> Tuple[Union[str, None], Union[str, None]]:\n return self._get_windows_admin_username_and_password(enable_validation=True)", "def admin_password(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"admin_password\")",...
[ "0.8053318", "0.791414", "0.73620445", "0.7306501", "0.725623", "0.72475207", "0.72475207", "0.7243568", "0.7101687", "0.70582354", "0.705318", "0.7032517", "0.7019539", "0.69891137", "0.69397044", "0.686471", "0.684138", "0.684138", "0.684138", "0.6839299", "0.68377525", "...
0.8988906
0
Internal function to obtain the value of enable_ahub.
def _get_enable_ahub( self, enable_validation: bool = False ) -> bool: # read the original value passed by the command enable_ahub = self.raw_param.get("enable_ahub") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_ahub(self) -> bool:\n return self._get_enable_ahub(enable_validation=True)", "def _get_enable(self):\n return self.__enable", "def _get_enable(self):\n return self.__enable", "def get_disable_ahub(self) -> bool:\n return self._get_disable_ahub(enable_validation=True)", "d...
[ "0.7462605", "0.6318883", "0.6318883", "0.6077914", "0.59144866", "0.5763726", "0.54309964", "0.5307891", "0.51156825", "0.5101385", "0.510088", "0.5100028", "0.5099904", "0.508271", "0.507767", "0.5060925", "0.5052044", "0.5033189", "0.4997755", "0.49873328", "0.4957311", ...
0.68327963
1
Obtain the value of enable_ahub.
def get_enable_ahub(self) -> bool: return self._get_enable_ahub(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_enable_ahub(\n self, enable_validation: bool = False\n ) -> bool:\n # read the original value passed by the command\n enable_ahub = self.raw_param.get(\"enable_ahub\")\n # In create mode, try to read the property value corresponding to the parameter from the `mc` object.\n ...
[ "0.6801624", "0.63087666", "0.60537994", "0.60537994", "0.5973692", "0.5859612", "0.53436804", "0.5278385", "0.51970494", "0.51906353", "0.5175489", "0.5152148", "0.5133611", "0.50854313", "0.5080718", "0.5071474", "0.5058121", "0.50457716", "0.50438493", "0.50340617", "0.500...
0.7624808
0
Internal function to obtain the value of disable_ahub.
def _get_disable_ahub(self, enable_validation: bool = False) -> bool: # read the original value passed by the command disable_ahub = self.raw_param.get("disable_ahub") # We do not support this option in create mode, therefore we do not read the value from `mc`. # this parameter does not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_disable_ahub(self) -> bool:\n return self._get_disable_ahub(enable_validation=True)", "def get_enable_ahub(self) -> bool:\n return self._get_enable_ahub(enable_validation=True)", "def _get_enable_ahub(\n self, enable_validation: bool = False\n ) -> bool:\n # read the orig...
[ "0.73368704", "0.6569043", "0.62654716", "0.54976517", "0.5437569", "0.5437569", "0.5412723", "0.5412723", "0.5338816", "0.5176854", "0.51386905", "0.5069727", "0.49032664", "0.49032664", "0.49006057", "0.49006057", "0.48878363", "0.48853374", "0.4878255", "0.48782134", "0.48...
0.72198933
1
Obtain the value of disable_ahub.
def get_disable_ahub(self) -> bool: return self._get_disable_ahub(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_disable_ahub(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n disable_ahub = self.raw_param.get(\"disable_ahub\")\n # We do not support this option in create mode, therefore we do not read the value from `mc`.\n\n # this parame...
[ "0.7102809", "0.67173636", "0.6186511", "0.56364834", "0.5617407", "0.5617407", "0.53054506", "0.53054506", "0.52797973", "0.5225883", "0.520139", "0.520139", "0.5176742", "0.5133651", "0.50889903", "0.50808585", "0.5063292", "0.50578654", "0.50462526", "0.50462526", "0.50373...
0.7416804
0
Internal function to obtain the value of enable_windows_gmsa. This function supports the option of enable_validation. Please refer to function __validate_gmsa_options for details of validation.
def _get_enable_windows_gmsa(self, enable_validation: bool = False) -> bool: # read the original value passed by the command enable_windows_gmsa = self.raw_param.get("enable_windows_gmsa") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_windows_gmsa(self) -> bool:\n return self._get_enable_windows_gmsa(enable_validation=True)", "def __validate_gmsa_options(\n self,\n enable_windows_gmsa,\n gmsa_dns_server,\n gmsa_root_domain_name,\n yes,\n ) -> None:\n if enable_windows_gmsa:\n ...
[ "0.86491394", "0.65857303", "0.5831459", "0.5364812", "0.5286258", "0.5143917", "0.51292014", "0.51047313", "0.4965404", "0.49371117", "0.48884314", "0.48789746", "0.48789746", "0.48789746", "0.48789746", "0.4873115", "0.4856825", "0.47568983", "0.47324654", "0.4715688", "0.4...
0.8462711
1
Internal function to obtain the values of gmsa_dns_server and gmsa_root_domain_name. This function supports the option of enable_validation. Please refer to function __validate_gmsa_options for details of validation.
def _get_gmsa_dns_server_and_root_domain_name(self, enable_validation: bool = False): # gmsa_dns_server # read the original value passed by the command gmsa_dns_server = self.raw_param.get("gmsa_dns_server") # In create mode, try to read the property value corresponding to the parameter ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_gmsa_dns_server_and_root_domain_name(self) -> Tuple[Union[str, None], Union[str, None]]:\n return self._get_gmsa_dns_server_and_root_domain_name(enable_validation=True)", "def __validate_gmsa_options(\n self,\n enable_windows_gmsa,\n gmsa_dns_server,\n gmsa_root_domain_...
[ "0.805901", "0.65277654", "0.54797804", "0.5408008", "0.53743374", "0.5193089", "0.5179265", "0.5078613", "0.50205576", "0.50150186", "0.5001028", "0.4982368", "0.49672383", "0.4952367", "0.49354014", "0.49327356", "0.49095985", "0.49029994", "0.48969346", "0.4885461", "0.486...
0.7887675
1
Internal function to dynamically obtain the values of service_principal and client_secret according to the context. This function supports the option of enable_validation. This function supports the option of read_only. When enabled, it will skip dynamic completion and validation.
def _get_service_principal_and_client_secret( self, enable_validation: bool = False, read_only: bool = False ) -> Tuple[Union[str, None], Union[str, None]]: # service_principal # read the original value passed by the command service_principal = self.raw_param.get("service_principal")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_service_principal_and_client_secret(\n self\n ) -> Tuple[Union[str, None], Union[str, None]]:\n return self._get_service_principal_and_client_secret(enable_validation=True)", "def _obtain_service_account_creds(self) -> service_account.Credentials:\n credentials_json = self._raw_cr...
[ "0.66582423", "0.565604", "0.5578831", "0.54712915", "0.53976566", "0.5392976", "0.53325087", "0.53316975", "0.53104705", "0.5297007", "0.52847713", "0.5268223", "0.52422273", "0.52220094", "0.5221576", "0.5221311", "0.5186103", "0.5183048", "0.517358", "0.5161288", "0.515481...
0.7199387
0
Dynamically obtain the values of service_principal and client_secret according to the context.
def get_service_principal_and_client_secret( self ) -> Tuple[Union[str, None], Union[str, None]]: return self._get_service_principal_and_client_secret(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_client_id(self, context):\n for key, value in context.invocation_metadata():\n if key == 'client_id':\n return value\n raise Exception('client id not found')", "def _get_service_principal_and_client_secret(\n self, enable_validation: bool = False, read_only...
[ "0.60935384", "0.60134804", "0.59524554", "0.59348845", "0.5754955", "0.56976146", "0.56620353", "0.5611669", "0.55893457", "0.557075", "0.5533861", "0.5498766", "0.54349977", "0.53963697", "0.53937066", "0.53483903", "0.53483903", "0.53441286", "0.53438115", "0.53174794", "0...
0.6777169
0
Obtain the value of skip_subnet_role_assignment.
def get_skip_subnet_role_assignment(self) -> bool: # read the original value passed by the command skip_subnet_role_assignment = self.raw_param.get("skip_subnet_role_assignment") # this parameter does not need dynamic completion # this parameter does not need validation return s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def role_arn(self) -> Optional[str]:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> Optional[str]:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> pulumi.Output[Optional[str]]:\n return pulumi.get(self, \"role_arn\")", "def role_arn(self) -> Optional[pu...
[ "0.62121415", "0.62121415", "0.6066156", "0.5905377", "0.5905377", "0.5905377", "0.5905377", "0.57601845", "0.5713269", "0.56733364", "0.5670082", "0.56682163", "0.5652695", "0.5652695", "0.5652695", "0.5652012", "0.561779", "0.561779", "0.5596034", "0.55703914", "0.5553662",...
0.8256094
0
Internal function to obtain the value of assign_identity. This function supports the option of enable_validation. When enabled, if enable_managed_identity is not specified and assign_identity is assigned, a RequiredArgumentMissingError will be raised. Besides, if assign_identity is not assigned but assign_kubelet_ident...
def _get_assign_identity(self, enable_validation: bool = False) -> Union[str, None]: # read the original value passed by the command assign_identity = self.raw_param.get("assign_identity") # In create mode, try to read the property value corresponding to the parameter from the `mc` object ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_assign_kubelet_identity(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n assign_kubelet_identity = self.raw_param.get(\"assign_kubelet_identity\")\n # In create mode, try to read the property value corresponding to the par...
[ "0.76740116", "0.7659859", "0.73053336", "0.7012938", "0.6426611", "0.62798613", "0.62467384", "0.6161163", "0.6086229", "0.60307527", "0.6023322", "0.6023322", "0.5911304", "0.58574635", "0.57308227", "0.57053065", "0.56760824", "0.5666281", "0.5490419", "0.5432264", "0.5421...
0.8478219
0
Helper function to obtain the identity object by msi client.
def get_identity_by_msi_client(self, assigned_identity: str) -> Identity: return self.external_functions.get_user_assigned_identity_by_resource_id(self.cmd.cli_ctx, assigned_identity)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def client_identity(self) -> Identity:\n raise NotImplementedError", "def _get_client_id(self, context):\n for key, value in context.invocation_metadata():\n if key == 'client_id':\n return value\n raise Exception('client id not found')", "def identity(paylo...
[ "0.69976383", "0.6399398", "0.61145127", "0.6106585", "0.6106585", "0.6098773", "0.5980171", "0.59704405", "0.5964385", "0.5925657", "0.5925657", "0.5887657", "0.5863653", "0.5841463", "0.58319014", "0.5789123", "0.57326764", "0.5716458", "0.5710202", "0.5706894", "0.56918377...
0.7378616
0
Helper function to obtain the client_id of user assigned identity.
def get_user_assigned_identity_client_id(self, user_assigned_identity=None) -> str: assigned_identity = user_assigned_identity if user_assigned_identity else self.get_assign_identity() if assigned_identity is None or assigned_identity == "": raise RequiredArgumentMissingError("No assigned id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self) -> pulumi.Output[Optional[str]]:\n return pul...
[ "0.75249153", "0.75249153", "0.75249153", "0.75219494", "0.7492419", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.741176", "0.7387648", "0.7386695", "0.7386695", "0.7386695", "0.7386695", "0.73866...
0.7760884
0
Obtain the value of attach_acr.
def get_attach_acr(self) -> Union[str, None]: # read the original value passed by the command attach_acr = self.raw_param.get("attach_acr") # this parameter does not need dynamic completion # validation if self.decorator_mode == DecoratorMode.CREATE and attach_acr: i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_detach_acr(self) -> Union[str, None]:\n # read the original value passed by the command\n detach_acr = self.raw_param.get(\"detach_acr\")\n\n # this parameter does not need dynamic completion\n # this parameter does not need validation\n return detach_acr", "def acr(sel...
[ "0.7080891", "0.68829334", "0.6811118", "0.6062928", "0.587817", "0.584399", "0.58427054", "0.5744695", "0.5720469", "0.57051146", "0.5686506", "0.5593521", "0.55094045", "0.54986906", "0.5485379", "0.5434659", "0.54029405", "0.53506774", "0.5339196", "0.5336396", "0.53019243...
0.7431823
0
Obtain the value of detach_acr.
def get_detach_acr(self) -> Union[str, None]: # read the original value passed by the command detach_acr = self.raw_param.get("detach_acr") # this parameter does not need dynamic completion # this parameter does not need validation return detach_acr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_attach_acr(self) -> Union[str, None]:\n # read the original value passed by the command\n attach_acr = self.raw_param.get(\"attach_acr\")\n\n # this parameter does not need dynamic completion\n # validation\n if self.decorator_mode == DecoratorMode.CREATE and attach_acr:\...
[ "0.655605", "0.5696708", "0.56255716", "0.56253946", "0.53547883", "0.52089995", "0.519653", "0.5169977", "0.5113252", "0.5102018", "0.5069784", "0.50382006", "0.503496", "0.50301373", "0.5023109", "0.5008546", "0.49819642", "0.49755028", "0.4973189", "0.4961231", "0.49564445...
0.85125786
0
Helper function to obtain the value of assignee from identity_profile or service_principal_profile.
def get_assignee_from_identity_or_sp_profile(self) -> Tuple[str, bool]: assignee = None is_service_principal = False if check_is_msi_cluster(self.mc): if self.mc.identity_profile is None or self.mc.identity_profile["kubeletidentity"] is None: raise UnknownError( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def assignee(self):\n membership = UnitMembershipFactory(unit=self.unit)\n return membership.user", "def get_assignee_email(self, assignee_id):\n response = self.http_call(\"{0}/users/{1}.json\".format(self.uri, assignee_id))\n return json.loads(response.content.decode(sys.stdout.enco...
[ "0.64556867", "0.6103636", "0.6004778", "0.5997133", "0.59836423", "0.59250575", "0.58888984", "0.5654481", "0.56522924", "0.5596333", "0.55668586", "0.5554263", "0.55247456", "0.55247456", "0.5475379", "0.5460796", "0.54219383", "0.5416374", "0.5414677", "0.54078645", "0.539...
0.757959
0
Internal function to obtain the value of load_balancer_sku, default value is CONST_LOAD_BALANCER_SKU_STANDARD.
def _get_load_balancer_sku(self, enable_validation: bool = False) -> Union[str, None]: # read the original value passed by the command load_balancer_sku = safe_lower(self.raw_param.get("load_balancer_sku", CONST_LOAD_BALANCER_SKU_STANDARD)) # try to read the property value corresponding to the p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_load_balancer_sku(self) -> Union[str, None]:\n return safe_lower(self._get_load_balancer_sku(enable_validation=True))", "def sku(self):\n return self._sku", "def sku(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"sku\")", "def sku(self) -> Optional[pulumi.Input...
[ "0.87513345", "0.6634995", "0.6579724", "0.6579724", "0.6484944", "0.64583135", "0.64583135", "0.64583135", "0.6454628", "0.64175785", "0.6401533", "0.6374767", "0.63584584", "0.63446355", "0.63356906", "0.63356906", "0.6311857", "0.62470627", "0.6216702", "0.6216702", "0.621...
0.75678056
1
Obtain the value of load_balancer_sku, default value is CONST_LOAD_BALANCER_SKU_STANDARD.
def get_load_balancer_sku(self) -> Union[str, None]: return safe_lower(self._get_load_balancer_sku(enable_validation=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_load_balancer_sku(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n load_balancer_sku = safe_lower(self.raw_param.get(\"load_balancer_sku\", CONST_LOAD_BALANCER_SKU_STANDARD))\n # try to read the property value correspondin...
[ "0.7420787", "0.6919118", "0.6872399", "0.6872399", "0.6720261", "0.6656864", "0.66411835", "0.66411835", "0.66411835", "0.6632395", "0.6599251", "0.658569", "0.65780234", "0.6554864", "0.654954", "0.65166485", "0.65166485", "0.64975655", "0.64975655", "0.64945287", "0.648965...
0.877468
0
Obtain the value of load_balancer_managed_outbound_ip_count.
def get_load_balancer_managed_outbound_ip_count(self) -> Union[int, None]: # read the original value passed by the command load_balancer_managed_outbound_ip_count = self.raw_param.get( "load_balancer_managed_outbound_ip_count" ) # In create mode, try to read the property valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_load_balancer_managed_outbound_ipv6_count(self) -> Union[int, None]:\n count_ipv6 = self.raw_param.get('load_balancer_managed_outbound_ipv6_count')\n\n if self.decorator_mode == DecoratorMode.CREATE:\n if (\n self.mc and\n self.mc.network_profile and\n...
[ "0.7659348", "0.7563879", "0.7067809", "0.69423544", "0.64291984", "0.6378259", "0.62430793", "0.6232198", "0.6232198", "0.62235296", "0.6193783", "0.61656964", "0.61099416", "0.6103169", "0.5870814", "0.57378906", "0.5683588", "0.56593734", "0.56523633", "0.56393576", "0.563...
0.8522993
0
Obtain the expected count of IPv6 managed outbound IPs.
def get_load_balancer_managed_outbound_ipv6_count(self) -> Union[int, None]: count_ipv6 = self.raw_param.get('load_balancer_managed_outbound_ipv6_count') if self.decorator_mode == DecoratorMode.CREATE: if ( self.mc and self.mc.network_profile and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NumberOfMappingIPV6Ranges(self):\r\n\t\treturn self._get_attribute('numberOfMappingIPV6Ranges')", "def count_i_pv6(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"count_i_pv6\")", "def ipv6_addresses(self) -> pulumi.Output[Sequence[str]]:\n return pulumi.get(self, \"ipv6_add...
[ "0.68127364", "0.5884466", "0.5732813", "0.571151", "0.5619682", "0.55843383", "0.5579877", "0.5567183", "0.55664575", "0.5534347", "0.5514286", "0.5499428", "0.5474871", "0.5454379", "0.54475284", "0.54290825", "0.5425438", "0.54230106", "0.5418349", "0.53125", "0.53111243",...
0.70227295
0
Obtain the value of load_balancer_outbound_ips.
def get_load_balancer_outbound_ips(self) -> Union[str, List[ResourceReference], None]: # read the original value passed by the command load_balancer_outbound_ips = self.raw_param.get( "load_balancer_outbound_ips" ) # In create mode, try to read the property value correspondin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def outbound_ips(self) -> Optional[pulumi.Input['ManagedClusterLoadBalancerProfileOutboundIPsArgs']]:\n return pulumi.get(self, \"outbound_ips\")", "def effective_outbound_ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceReferenceArgs']]]]:\n return pulumi.get(self, \"effective_out...
[ "0.78112", "0.7257709", "0.7257709", "0.72368276", "0.70122385", "0.67246056", "0.65907145", "0.6496916", "0.62983847", "0.6181122", "0.6021635", "0.59804964", "0.58676976", "0.58561325", "0.58237296", "0.5787278", "0.57423633", "0.57200485", "0.5657679", "0.5613782", "0.5594...
0.8407174
0
Obtain the value of load_balancer_outbound_ip_prefixes.
def get_load_balancer_outbound_ip_prefixes(self) -> Union[str, List[ResourceReference], None]: # read the original value passed by the command load_balancer_outbound_ip_prefixes = self.raw_param.get( "load_balancer_outbound_ip_prefixes" ) # In create mode, try to read the pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def outbound_ip_prefixes(self) -> Optional[pulumi.Input['ManagedClusterLoadBalancerProfileOutboundIPPrefixesArgs']]:\n return pulumi.get(self, \"outbound_ip_prefixes\")", "def service_load_balancer_prefixes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:\n return pulumi.get(self, \"se...
[ "0.780894", "0.68973035", "0.6727519", "0.61115503", "0.60654867", "0.5975894", "0.59265953", "0.5886564", "0.5806852", "0.57933456", "0.57694465", "0.5723562", "0.5718137", "0.56745446", "0.5617213", "0.5616012", "0.5605659", "0.5599391", "0.5581525", "0.5579103", "0.5526539...
0.814535
0
Obtain the value of load_balancer_outbound_ports.
def get_load_balancer_outbound_ports(self) -> Union[int, None]: # read the original value passed by the command load_balancer_outbound_ports = self.raw_param.get( "load_balancer_outbound_ports" ) # In create mode, try to read the property value corresponding to the parameter ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allocated_outbound_ports(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"allocated_outbound_ports\")", "def get_load_balancer_outbound_ips(self) -> Union[str, List[ResourceReference], None]:\n # read the original value passed by the command\n load_balancer_outbound_ips ...
[ "0.7598282", "0.72015893", "0.63595396", "0.6313643", "0.60974395", "0.60765743", "0.5943151", "0.5860206", "0.5785265", "0.5699549", "0.5690695", "0.5621132", "0.55925727", "0.55866444", "0.55693454", "0.55693454", "0.5550031", "0.5505205", "0.5474512", "0.5430843", "0.54095...
0.85207796
0
Obtain the value of load_balancer_idle_timeout.
def get_load_balancer_idle_timeout(self) -> Union[int, None]: # read the original value passed by the command load_balancer_idle_timeout = self.raw_param.get( "load_balancer_idle_timeout" ) # In create mode, try to read the property value corresponding to the parameter from t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idle_timeout_in_minutes(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"idle_timeout_in_minutes\")", "def idle_timeout_in_minutes(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"idle_timeout_in_minutes\")", "def get_boot_timeout(self):\n return self....
[ "0.7100315", "0.7100315", "0.67829424", "0.6761424", "0.6735782", "0.6577744", "0.6485874", "0.6444881", "0.6393913", "0.6393913", "0.6379619", "0.63738286", "0.636097", "0.63357836", "0.63131976", "0.63131976", "0.6284953", "0.6280891", "0.62770486", "0.6243621", "0.6233084"...
0.84147555
0
Obtain the value of nat_gateway_managed_outbound_ip_count.
def get_nat_gateway_managed_outbound_ip_count(self) -> Union[int, None]: # read the original value passed by the command nat_gateway_managed_outbound_ip_count = self.raw_param.get("nat_gateway_managed_outbound_ip_count") # In create mode, try to read the property value corresponding to the param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_load_balancer_managed_outbound_ip_count(self) -> Union[int, None]:\n # read the original value passed by the command\n load_balancer_managed_outbound_ip_count = self.raw_param.get(\n \"load_balancer_managed_outbound_ip_count\"\n )\n # In create mode, try to read the p...
[ "0.7827822", "0.74722016", "0.6817358", "0.6476238", "0.61126053", "0.6101688", "0.6061548", "0.6059602", "0.6006698", "0.59497523", "0.58619505", "0.58606917", "0.5841705", "0.5818033", "0.5818033", "0.5814374", "0.5783102", "0.5766797", "0.57649326", "0.5712222", "0.5636903...
0.85568357
0
Obtain the value of nat_gateway_idle_timeout.
def get_nat_gateway_idle_timeout(self) -> Union[int, None]: # read the original value passed by the command nat_gateway_idle_timeout = self.raw_param.get("nat_gateway_idle_timeout") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idle_timeout_in_minutes(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"idle_timeout_in_minutes\")", "def idle_timeout_in_minutes(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"idle_timeout_in_minutes\")", "def gettimeout(self):\r\n return self.sock...
[ "0.7276977", "0.7276977", "0.71444297", "0.71444297", "0.7058299", "0.6993919", "0.69001245", "0.6860101", "0.6738092", "0.6717437", "0.6692491", "0.66402537", "0.6639264", "0.6639073", "0.6639073", "0.6639073", "0.6639073", "0.6627185", "0.6620188", "0.661259", "0.66012883",...
0.8476028
0
Obtain the value of ip_families.
def get_ip_families(self) -> Union[List[str], None]: # read the original value passed by the command ip_families = self.raw_param.get("ip_families") # normalize ip_families = extract_comma_separated_string(ip_families, keep_none=True, default_value=[]) # try to read the property ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ip_families(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[Union[str, 'IpFamily']]]]]:\n return pulumi.get(self, \"ip_families\")", "def get_families(self):\n return self.__make_api_call('get/families')", "def list_families(self):\n return self.__make_api_call('list/families')", ...
[ "0.85059047", "0.68266314", "0.6718511", "0.6189531", "0.6115941", "0.6090748", "0.6053435", "0.58633566", "0.5686859", "0.5685495", "0.5653017", "0.5608316", "0.5577426", "0.55728847", "0.5570815", "0.55400455", "0.5529794", "0.55246115", "0.5430281", "0.54093844", "0.533153...
0.81734425
1
Obtain the value of network_plugin_mode.
def get_network_plugin_mode(self) -> Union[str, None]: return self._get_network_plugin_mode(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_plugin_mode(self) -> Optional[pulumi.Input[Union[str, 'NetworkPluginMode']]]:\n return pulumi.get(self, \"network_plugin_mode\")", "def network_mode(self) -> Optional[pulumi.Input[Union[str, 'NetworkMode']]]:\n return pulumi.get(self, \"network_mode\")", "def network_plugin(self) -> O...
[ "0.86007", "0.72097677", "0.7105048", "0.6824493", "0.6790282", "0.6675465", "0.6665327", "0.6518027", "0.65160686", "0.6483247", "0.6473169", "0.6433205", "0.63309723", "0.631305", "0.63063604", "0.627179", "0.6144949", "0.60640067", "0.6043401", "0.60211957", "0.60211957", ...
0.8416459
1
Obtain the value of network_plugin.
def get_network_plugin(self) -> Union[str, None]: return self._get_network_plugin(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_plugin(self) -> Optional[pulumi.Input[Union[str, 'NetworkPlugin']]]:\n return pulumi.get(self, \"network_plugin\")", "def network_plugin_mode(self) -> Optional[pulumi.Input[Union[str, 'NetworkPluginMode']]]:\n return pulumi.get(self, \"network_plugin_mode\")", "def get_network_plugin_...
[ "0.77019167", "0.67851454", "0.66011715", "0.651455", "0.65120023", "0.63674635", "0.62610763", "0.6181945", "0.6164135", "0.61154985", "0.61154985", "0.61154985", "0.60768074", "0.6068218", "0.59530205", "0.5934324", "0.59288955", "0.5928412", "0.58149225", "0.58015245", "0....
0.7122065
1
Get the value of network_dataplane.
def get_network_dataplane(self) -> Union[str, None]: return self.raw_param.get("network_dataplane")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_dataplane(self) -> Optional[pulumi.Input[Union[str, 'NetworkDataplane']]]:\n return pulumi.get(self, \"network_dataplane\")", "def getData(self):\n return struct.unpack(\"!d\",self.data)[0]", "def getData(self):\n return struct.unpack(\"!f\",self.data)[0]", "def get_dataplane...
[ "0.78302395", "0.633378", "0.61172324", "0.60053504", "0.59994256", "0.59934694", "0.5991421", "0.5991421", "0.59132063", "0.59038144", "0.5899162", "0.5887311", "0.588673", "0.588673", "0.5824124", "0.58012956", "0.57815427", "0.57774425", "0.57729685", "0.57243156", "0.5706...
0.7886303
0
Internal function to obtain the value of pod_cidr, service_cidr, dns_service_ip, docker_bridge_address and network_policy.
def _get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_network_policy( self, enable_validation: bool = False ) -> Tuple[ Union[str, None], Union[str, None], Union[str, None], Union[str, None], Union[str, None], ]: # get network...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_network_policy(\n self,\n ) -> Tuple[\n Union[str, None],\n Union[str, None],\n Union[str, None],\n Union[str, None],\n Union[str, None],\n ]:\n return self._get_pod_cidr_and_se...
[ "0.770353", "0.56647307", "0.56647307", "0.5606011", "0.5239462", "0.5239462", "0.5239462", "0.51047766", "0.50487715", "0.50297356", "0.5013917", "0.49550694", "0.4856301", "0.47989824", "0.47734207", "0.47114637", "0.47114637", "0.4709715", "0.4709715", "0.47072223", "0.470...
0.6905621
1
Obtain the value of pod_cidr, service_cidr, dns_service_ip, docker_bridge_address and network_policy.
def get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_network_policy( self, ) -> Tuple[ Union[str, None], Union[str, None], Union[str, None], Union[str, None], Union[str, None], ]: return self._get_pod_cidr_and_service_cidr_and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_pod_cidr_and_service_cidr_and_dns_service_ip_and_docker_bridge_address_and_network_policy(\n self, enable_validation: bool = False\n ) -> Tuple[\n Union[str, None],\n Union[str, None],\n Union[str, None],\n Union[str, None],\n Union[str, None],\n ]:\n ...
[ "0.6636231", "0.5917717", "0.5917717", "0.5608019", "0.53910077", "0.53910077", "0.53910077", "0.5227576", "0.5103053", "0.5095557", "0.5095557", "0.50784636", "0.50784636", "0.5055723", "0.49869743", "0.4945056", "0.4938862", "0.48734993", "0.48573723", "0.48123866", "0.4807...
0.76270926
0
Helper function to obtain the constants used by addons.
def get_addon_consts(self) -> Dict[str, str]: from azure.cli.command_modules.acs._consts import ( ADDONS, CONST_ACC_SGX_QUOTE_HELPER_ENABLED, CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME, CONST_AZURE_POLICY_ADDON_NAME, CONST_CONFCOM_ADDON_NAME, CONST_HTTP_APPL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def constants(self):\n return self.bot.constants", "def constants(self):\n return self._constants", "def get_constants(self):\n temp = self._properties.get('constants', [])\n return temp", "def get_defined_constants():\n raise NotImplementedError()", "def get_consts(self):\n c...
[ "0.72575116", "0.7246178", "0.70951766", "0.7016354", "0.68816453", "0.68795377", "0.64245206", "0.6304636", "0.62934524", "0.5997974", "0.5880374", "0.5861224", "0.5843757", "0.58403367", "0.57400537", "0.5736622", "0.5733507", "0.57293123", "0.5697053", "0.5657399", "0.5633...
0.7898684
0
Internal function to obtain the value of enable_addons.
def _get_enable_addons(self, enable_validation: bool = False) -> List[str]: # determine the value of constants addon_consts = self.get_addon_consts() valid_addon_keys = addon_consts.get("ADDONS").keys() # read the original value passed by the command enable_addons = self.raw_par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_addons(self) -> List[str]:\n\n return self._get_enable_addons(enable_validation=True)", "def _get_enable(self):\n return self.__enable", "def _get_enable(self):\n return self.__enable", "def addons_config(self) -> 'outputs.AddonsConfigResponse':\n return pulumi.get(self, \"...
[ "0.7205903", "0.6804676", "0.6804676", "0.64908105", "0.62050027", "0.6193101", "0.6038516", "0.60257065", "0.58602744", "0.58555007", "0.58165956", "0.580858", "0.5798054", "0.57953113", "0.5770367", "0.5722522", "0.57016325", "0.5659138", "0.56360584", "0.5620025", "0.56167...
0.70253557
1
Obtain the value of enable_addons.
def get_enable_addons(self) -> List[str]: return self._get_enable_addons(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addons_config(self) -> 'outputs.AddonsConfigResponse':\n return pulumi.get(self, \"addons_config\")", "def _get_enable(self):\n return self.__enable", "def _get_enable(self):\n return self.__enable", "def _get_enable_addons(self, enable_validation: bool = False) -> List[str]:\n # dete...
[ "0.68291336", "0.677199", "0.677199", "0.6652646", "0.6496308", "0.62080246", "0.6165309", "0.6142399", "0.6116278", "0.6077121", "0.6076746", "0.60332817", "0.5964098", "0.5953141", "0.59218335", "0.5914245", "0.58532643", "0.5850154", "0.5836041", "0.57907563", "0.57693744"...
0.7205488
0
Internal function to dynamically obtain the value of workspace_resource_id according to the context. When workspace_resource_id is not assigned, dynamic completion will be triggerd. Function "ensure_default_log_analytics_workspace_for_monitoring" will be called to create a workspace with subscription_id and resource_gr...
def _get_workspace_resource_id( self, enable_validation: bool = False, read_only: bool = False ) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_MONITORING_ADDON_NAME = addon_consts.get("CONST_MONITORING_ADDON_NAME") CONST_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def log_analytics_workspace_resource_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"log_analytics_workspace_resource_id\")", "def get_workspace_resource_id(self) -> Union[str, None]:\n return self._get_workspace_resource_id(enable_validation=True)", "def get(resource_name: s...
[ "0.6765404", "0.66471523", "0.5830044", "0.5674615", "0.5674615", "0.56254786", "0.56119746", "0.5346999", "0.5292099", "0.52377284", "0.5199666", "0.51216084", "0.51216084", "0.5087775", "0.5087775", "0.4935949", "0.4886711", "0.48856503", "0.48505947", "0.477355", "0.471145...
0.75189555
0
Dynamically obtain the value of workspace_resource_id according to the context. When workspace_resource_id is not assigned, dynamic completion will be triggerd. Function "ensure_default_log_analytics_workspace_for_monitoring" will be called to create a workspace with subscription_id and resource_group_name, which inter...
def get_workspace_resource_id(self) -> Union[str, None]: return self._get_workspace_resource_id(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def log_analytics_workspace_resource_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"log_analytics_workspace_resource_id\")", "def _get_workspace_resource_id(\n self, enable_validation: bool = False, read_only: bool = False\n ) -> Union[str, None]:\n # determine the v...
[ "0.71933305", "0.6364322", "0.6171849", "0.614986", "0.6058244", "0.6058244", "0.57621074", "0.57621074", "0.5758293", "0.5758293", "0.5756883", "0.5652816", "0.56086487", "0.53660405", "0.53605044", "0.52795064", "0.52268714", "0.5118914", "0.5118914", "0.5118914", "0.506808...
0.65066355
1
Obtain the value of enable_msi_auth_for_monitoring.
def get_enable_msi_auth_for_monitoring(self) -> Union[bool, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_MONITORING_ADDON_NAME = addon_consts.get("CONST_MONITORING_ADDON_NAME") CONST_MONITORING_USING_AAD_MSI_AUTH = addon_consts.get("CONST_MONITOR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _GetEnableOsLoginValue(self, metadata_dict):\n instance_data, project_data = self._GetInstanceAndProjectAttributes(\n metadata_dict)\n instance_value = instance_data.get('enable-oslogin')\n project_value = project_data.get('enable-oslogin')\n value = instance_value or project_value or ''\n\n...
[ "0.6428526", "0.6033685", "0.5987081", "0.58922654", "0.58922654", "0.58912647", "0.5848097", "0.5837402", "0.57985854", "0.56505895", "0.56397754", "0.5638569", "0.5592268", "0.5578762", "0.5571033", "0.55265933", "0.551889", "0.5505663", "0.549854", "0.54973227", "0.5479216...
0.8207107
0
Obtain the value of enable_syslog.
def get_enable_syslog(self) -> Union[bool, None]: # read the original value passed by the command enable_syslog = self.raw_param.get("enable_syslog") # this parameter does not need dynamic completion # this parameter does not need validation return enable_syslog
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getNodeSyslog(self,node):\n data = self.connect('get','nodes/%s/syslog' % (node),None)\n return data", "def _GetLoggingSetting(self):\n # Supported values in GCP are '', 'true', and 'True'.\n settings = [str(x) for x in self.term.logging]\n if any(value in settings for value in ['true'...
[ "0.60983366", "0.5722266", "0.5693049", "0.5658202", "0.56569153", "0.54985195", "0.5477139", "0.5425688", "0.5399692", "0.53968275", "0.538075", "0.53761613", "0.53712434", "0.5334233", "0.5316423", "0.52780515", "0.52780515", "0.5260578", "0.52439195", "0.52166086", "0.5207...
0.8398978
0
Obtain the value of data_collection_settings.
def get_data_collection_settings(self) -> Union[str, None]: # read the original value passed by the command data_collection_settings_file_path = self.raw_param.get("data_collection_settings") # validate user input if data_collection_settings_file_path: if not os.path.isfile(d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def settings():\n return _get_settings()[1]", "def value(self):\n\n memcached_items = memcache_services.get_multi([self.name])\n if self.name in memcached_items:\n return memcached_items[self.name]\n\n datastore_item = config_models.ConfigPropertyModel.get(\n self.name...
[ "0.6528297", "0.6382505", "0.635182", "0.6245283", "0.61727256", "0.61666256", "0.61304647", "0.61304647", "0.6120048", "0.60848856", "0.6051074", "0.6050535", "0.60140234", "0.5946681", "0.5946681", "0.5946681", "0.5946681", "0.594485", "0.5935633", "0.59317094", "0.5925324"...
0.74231696
0
Helper function to obtain the os_type of virtual node addon.
def get_virtual_node_addon_os_type(self) -> str: return "Linux"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_os_type(self):\n\t\treturn call_sdk_function('PrlVmCfg_GetOsType', self.handle)", "def os_type(self) -> Optional[str]:\n return pulumi.get(self, \"os_type\")", "def os_type(self) -> Optional[str]:\n return pulumi.get(self, \"os_type\")", "def get_host_os_type(self):\n\t\treturn call_sdk...
[ "0.806094", "0.7566977", "0.7566977", "0.7524138", "0.7362434", "0.73300123", "0.73274463", "0.7290057", "0.7276726", "0.7245464", "0.6884631", "0.6883109", "0.6619979", "0.6607807", "0.65581787", "0.6537669", "0.65150976", "0.6427563", "0.6365031", "0.6364053", "0.6318775", ...
0.8594602
0
Obtain the value of aci_subnet_name.
def get_aci_subnet_name(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_VIRTUAL_NODE_ADDON_NAME = addon_consts.get("CONST_VIRTUAL_NODE_ADDON_NAME") CONST_VIRTUAL_NODE_SUBNET_NAME = addon_consts.get("CONST_VIRTUAL_NODE_SUBNET_NAME...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subnet_group_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"subnet_group_name\")", "def cluster_subnet(self) -> str:\n return pulumi.get(self, \"cluster_subnet\")", "def subnet_group_name(self) -> str:\n return pulumi.get(self, \"subnet_group_name\")", "def subnet_id(s...
[ "0.73947215", "0.73365384", "0.73025113", "0.7265406", "0.72164613", "0.719906", "0.713476", "0.713476", "0.7115182", "0.7029042", "0.7018052", "0.7018052", "0.69657993", "0.6899262", "0.6899262", "0.68794215", "0.6759969", "0.6753503", "0.67428374", "0.6624055", "0.6604675",...
0.8567893
0
Obtain the value of appgw_name.
def get_appgw_name(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get("CONST_INGRESS_APPGW_ADDON_NAME") CONST_INGRESS_APPGW_APPLICATION_GATEWAY_NAME = addon_consts.get( "CONST_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_app_name(app):\n return app[APP_NAME_KEY]", "def getApplicationName(self) -> unicode:\n ...", "def get_appgw_id(self) -> Union[str, None]:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get(\"...
[ "0.74616367", "0.7233052", "0.7183323", "0.7180863", "0.7084527", "0.70705265", "0.70004845", "0.693833", "0.6933758", "0.6931009", "0.6879082", "0.6879082", "0.6818683", "0.6816083", "0.67015773", "0.6605833", "0.65939206", "0.65772164", "0.6567707", "0.6544749", "0.6544749"...
0.85585195
0
Obtain the value of appgw_subnet_cidr.
def get_appgw_subnet_cidr(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get("CONST_INGRESS_APPGW_ADDON_NAME") CONST_INGRESS_APPGW_SUBNET_CIDR = addon_consts.get("CONST_INGRESS_APPGW_SUBNE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_appgw_subnet_id(self) -> Union[str, None]:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get(\"CONST_INGRESS_APPGW_ADDON_NAME\")\n CONST_INGRESS_APPGW_SUBNET_ID = addon_consts.get(\"CONST_INGRESS_APP...
[ "0.7323157", "0.7128274", "0.7106472", "0.7103108", "0.7103108", "0.7060922", "0.7060922", "0.7002869", "0.69952387", "0.69638777", "0.6960986", "0.6960986", "0.6935144", "0.6803388", "0.6785884", "0.6731447", "0.6727425", "0.6727425", "0.6703221", "0.6703221", "0.66906685", ...
0.8577678
0
Obtain the value of appgw_id.
def get_appgw_id(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get("CONST_INGRESS_APPGW_ADDON_NAME") CONST_INGRESS_APPGW_APPLICATION_GATEWAY_ID = addon_consts.get("CONST_INGRESS_APPGW_APP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def app_id(self):\n return self._app_id", "def app_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"app_id\")", "def appid(self):\n return self._item[\"appid\"]", "def app_id(self) -> str:\n return self._app_id", "def get_appgw_name(self) -> Union[str, None]:\n ...
[ "0.721044", "0.7155202", "0.71197546", "0.7063182", "0.6951479", "0.69196516", "0.6867817", "0.6846431", "0.6845491", "0.6831396", "0.6828174", "0.6737395", "0.66991", "0.6506326", "0.6498896", "0.6498896", "0.6498896", "0.64338803", "0.64220214", "0.639425", "0.6338759", "...
0.83992416
0
Obtain the value of appgw_subnet_id.
def get_appgw_subnet_id(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get("CONST_INGRESS_APPGW_ADDON_NAME") CONST_INGRESS_APPGW_SUBNET_ID = addon_consts.get("CONST_INGRESS_APPGW_SUBNET_ID...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def app_subnet_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"app_subnet_id\")", "def subnet_id(self) -> Optional[str]:\n return pulumi.get(self, \"subnet_id\")", "def subnet_id(self) -> str:\n return pulumi.get(self, \"subnet_id\")", "def subnet_id(self):\n ...
[ "0.8513004", "0.8058407", "0.80336833", "0.7891081", "0.7837524", "0.7837524", "0.7442669", "0.7367331", "0.7367235", "0.7367235", "0.7299241", "0.7105402", "0.7026113", "0.6965385", "0.6806486", "0.6794416", "0.66188806", "0.65474635", "0.6447645", "0.63097215", "0.62285256"...
0.86212575
0
Obtain the value of appgw_watch_namespace.
def get_appgw_watch_namespace(self) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_INGRESS_APPGW_ADDON_NAME = addon_consts.get("CONST_INGRESS_APPGW_ADDON_NAME") CONST_INGRESS_APPGW_WATCH_NAMESPACE = addon_consts.get("CONST_INGRESS_APP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_namespace(self) -> str:\n return self._namespace", "def metric_namespace(self) -> Optional[str]:\n return pulumi.get(self, \"metric_namespace\")", "def metric_namespace(self) -> Optional[str]:\n return pulumi.get(self, \"metric_namespace\")", "def namespace(self) -> Optional[str]...
[ "0.66621256", "0.6606345", "0.6606345", "0.65469575", "0.65469575", "0.65469575", "0.65354997", "0.65354997", "0.64289856", "0.64289856", "0.64289856", "0.64289856", "0.64289856", "0.63780504", "0.63611513", "0.6319834", "0.62419224", "0.623522", "0.62212163", "0.61980546", "...
0.85458755
0
Obtain the value of enable_sgxquotehelper.
def get_enable_sgxquotehelper(self) -> bool: # determine the value of constants addon_consts = self.get_addon_consts() CONST_CONFCOM_ADDON_NAME = addon_consts.get("CONST_CONFCOM_ADDON_NAME") CONST_ACC_SGX_QUOTE_HELPER_ENABLED = addon_consts.get("CONST_ACC_SGX_QUOTE_HELPER_ENABLED") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def include_quote(self) -> Optional[bool]:\n return pulumi.get(self, \"include_quote\")", "def get_quotes(self):\n # However ignore the 'true' autodetection setting.\n jscs_quotes = self.jscs_options.get('validateQuoteMarks')\n if isinstance(jscs_quotes, dict):\n jscs_quote...
[ "0.58308876", "0.57336015", "0.57133615", "0.57133615", "0.52744067", "0.51573586", "0.5150642", "0.5144941", "0.5105626", "0.50925654", "0.5083573", "0.5078732", "0.5014738", "0.49901444", "0.4989533", "0.4974014", "0.49591228", "0.49126196", "0.49086168", "0.4902224", "0.49...
0.87389165
0
Internal function to obtain the value of enable_secret_rotation. This function supports the option of enable_validation. When enabled, in update mode, if enable_secret_rotation is specified but azure keyvault secret provider addon is not enabled, an InvalidArgumentValueError will be raised.
def _get_enable_secret_rotation(self, enable_validation: bool = False) -> bool: # determine the value of constants addon_consts = self.get_addon_consts() CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get( "CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME" ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_disable_secret_rotation(self, enable_validation: bool = False) -> bool:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get(\n \"CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME\...
[ "0.8169251", "0.77878636", "0.7083806", "0.6873693", "0.6088661", "0.5972192", "0.5735775", "0.56320447", "0.55335236", "0.54329765", "0.5220434", "0.5207739", "0.51439744", "0.51405865", "0.5066065", "0.50539535", "0.5038879", "0.5003077", "0.49914554", "0.49904054", "0.4988...
0.84970236
0
Internal function to obtain the value of disable_secret_rotation. This function supports the option of enable_validation. When enabled, in update mode, if disable_secret_rotation is specified but azure keyvault secret provider addon is not enabled, an InvalidArgumentValueError will be raised.
def _get_disable_secret_rotation(self, enable_validation: bool = False) -> bool: # determine the value of constants addon_consts = self.get_addon_consts() CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get( "CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME" )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_disable_secret_rotation(self) -> bool:\n return self._get_disable_secret_rotation(enable_validation=True)", "def _get_enable_secret_rotation(self, enable_validation: bool = False) -> bool:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_AZ...
[ "0.78879106", "0.7861287", "0.716901", "0.64894164", "0.61119914", "0.5905805", "0.5690037", "0.5635085", "0.55625933", "0.549286", "0.5482957", "0.54675084", "0.53691316", "0.5323151", "0.5286192", "0.528051", "0.5251136", "0.5234248", "0.5226052", "0.5221768", "0.5184755", ...
0.8517381
0
Obtain the value of disable_secret_rotation. This function will verify the parameter by default. In update mode, if disable_secret_rotation is specified but azure keyvault secret provider addon is not enabled, an InvalidArgumentValueError will be raised.
def get_disable_secret_rotation(self) -> bool: return self._get_disable_secret_rotation(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_disable_secret_rotation(self, enable_validation: bool = False) -> bool:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get(\n \"CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME\...
[ "0.80781806", "0.7530236", "0.70143294", "0.6596142", "0.61500645", "0.57170594", "0.5615502", "0.55860037", "0.55860037", "0.55594075", "0.547852", "0.5460882", "0.5456694", "0.5448126", "0.5447635", "0.54417706", "0.5421276", "0.54191613", "0.54140186", "0.54047495", "0.539...
0.76547563
1
Internal function to obtain the value of rotation_poll_interval. This function supports the option of enable_validation. When enabled, in update mode, if rotation_poll_interval is specified but azure keyvault secret provider addon is not enabled, an InvalidArgumentValueError will be raised.
def _get_rotation_poll_interval(self, enable_validation: bool = False) -> Union[str, None]: # determine the value of constants addon_consts = self.get_addon_consts() CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get( "CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_rotation_poll_interval(self) -> Union[str, None]:\n return self._get_rotation_poll_interval(enable_validation=True)", "def poll_interval(self):\n return self.opts.poll_interval", "def check_interval(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"check_interval\")...
[ "0.82278347", "0.671248", "0.6394673", "0.6394673", "0.59591895", "0.5958116", "0.5872276", "0.5869967", "0.5869967", "0.5868385", "0.57615155", "0.5755643", "0.5723402", "0.5723402", "0.56774837", "0.56355", "0.56190455", "0.55804837", "0.5576462", "0.55636406", "0.55400616"...
0.83072454
0
Obtain the value of rotation_poll_interval. This function will verify the parameter by default. In update mode, if rotation_poll_interval is specified but azure keyvault secret provider addon is not enabled, an InvalidArgumentValueError will be raised.
def get_rotation_poll_interval(self) -> Union[str, None]: return self._get_rotation_poll_interval(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_rotation_poll_interval(self, enable_validation: bool = False) -> Union[str, None]:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get(\n \"CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_...
[ "0.77896523", "0.6479036", "0.6469635", "0.6469635", "0.6127741", "0.6127741", "0.59140736", "0.5876525", "0.5846791", "0.5846791", "0.5748593", "0.5729529", "0.57221097", "0.5681048", "0.5676161", "0.5573035", "0.5565345", "0.5528974", "0.55278695", "0.550364", "0.54940975",...
0.80301034
0
Internal function to obtain the value of enable_aad. This function supports the option of enable_validation. When enabled, in create mode, if the value of enable_aad is True and any of aad_client_app_id, aad_server_app_id or aad_server_app_secret is asssigned, a MutuallyExclusiveArgumentError will be raised. If the val...
def _get_enable_aad(self, enable_validation: bool = False) -> bool: # read the original value passed by the command enable_aad = self.raw_param.get("enable_aad") # In create mode, try to read the property value corresponding to the parameter from the `mc` object. if self.decorator_mode =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_aad(self) -> bool:\n\n return self._get_enable_aad(enable_validation=True)", "def _get_enable_azure_rbac(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_azure_rbac = self.raw_param.get(\"enable_azure_rbac\")\n #...
[ "0.7986423", "0.69592005", "0.62913746", "0.60939187", "0.60804445", "0.60697037", "0.59247243", "0.5906257", "0.5906257", "0.56612194", "0.55931604", "0.5524499", "0.5514272", "0.5325802", "0.5310161", "0.52394617", "0.5164164", "0.51582897", "0.51489145", "0.5142212", "0.50...
0.83274245
0
Obtain the value of enable_aad. This function will verify the parameter by default. In create mode, if the value of enable_aad is True and any of aad_client_app_id, aad_server_app_id or aad_server_app_secret is asssigned, a MutuallyExclusiveArgumentError will be raised. If the value of enable_aad is False and the value...
def get_enable_aad(self) -> bool: return self._get_enable_aad(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_enable_aad(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_aad = self.raw_param.get(\"enable_aad\")\n # In create mode, try to read the property value corresponding to the parameter from the `mc` object.\n if self.decor...
[ "0.8022672", "0.668778", "0.6254986", "0.6254986", "0.5998548", "0.58531916", "0.5745483", "0.5719853", "0.5707755", "0.553196", "0.5460657", "0.53346", "0.5292276", "0.52745384", "0.52134436", "0.5168049", "0.50503254", "0.50189227", "0.49438113", "0.49048287", "0.49006552",...
0.77677137
1
Internal function to obtain the value of aad_client_app_id, aad_server_app_id and aad_server_app_secret. This function supports the option of enable_validation. When enabled, if the value of enable_aad is True and any of aad_client_app_id, aad_server_app_id or aad_server_app_secret is asssigned, a MutuallyExclusiveArgu...
def _get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret( self, enable_validation: bool = False ) -> Tuple[Union[str, None], Union[str, None], Union[str, None]]: # get aad profile from `mc` aad_profile = None if self.mc: aad_profile = self.mc.aad_profile...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret(\n self,\n ) -> Tuple[Union[str, None], Union[str, None], Union[str, None]]:\n return self._get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret(enable_validation=True)", "def _get_enable_aad(self, enable_...
[ "0.75942034", "0.6455463", "0.5557624", "0.5554388", "0.52089024", "0.51852506", "0.5142165", "0.50324345", "0.50048953", "0.4997141", "0.4969018", "0.49064273", "0.48956442", "0.48653114", "0.4811225", "0.479971", "0.47796237", "0.47786278", "0.47621787", "0.4703882", "0.465...
0.8070726
0
Obtain the value of aad_client_app_id, aad_server_app_id and aad_server_app_secret. This function will verify the parameters by default. If the value of enable_aad is True and any of aad_client_app_id, aad_server_app_id or aad_server_app_secret is asssigned, a MutuallyExclusiveArgumentError will be raised.
def get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret( self, ) -> Tuple[Union[str, None], Union[str, None], Union[str, None]]: return self._get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_aad_client_app_id_and_aad_server_app_id_and_aad_server_app_secret(\n self, enable_validation: bool = False\n ) -> Tuple[Union[str, None], Union[str, None], Union[str, None]]:\n # get aad profile from `mc`\n aad_profile = None\n if self.mc:\n aad_profile = self.mc....
[ "0.75075585", "0.621237", "0.5496758", "0.5382286", "0.5201899", "0.5133036", "0.50387406", "0.49052104", "0.4841495", "0.48401716", "0.47986048", "0.4797894", "0.47620252", "0.47620252", "0.4748089", "0.47434065", "0.4737469", "0.47354063", "0.46972966", "0.46837527", "0.468...
0.7235697
1
Internal function to obtain the value of aad_admin_group_object_ids. This function supports the option of enable_validation. When enabled in update mode, if aad_admin_group_object_ids is specified, while aad_profile is not set or managed aad is not enabled, raise an InvalidArgumentValueError. This function will normali...
def _get_aad_admin_group_object_ids(self, enable_validation: bool = False) -> Union[List[str], None]: # read the original value passed by the command aad_admin_group_object_ids = self.raw_param.get("aad_admin_group_object_ids") # In create mode, try to read the property value corresponding to th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_aad_admin_group_object_ids(self) -> Union[List[str], None]:\n return self._get_aad_admin_group_object_ids(enable_validation=True)", "def admin_group_object_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"admin_group_object_ids\")", "def admin_group_obje...
[ "0.78241324", "0.7128215", "0.7058258", "0.7058258", "0.5821447", "0.56956625", "0.5670238", "0.5612666", "0.55328345", "0.54451746", "0.5062579", "0.50551534", "0.5042906", "0.5023152", "0.5023152", "0.4999395", "0.48978865", "0.4784435", "0.47647277", "0.47604626", "0.47378...
0.8040217
0
Obtain the value of aad_admin_group_object_ids. This function will verify the parameter by default. In update mode, if aad_admin_group_object_ids is specified, while aad_profile is not set or managed aad is not enabled, raise an InvalidArgumentValueError. This function will normalize the parameter by default. It will s...
def get_aad_admin_group_object_ids(self) -> Union[List[str], None]: return self._get_aad_admin_group_object_ids(enable_validation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_aad_admin_group_object_ids(self, enable_validation: bool = False) -> Union[List[str], None]:\n # read the original value passed by the command\n aad_admin_group_object_ids = self.raw_param.get(\"aad_admin_group_object_ids\")\n # In create mode, try to read the property value correspon...
[ "0.76494515", "0.71606064", "0.71606064", "0.7147788", "0.5648135", "0.5629551", "0.5549631", "0.5545147", "0.5501235", "0.5494188", "0.51931924", "0.49949396", "0.49620852", "0.49620852", "0.49533767", "0.49023682", "0.48139718", "0.47528076", "0.4749792", "0.46772647", "0.4...
0.7743399
0
Internal function to obtain the value of disable_rbac. This function supports the option of enable_validation. When enabled, if the values of disable_rbac and enable_azure_rbac are both True, a MutuallyExclusiveArgumentError will be raised. Besides, if the values of enable_rbac and disable_rbac are both True, a Mutuall...
def _get_disable_rbac(self, enable_validation: bool = False) -> Union[bool, None]: # read the original value passed by the command disable_rbac = self.raw_param.get("disable_rbac") # try to read the property value corresponding to the parameter from the `mc` object if ( self....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_disable_azure_rbac(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n disable_azure_rbac = self.raw_param.get(\"disable_azure_rbac\")\n # We do not support this option in create mode, therefore we do not read the value from `mc`.\n\n ...
[ "0.8219556", "0.8052859", "0.78519756", "0.74519753", "0.7272", "0.68960583", "0.6440081", "0.61812997", "0.61400986", "0.61082125", "0.6054763", "0.5924363", "0.5892928", "0.5864097", "0.5864097", "0.580556", "0.5716333", "0.56800663", "0.56755596", "0.5580242", "0.5285145",...
0.8521468
0