query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
The function is used to extract faces from face coordinates | def extract_faces(self, img, list_face_coord):
#from the img array extract the facees
list_faces = []
#Go through each face coordinates and store the array
#or clip face region in the list
for i, coord in enumerate(list_face_coord):
left, top, right, bottom = coord
list_faces.append(img[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_faces(image):\n return (image.crop(face) for face in image.faces)",
"def detect_faces(image):\n\n face_locations = face_recognition.face_locations(image)\n return face_locations",
"def detect_face(self, img):\n # Fetch face location from the frame with 128 encoding of face landmarks\n ... | [
"0.7587838",
"0.7559992",
"0.71235484",
"0.70463777",
"0.703729",
"0.6998884",
"0.6969824",
"0.69670296",
"0.6928266",
"0.6918168",
"0.69046986",
"0.690407",
"0.69037646",
"0.6871529",
"0.68654686",
"0.6846667",
"0.68419194",
"0.68375146",
"0.68206996",
"0.67943585",
"0.67732... | 0.78909254 | 0 |
Returns the number of nodes in the tree. | def size(self) -> int:
return self._size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def count(self):\n return self.__tree.node_count",
"def node_count(self):\n return self._root.count()",
"def numNodes(self):\n res = 0\n for n in self.iternodes():\n res += 1\n return res",
"def count_nodes(self):\n if self.is_empty():\n return ... | [
"0.8665346",
"0.86314553",
"0.835765",
"0.835578",
"0.8345322",
"0.8338664",
"0.82825106",
"0.8269977",
"0.8269977",
"0.82412213",
"0.8223381",
"0.8203605",
"0.8199395",
"0.81967443",
"0.81613845",
"0.8049595",
"0.80150306",
"0.79714876",
"0.7964271",
"0.79471624",
"0.7945539... | 0.0 | -1 |
Puts the data x through all the hidden layers | def process_hidden_layers(self, x, training):
restricted_to_final_seq = False
for layer_ix, layer in enumerate(self.hidden_layers):
if type(layer) == Dense:
if self.return_final_seq_only and not restricted_to_final_seq:
x = x[:, -1, :]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def layers(self, x):\n raise NotImplementedError",
"def forward(self, data):\r\n x = F.celu(self.lin0(data.x)) # data.x [#,#node features] -lin0-> [#, hidden_dim]\r\n for conv in self.convs:\r\n # conv <- Block [#, hidden_dim]\r\n x = x + F.dropout(conv(x, data.edge_ind... | [
"0.6748111",
"0.6738957",
"0.6507646",
"0.6495115",
"0.62521076",
"0.6248828",
"0.6119253",
"0.6115477",
"0.6069431",
"0.6060732",
"0.6037171",
"0.600768",
"0.60023165",
"0.6001661",
"0.5992356",
"0.5987398",
"0.59788847",
"0.59743315",
"0.59699214",
"0.5936322",
"0.59353787"... | 0.0 | -1 |
Create a Pandas DataFrame that contains a list of userdefined attributes from a set of Blocks. | def generate_table(blocks, attributes, heading=None, exception=True):
if heading is None:
heading = attributes
st = DataFrame(columns=heading)
row = [None] * len(attributes) # not a big deal but save time on realloc
for key, s in blocks.items():
for i, a in enumerate(attributes):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def start_dataframe(block_zones, block_guid, block_name, block_pt, block_layer):\n # make an empty list to populate with block objects\n blocks = []\n # connect gh wires to python block classes\n for i, z in enumerate(block_zones):\n b = Block()\n b.guid = block_guid[i]\n b.name = ... | [
"0.6213763",
"0.60232276",
"0.5933897",
"0.58126754",
"0.57580143",
"0.5599309",
"0.5351924",
"0.5347785",
"0.53098786",
"0.52822083",
"0.52670205",
"0.5263557",
"0.52503467",
"0.52472496",
"0.52292097",
"0.52067655",
"0.51953876",
"0.518646",
"0.51731384",
"0.5167735",
"0.51... | 0.68994987 | 0 |
Initialize the MQTT switch. | def __init__(
self,
hass: HomeAssistant,
config: ConfigType,
config_entry: ConfigEntry,
discovery_data: DiscoveryInfoType | None,
) -> None:
MqttEntity.__init__(self, hass, config, config_entry, discovery_data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self):\n self.host = None\n self.port = None\n self.topic = None\n self._is_opened = False\n self.debug = 0\n self.qos = 0\n self.mqttc = mqtt.Client(\"sng_mqtt\")",
"def __init__(self, mqtt_state_based_provider):\n super(SymmetricKeyProvisioni... | [
"0.74237245",
"0.69531703",
"0.6755471",
"0.6677605",
"0.6551283",
"0.65373504",
"0.6517423",
"0.6492702",
"0.6469862",
"0.645818",
"0.6434009",
"0.64207286",
"0.6378477",
"0.6373907",
"0.63661623",
"0.6336986",
"0.6309125",
"0.628555",
"0.62734354",
"0.62625766",
"0.62543964... | 0.0 | -1 |
Return true if we do optimistic updates. | def assumed_state(self) -> bool:
return self._optimistic | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_update(self) -> bool:\n return self.statement.is_dml and self.statement.is_update",
"def _can_do_updates(self):\n return True",
"def hasChanged(self):\r\n if self.is_updated:\r\n self.is_updated = False\r\n return True\r\n else:\r\n return Fal... | [
"0.7397195",
"0.7278269",
"0.7244994",
"0.6943341",
"0.68277156",
"0.67391276",
"0.6732588",
"0.6693177",
"0.6631048",
"0.6587957",
"0.65783936",
"0.65485394",
"0.6530638",
"0.6500043",
"0.63981247",
"0.6382266",
"0.63658726",
"0.6331869",
"0.6331224",
"0.62123716",
"0.618556... | 0.6091197 | 28 |
Destroy the driver session, this function is called everytime a driver instance is destroyed This is a good place to close any open sessions, finish writing to log files | def cleanup(self):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def close_session(self):\n self.driver.close()",
"def dispose():\n if _driver:\n log.msg_debug(\"[{driver}] dispose\".format(driver=_driver.get_name()))\n _driver.dispose()",
"def __del__(self):\n\n self.session.close()",
"def clean_up(self):\n self.session.close()",
"... | [
"0.71295565",
"0.70011294",
"0.68533635",
"0.68133396",
"0.68128866",
"0.6649395",
"0.6644129",
"0.6590921",
"0.6590921",
"0.6590921",
"0.6573586",
"0.65272343",
"0.6512318",
"0.6509365",
"0.6485146",
"0.64181775",
"0.64109814",
"0.6395172",
"0.6387188",
"0.6377506",
"0.63570... | 0.0 | -1 |
Transforms an input from the attack space to the model space. This transformation and the returned gradient are elementwise. | def to_model_space(self, x):
# from (-inf, +inf) to (-1, +1)
x = np.tanh(x)
grad = 1 - np.square(x)
# map from (-1, +1) to (min_, max_)
a = (self.clip_min + self.clip_max) / 2
b = (self.clip_max - self.clip_min) / 2
x = x * b + a
grad = grad * b
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def forward_and_gradient(self, inputs):\n raise NotImplementedError",
"def forward(self, input):\n G = self.gram_matrix(input)\n self.loss = F.mse_loss(G, self.target)\n return input",
"def forward(self, input):\n input, _ = input\n bs = input.shape[0]\n d1 = se... | [
"0.65613776",
"0.6398742",
"0.6317111",
"0.6283535",
"0.62739986",
"0.62440073",
"0.62440073",
"0.6216726",
"0.6198011",
"0.6195066",
"0.61736643",
"0.617165",
"0.617165",
"0.6160025",
"0.61260575",
"0.6121303",
"0.61106247",
"0.6099519",
"0.6082837",
"0.6082253",
"0.6080456"... | 0.0 | -1 |
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 |
Constructor for the AddCustomerRequest class | def __init__(self,
username=None,
first_name=None,
last_name=None,
application_id=None,
additional_properties = {}):
# Initialize members of the class
self.username = username
self.first_name = first_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def createCustomer(self, **params):\n return self.__req('create_customer', params)",
"def __init__(self, request=None, instance=None, *args, **kwargs):\n #debug_instance(request.customer)\n if request is None:\n raise ValueError(\"Request must not be None\")\n if instance:\n ... | [
"0.6573705",
"0.63780755",
"0.62139934",
"0.6167992",
"0.6150949",
"0.60956126",
"0.60490704",
"0.6047356",
"0.60412294",
"0.60404295",
"0.60362554",
"0.60279834",
"0.60271",
"0.5977118",
"0.59754163",
"0.59710765",
"0.5968734",
"0.594303",
"0.5921952",
"0.58937126",
"0.58691... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def from_dictionary(cls,
dictionary):
if dictionary is None:
return None
# Extract variables from the dictionary
username = dictionary.get('username')
first_name = dictionary.get('firstName')
last_name = dictionary.get('lastName')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_dictionary(cls,\n dictionary):\n if dictionary is None:\n return None\n\n # Extract variables from the dictionary\n id = dictionary.get('id')\n name = dictionary.get('name')\n mtype = dictionary.get('type')\n usage_bytes = diction... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
... | 0.78585315 | 14 |
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 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 |
Obtain the value of resource_group_name. | def get_resource_group_name(self) -> str:
# read the original value passed by the command
resource_group_name = self.raw_param.get("resource_group_name")
# this parameter does not need dynamic completion
# this parameter does not need validation
return resource_group_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def resource_group_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"resource_group_name\")",
"def resource_group_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"resource_group_name\")",
"def resource_group_name(self) -> pulumi.Output[str]:\n return pulumi.get(sel... | [
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8641154",
"0.8549711",
"0.84986484",
"0.84986484",
"0.84986484",
"0.84986484",
"0.84986484",
"0.84986484",
"0.84986484",
"0.849864... | 0.8441228 | 28 |
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 |
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. | def get_location(self) -> Union[str, None]:
return self._get_location() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_location(self, read_only: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n location = self.raw_param.get(\"location\")\n # try to read the property value corresponding to the parameter from the `mc` object\n read_from_mc = False\n if... | [
"0.69107693",
"0.63397783",
"0.60377395",
"0.59626544",
"0.5924864",
"0.5908428",
"0.5885958",
"0.5879535",
"0.58491313",
"0.5832928",
"0.5832928",
"0.57721007",
"0.5768743",
"0.5768743",
"0.5768743",
"0.5768743",
"0.5759344",
"0.5759344",
"0.5759344",
"0.57123774",
"0.571237... | 0.57251054 | 19 |
Obtain the value of tags. | def get_tags(self) -> Union[Dict[str, str], None]:
# read the original value passed by the command
tags = self.raw_param.get("tags")
# In create mode, try to read the property value corresponding to the parameter from the `mc` object.
if self.decorator_mode == DecoratorMode.CREATE:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tags(self):\n return self.get(\"tags\")",
"def tags(self) -> Optional[Any]:\n return pulumi.get(self, \"tags\")",
"def get(self):\n return self.tag.get()",
"def tags(self) -> pulumi.Output[Sequence[str]]:\n return pulumi.get(self, \"tags\")",
"def getTags(self,):\n\t\treturn... | [
"0.75251174",
"0.73319525",
"0.72626084",
"0.72604656",
"0.7212802",
"0.7164336",
"0.7153645",
"0.7146588",
"0.7146588",
"0.7146588",
"0.71453035",
"0.7126331",
"0.7064495",
"0.7045345",
"0.70431423",
"0.7012865",
"0.7012865",
"0.7012865",
"0.7012865",
"0.69876647",
"0.695334... | 0.0 | -1 |
Obtain the value of kubernetes_version. | def get_kubernetes_version(self) -> str:
return self.agentpool_context.get_kubernetes_version() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kubernetes_version(self) -> str:\n return pulumi.get(self, \"kubernetes_version\")",
"def kubernetes_version(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"kubernetes_version\")",
"def k8s_version(self) -> str:\n stdout, _, _ = RunKubectlCommand(['version', '-o', 'yaml']... | [
"0.8759263",
"0.86222196",
"0.7797444",
"0.70432216",
"0.7005363",
"0.69123113",
"0.6878093",
"0.6873619",
"0.6845296",
"0.6831588",
"0.6779903",
"0.6737134",
"0.6720867",
"0.6720478",
"0.6698716",
"0.66903025",
"0.6677353",
"0.6660992",
"0.6660992",
"0.6660992",
"0.6660992",... | 0.82503647 | 2 |
Obtain the value of storage_profile.blob_csi_driver | def get_blob_driver(self) -> Optional[ManagedClusterStorageProfileBlobCSIDriver]:
enable_blob_driver = self.raw_param.get("enable_blob_driver")
disable_blob_driver = self.raw_param.get("disable_blob_driver")
if enable_blob_driver is None and disable_blob_driver is None:
return None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def blob_csi_driver(self) -> Optional[pulumi.Input['ManagedClusterStorageProfileBlobCSIDriverArgs']]:\n return pulumi.get(self, \"blob_csi_driver\")",
"def file_csi_driver(self) -> Optional[pulumi.Input['ManagedClusterStorageProfileFileCSIDriverArgs']]:\n return pulumi.get(self, \"file_csi_driver\"... | [
"0.7777918",
"0.67823046",
"0.66632336",
"0.6394205",
"0.63926435",
"0.61956704",
"0.6070348",
"0.59650373",
"0.5862263",
"0.5785954",
"0.57698995",
"0.5737786",
"0.573625",
"0.56705064",
"0.5668863",
"0.5657932",
"0.56467366",
"0.5622984",
"0.5595455",
"0.55340785",
"0.54830... | 0.64665276 | 3 |
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 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 |
Obtain the value of nodepool_labels. | def get_nodepool_taints(self) -> Union[List[str], None]:
return self.agentpool_context.get_node_taints() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_nodepool_labels(self) -> Union[Dict[str, str], None]:\n return self.agentpool_context.get_nodepool_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.Input[Map... | [
"0.8257607",
"0.7558776",
"0.7558776",
"0.7558776",
"0.7558776",
"0.748693",
"0.7289315",
"0.7248594",
"0.7221936",
"0.72044516",
"0.71884125",
"0.70078826",
"0.70078826",
"0.70078826",
"0.70078826",
"0.70078826",
"0.70078826",
"0.698522",
"0.6981965",
"0.69747853",
"0.693315... | 0.0 | -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 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 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 |
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 |
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 |
Obtain the value of http_proxy_config. | def get_http_proxy_config(self) -> Union[Dict, ManagedClusterHTTPProxyConfig, None]:
# read the original value passed by the command
http_proxy_config = None
http_proxy_config_file_path = self.raw_param.get("http_proxy_config")
# validate user input
if http_proxy_config_file_path... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def http_proxy_config(self) -> Optional[pulumi.Input['HttpProxyConfigArgs']]:\n return pulumi.get(self, \"http_proxy_config\")",
"def http_proxy(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"http_proxy\")",
"def http_proxy(self) -> Optional[pulumi.Input[str]]:\n return ... | [
"0.84024674",
"0.71642166",
"0.71642166",
"0.7011567",
"0.66256654",
"0.66188574",
"0.65680254",
"0.656269",
"0.6536008",
"0.64229226",
"0.6337598",
"0.6246348",
"0.6217977",
"0.61983806",
"0.61782485",
"0.61782485",
"0.61442804",
"0.6103704",
"0.6103704",
"0.6091778",
"0.608... | 0.69584787 | 4 |
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 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 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 CIDR ranges used for pod subnets. | def get_pod_cidrs(self) -> Union[List[str], None]:
# read the original value passed by the command
pod_cidrs = self.raw_param.get("pod_cidrs")
# normalize
pod_cidrs = extract_comma_separated_string(pod_cidrs, keep_none=True, default_value=[])
# try to read the property value corr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subnets(self) -> Sequence[str]:\n return pulumi.get(self, \"subnets\")",
"def subnets(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"subnets\")",
"def subnets(self) -> pulumi.Output[Sequence[str]]:\n return pulumi.get(self, \"subnets\")",
"def subnets... | [
"0.71118957",
"0.6869354",
"0.68213266",
"0.68213266",
"0.6763953",
"0.676344",
"0.66521794",
"0.6646195",
"0.65386534",
"0.6331356",
"0.6305736",
"0.6272918",
"0.62674844",
"0.6234422",
"0.6171579",
"0.6171579",
"0.61450225",
"0.60324013",
"0.5962948",
"0.59169066",
"0.59169... | 0.51883453 | 89 |
Obtain the CIDR ranges for the service subnet. | def get_service_cidrs(self) -> Union[List[str], None]:
# read the original value passed by the command
service_cidrs = self.raw_param.get("service_cidrs")
# normalize
service_cidrs = extract_comma_separated_string(service_cidrs, keep_none=True, default_value=[])
# try to read the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def subnets(self) -> Sequence[str]:\n return pulumi.get(self, \"subnets\")",
"def subnets(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:\n return pulumi.get(self, \"subnets\")",
"def subnets(self) -> pulumi.Output[Sequence[str]]:\n return pulumi.get(self, \"subnets\")",
"def subnets... | [
"0.71052253",
"0.6968024",
"0.69245684",
"0.69245684",
"0.69229734",
"0.69073844",
"0.6813133",
"0.6694559",
"0.6542148",
"0.65413445",
"0.65267986",
"0.6417234",
"0.6369675",
"0.6369675",
"0.6369675",
"0.6352224",
"0.63266206",
"0.63266206",
"0.63266206",
"0.629799",
"0.6230... | 0.0 | -1 |
Dynamically obtain the value of outbound_type according to the context. | def get_outbound_type(
self,
load_balancer_profile: ManagedClusterLoadBalancerProfile = None
) -> Union[str, None]:
return self._get_outbound_type(
enable_validation=True, load_balancer_profile=load_balancer_profile
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def outbound_type(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"outbound_type\")",
"def _resolve_type_from_context(self, cr, uid, context=None):\n if context is None:\n context = {}\n return context.get('default_type')",
"def get_type_s(self, type):\r\n\r\n ... | [
"0.72526693",
"0.62485856",
"0.58260363",
"0.5734686",
"0.5652008",
"0.55597275",
"0.55597275",
"0.55597275",
"0.55597275",
"0.55597275",
"0.55597275",
"0.54893446",
"0.5477531",
"0.5475523",
"0.5459626",
"0.5459626",
"0.5459626",
"0.5459626",
"0.5459626",
"0.5459626",
"0.545... | 0.5483014 | 12 |
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 |
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 |
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 |
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 |
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_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_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 |
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 |
Obtain the value of enable_secret_rotation. This function will verify the parameter by default. 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) -> bool:
return self._get_enable_secret_rotation(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME = addon_consts.get(\n \"CONST_AZURE_KEYVAULT_SECRETS_PROVIDER_ADDON_NAME\"... | [
"0.8113047",
"0.7801113",
"0.69593704",
"0.65771985",
"0.6520729",
"0.5952617",
"0.56111884",
"0.5350469",
"0.53294384",
"0.53294164",
"0.53158516",
"0.53158516",
"0.5292911",
"0.52665824",
"0.5262302",
"0.5233785",
"0.5219061",
"0.52110916",
"0.5210108",
"0.5190599",
"0.5190... | 0.757087 | 2 |
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 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 |
Obtain the value of disable_rbac. This function will verify the parameter by default. 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 MutuallyExclusiveArgumentError will be raised. | def get_disable_rbac(self) -> Union[bool, None]:
return self._get_disable_rbac(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_rbac(self, enable_validation: bool = False) -> Union[bool, None]:\n # read the original value passed by the command\n disable_rbac = self.raw_param.get(\"disable_rbac\")\n # try to read the property value corresponding to the parameter from the `mc` object\n if (\n ... | [
"0.79284805",
"0.76927924",
"0.7583152",
"0.6635043",
"0.6557537",
"0.6433813",
"0.6145056",
"0.6077612",
"0.60113823",
"0.60113823",
"0.56375235",
"0.55412966",
"0.55262804",
"0.5422633",
"0.5286131",
"0.51841253",
"0.51561165",
"0.5144542",
"0.511311",
"0.498658",
"0.492968... | 0.78989744 | 1 |
Internal function to obtain the value of enable_rbac. This function supports the option of enable_validation. When enabled, if the values of enable_rbac and disable_rbac are both True, a MutuallyExclusiveArgumentError will be raised. | def _get_enable_rbac(self, enable_validation: bool = False) -> Union[bool, None]:
# read the original value passed by the command
enable_rbac = self.raw_param.get("enable_rbac")
# try to read the property value corresponding to the parameter from the `mc` object
if (
self.mc ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_rbac(self) -> Union[bool, None]:\n return self._get_enable_rbac(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\... | [
"0.8252217",
"0.79392767",
"0.7772224",
"0.7477777",
"0.7384106",
"0.72585505",
"0.7136762",
"0.70652217",
"0.70652217",
"0.68130904",
"0.6735668",
"0.63726807",
"0.6223203",
"0.59244645",
"0.56460583",
"0.54846597",
"0.54846597",
"0.54623663",
"0.5391502",
"0.5353797",
"0.52... | 0.85881835 | 0 |
Obtain the value of enable_rbac. This function will verify the parameter by default. If the values of enable_rbac and disable_rbac are both True, a MutuallyExclusiveArgumentError will be raised. | def get_enable_rbac(self) -> Union[bool, None]:
return self._get_enable_rbac(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_rbac(self, enable_validation: bool = False) -> Union[bool, None]:\n # read the original value passed by the command\n enable_rbac = self.raw_param.get(\"enable_rbac\")\n # try to read the property value corresponding to the parameter from the `mc` object\n if (\n ... | [
"0.8082779",
"0.800421",
"0.7413065",
"0.73662764",
"0.7286705",
"0.7286705",
"0.712277",
"0.70595306",
"0.6755678",
"0.66667104",
"0.6288508",
"0.6229608",
"0.60527587",
"0.5603209",
"0.5453609",
"0.5453609",
"0.53517437",
"0.52523917",
"0.5202397",
"0.51554984",
"0.5089553"... | 0.8038335 | 1 |
Internal function to obtain the value of disable_azure_rbac. This function supports the option of enable_validation. When enabled, in update mode, if disable_azure_rbac is specified, while aad_profile is not set or managed aad is not enabled, raise an InvalidArgumentValueError. If both disable_azure_rbac and enable_azu... | def _get_disable_azure_rbac(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
disable_azure_rbac = self.raw_param.get("disable_azure_rbac")
# We do not support this option in create mode, therefore we do not read the value from `mc`.
# this ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disable_azure_rbac(self) -> bool:\n return self._get_disable_azure_rbac(enable_validation=True)",
"def _get_disable_rbac(self, enable_validation: bool = False) -> Union[bool, None]:\n # read the original value passed by the command\n disable_rbac = self.raw_param.get(\"disable_rbac\"... | [
"0.78993845",
"0.7757987",
"0.73495156",
"0.7096712",
"0.6739198",
"0.6612402",
"0.6381569",
"0.6381569",
"0.6129346",
"0.6034858",
"0.60345805",
"0.5955271",
"0.5892384",
"0.581085",
"0.5466431",
"0.5416333",
"0.53693444",
"0.53304696",
"0.5238995",
"0.52306056",
"0.51723236... | 0.8129948 | 0 |
Obtain the value of disable_azure_rbac. This function will verify the parameter by default. In update mode, if disable_azure_rbac is specified, while aad_profile is not set or managed aad is not enabled, raise an InvalidArgumentValueError. If both disable_azure_rbac and enable_azure_rbac are specified, raise a Mutually... | def get_disable_azure_rbac(self) -> bool:
return self._get_disable_azure_rbac(enable_validation=True) | {
"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.7688694",
"0.73056644",
"0.69884217",
"0.6807989",
"0.65824723",
"0.65824723",
"0.64989257",
"0.6131397",
"0.57852536",
"0.5715965",
"0.5478783",
"0.5467769",
"0.5449388",
"0.5395478",
"0.5315912",
"0.51121944",
"0.50820327",
"0.5051906",
"0.49752057",
"0.48337606",
"0.474... | 0.76562154 | 1 |
Internal function to obtain the value of fqdn_subdomain. This function supports the option of enable_validation. When enabled, it will check if both dns_name_prefix and fqdn_subdomain are assigend, if so, raise the MutuallyExclusiveArgumentError. It will also check when both private_dns_zone and fqdn_subdomain are assi... | def _get_fqdn_subdomain(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
fqdn_subdomain = self.raw_param.get("fqdn_subdomain")
# try to read the property value corresponding to the parameter from the `mc` object
# Backward Compat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_fqdn_subdomain(self) -> Union[str, None]:\n\n return self._get_fqdn_subdomain(enable_validation=True)",
"def subdomain(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"subdomain\")",
"def _get_dns_name_prefix(\n self, enable_validation: bool = False, read_only: boo... | [
"0.7478837",
"0.6519479",
"0.59060156",
"0.58062226",
"0.5796081",
"0.5698551",
"0.566421",
"0.566421",
"0.5632796",
"0.5592569",
"0.55698943",
"0.5554238",
"0.5526443",
"0.5475209",
"0.5458497",
"0.5421484",
"0.53789437",
"0.53742754",
"0.53725743",
"0.53441274",
"0.53237367... | 0.7902771 | 0 |
Obtain the value of fqdn_subdomain. This function will verify the parameter by default. It will check if both dns_name_prefix and fqdn_subdomain are assigend, if so, raise the MutuallyExclusiveArgumentError. It will also check when both private_dns_zone and fqdn_subdomain are assigned, if the value of private_dns_zone ... | def get_fqdn_subdomain(self) -> Union[str, None]:
return self._get_fqdn_subdomain(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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_subdomain\")\n # try to read the property value corresponding to the parameter from the `mc` object\n # Back... | [
"0.7506506",
"0.65659815",
"0.58119726",
"0.57690096",
"0.5689798",
"0.5621263",
"0.5580823",
"0.5519665",
"0.54294014",
"0.5409427",
"0.5409427",
"0.5393194",
"0.5381491",
"0.5380781",
"0.5303377",
"0.52952677",
"0.52588236",
"0.52475196",
"0.5222602",
"0.5215891",
"0.521261... | 0.73739743 | 1 |
Internal function to obtain the value of enable_private_cluster. This function supports the option of enable_validation. When enabled and enable_private_cluster is specified, if load_balancer_sku equals to basic, raise an InvalidArgumentValueError; if api_server_authorized_ip_ranges is assigned, raise an MutuallyExclus... | def _get_enable_private_cluster(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
enable_private_cluster = self.raw_param.get("enable_private_cluster")
# In create mode, try to read the property value corresponding to the parameter from the `mc` obje... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_private_cluster(self) -> bool:\n\n return self._get_enable_private_cluster(enable_validation=True)",
"def private_cluster_config(self) -> 'outputs.PrivateClusterConfigResponse':\n return pulumi.get(self, \"private_cluster_config\")",
"def on_private_cluster(self) -> bool:\n ... | [
"0.74642414",
"0.6032108",
"0.59003663",
"0.57977486",
"0.5721419",
"0.56082296",
"0.5580789",
"0.5552624",
"0.54809505",
"0.54730034",
"0.54730034",
"0.53577584",
"0.5332894",
"0.53208596",
"0.52683187",
"0.52249265",
"0.5192517",
"0.51890725",
"0.51786554",
"0.51238567",
"0... | 0.785645 | 0 |
Obtain the value of enable_private_cluster. This function will verify the parameter by default. When enable_private_cluster is specified, if load_balancer_sku equals to basic, raise an InvalidArgumentValueError; if api_server_authorized_ip_ranges is assigned, raise an MutuallyExclusiveArgumentError; Otherwise when enab... | def get_enable_private_cluster(self) -> bool:
return self._get_enable_private_cluster(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_private_cluster(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_private_cluster = self.raw_param.get(\"enable_private_cluster\")\n # In create mode, try to read the property value corresponding to the parameter from the... | [
"0.76211256",
"0.60952294",
"0.60907954",
"0.60065454",
"0.58595204",
"0.58248985",
"0.5814807",
"0.55843085",
"0.55843085",
"0.5554461",
"0.55401284",
"0.5475956",
"0.5364047",
"0.5333504",
"0.5324787",
"0.53059655",
"0.52329767",
"0.5218486",
"0.52010274",
"0.50717527",
"0.... | 0.73749846 | 1 |
Internal function to obtain the value of disable_public_fqdn. This function supports the option of enable_validation. When enabled, if enable_private_cluster is not specified and disable_public_fqdn is assigned, raise an InvalidArgumentValueError. If both disable_public_fqdn and enable_public_fqdn are assigned, raise a... | def _get_disable_public_fqdn(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
disable_public_fqdn = self.raw_param.get("disable_public_fqdn")
# 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_disable_public_fqdn(self) -> bool:\n return self._get_disable_public_fqdn(enable_validation=True)",
"def _get_enable_public_fqdn(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_public_fqdn = self.raw_param.get(\"enable_public... | [
"0.7847477",
"0.7706618",
"0.71948427",
"0.71263087",
"0.61738485",
"0.616963",
"0.57643527",
"0.538818",
"0.5315586",
"0.5273106",
"0.52642083",
"0.5234115",
"0.5191039",
"0.51467526",
"0.50344867",
"0.5006846",
"0.5006846",
"0.49294776",
"0.49166802",
"0.49166802",
"0.49150... | 0.81788754 | 0 |
Obtain the value of disable_public_fqdn. This function will verify the parameter by default. If enable_private_cluster is not specified and disable_public_fqdn is assigned, raise an InvalidArgumentValueError. If both disable_public_fqdn and enable_public_fqdn are assigned, raise a MutuallyExclusiveArgumentError. In upd... | def get_disable_public_fqdn(self) -> bool:
return self._get_disable_public_fqdn(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_public_fqdn(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n disable_public_fqdn = self.raw_param.get(\"disable_public_fqdn\")\n # In create mode, try to read the property value corresponding to the parameter from the `mc` obj... | [
"0.7822428",
"0.7396335",
"0.72853106",
"0.69224924",
"0.574704",
"0.56466264",
"0.55467576",
"0.536133",
"0.5340169",
"0.5129477",
"0.51291275",
"0.50914156",
"0.50914156",
"0.50791305",
"0.50791305",
"0.49789402",
"0.49740368",
"0.4946069",
"0.4946069",
"0.48952156",
"0.489... | 0.7548649 | 1 |
Internal function to obtain the value of enable_public_fqdn. This function supports the option of enable_validation. When enabled, if private cluster is not enabled and enable_public_fqdn is assigned, raise an InvalidArgumentValueError. If both disable_public_fqdn and enable_public_fqdn are assigned, raise a MutuallyEx... | def _get_enable_public_fqdn(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
enable_public_fqdn = self.raw_param.get("enable_public_fqdn")
# We do not support this option in create mode, therefore we do not read the value from `mc`.
# this ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_public_fqdn(self) -> bool:\n return self._get_enable_public_fqdn(enable_validation=True)",
"def enable_private_cluster_public_fqdn(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_private_cluster_public_fqdn\")",
"def _get_disable_public_fqdn(self, enable_v... | [
"0.8213136",
"0.7658454",
"0.7580045",
"0.73082215",
"0.6084116",
"0.5960541",
"0.5770567",
"0.56002617",
"0.56002617",
"0.56002617",
"0.56002617",
"0.56002617",
"0.56002617",
"0.55148166",
"0.5434385",
"0.5434385",
"0.54234177",
"0.54234177",
"0.5422648",
"0.5415934",
"0.540... | 0.85021585 | 0 |
Obtain the value of enable_public_fqdn. This function will verify the parameter by default. If private cluster is not enabled and enable_public_fqdn is assigned, raise an InvalidArgumentValueError. If both disable_public_fqdn and enable_private_cluster are assigned, raise a MutuallyExclusiveArgumentError. | def get_enable_public_fqdn(self) -> bool:
return self._get_enable_public_fqdn(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def enable_private_cluster_public_fqdn(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_private_cluster_public_fqdn\")",
"def _get_enable_public_fqdn(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_public_fqd... | [
"0.80801105",
"0.79648226",
"0.71063966",
"0.69003403",
"0.6012228",
"0.5878485",
"0.5721434",
"0.5721434",
"0.5721434",
"0.5721434",
"0.5721434",
"0.5721434",
"0.5646606",
"0.5638172",
"0.5617036",
"0.5584825",
"0.55708104",
"0.55708104",
"0.55585057",
"0.55585057",
"0.54702... | 0.7857052 | 2 |
Internal function to obtain the value of private_dns_zone. This function supports the option of enable_validation. When enabled and private_dns_zone is assigned, if enable_private_cluster is not specified raise an InvalidArgumentValueError. It will also check when both private_dns_zone and fqdn_subdomain are assigned, ... | def _get_private_dns_zone(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
private_dns_zone = self.raw_param.get("private_dns_zone")
# try to read the property value corresponding to the parameter from the `mc` object
if (
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_private_dns_zone(self) -> Union[str, None]:\n return self._get_private_dns_zone(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(\"fqd... | [
"0.77207917",
"0.57523894",
"0.5681734",
"0.5629803",
"0.556988",
"0.55189645",
"0.55128765",
"0.5497744",
"0.5497744",
"0.5497744",
"0.5497744",
"0.5497744",
"0.5484775",
"0.5381141",
"0.51784176",
"0.5177078",
"0.51664406",
"0.51664406",
"0.5103352",
"0.5088848",
"0.5079138... | 0.8179019 | 0 |
Obtain the value of private_dns_zone. This function will verify the parameter by default. When private_dns_zone is assigned, if enable_private_cluster is not specified raise an InvalidArgumentValueError. It will also check when both private_dns_zone and fqdn_subdomain are assigned, if the value of private_dns_zone is C... | def get_private_dns_zone(self) -> Union[str, None]:
return self._get_private_dns_zone(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_private_dns_zone(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n private_dns_zone = self.raw_param.get(\"private_dns_zone\")\n # try to read the property value corresponding to the parameter from the `mc` object\n ... | [
"0.7931263",
"0.57763815",
"0.57521814",
"0.55630267",
"0.5537693",
"0.5537693",
"0.5537693",
"0.5537693",
"0.5537693",
"0.55337",
"0.5504043",
"0.5395401",
"0.53803873",
"0.53099585",
"0.52967274",
"0.5215906",
"0.5215906",
"0.5198609",
"0.51703537",
"0.5169575",
"0.51646656... | 0.76192546 | 1 |
Internal function to obtain the value of assign_kubelet_identity. This function supports the option of enable_validation. When enabled, if assign_identity is not assigned but assign_kubelet_identity is, a RequiredArgumentMissingError will be raised. | def _get_assign_kubelet_identity(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
assign_kubelet_identity = self.raw_param.get("assign_kubelet_identity")
# In create mode, try to read the property value corresponding to the parameter fro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_assign_kubelet_identity(self) -> Union[str, None]:\n return self._get_assign_kubelet_identity(enable_validation=True)",
"def _get_assign_identity(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n assign_identity = self.raw... | [
"0.85263085",
"0.77749425",
"0.65449864",
"0.61029166",
"0.5648655",
"0.5622897",
"0.5533844",
"0.5533844",
"0.5477378",
"0.54605335",
"0.5402398",
"0.5359825",
"0.5223394",
"0.51834553",
"0.5157337",
"0.51491714",
"0.5129118",
"0.5074074",
"0.5011253",
"0.4993661",
"0.499366... | 0.85177666 | 1 |
Obtain the value of assign_kubelet_identity. This function will verify the parameter by default. If assign_identity is not assigned but assign_kubelet_identity is, a RequiredArgumentMissingError will be raised. | def get_assign_kubelet_identity(self) -> Union[str, None]:
return self._get_assign_kubelet_identity(enable_validation=True) | {
"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.79590225",
"0.70489454",
"0.613365",
"0.5659898",
"0.5586964",
"0.5556441",
"0.5492463",
"0.5492463",
"0.5398105",
"0.53727025",
"0.5322101",
"0.5280932",
"0.52634066",
"0.52259636",
"0.5151487",
"0.5085548",
"0.508492",
"0.5079066",
"0.5062617",
"0.5059542",
"0.5044974",
... | 0.82837325 | 0 |
Internal function to dynamically obtain the value of cluster_autoscaler_profile according to the context. This function will call function "__validate_cluster_autoscaler_profile" to parse and verify the parameter by default. In update mode, when cluster_autoscaler_profile is assigned and auto_scaler_profile in the `mc`... | def _get_cluster_autoscaler_profile(self, read_only: bool = False) -> Union[Dict[str, str], None]:
# read the original value passed by the command
cluster_autoscaler_profile = self.raw_param.get("cluster_autoscaler_profile")
# parse and validate user input
cluster_autoscaler_profile = se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_auto_scaler_profile(self, mc):\n self._ensure_mc(mc)\n\n cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()\n if cluster_autoscaler_profile is not None:\n # update profile (may clear profile with empty dictionary)\n mc.auto_scaler_profil... | [
"0.75634074",
"0.741838",
"0.6874368",
"0.6821882",
"0.6787662",
"0.63901645",
"0.6021298",
"0.5759001",
"0.5400338",
"0.53120965",
"0.5280715",
"0.5189543",
"0.5183941",
"0.5159248",
"0.5126471",
"0.5110324",
"0.50559425",
"0.5044121",
"0.5029829",
"0.50004625",
"0.4999193",... | 0.7457909 | 1 |
Dynamically obtain the value of cluster_autoscaler_profile according to the context. This function will call function "__validate_cluster_autoscaler_profile" to parse and verify the parameter by default. In update mode, when cluster_autoscaler_profile is assigned and auto_scaler_profile in the `mc` object has also been... | def get_cluster_autoscaler_profile(self) -> Union[Dict[str, str], None]:
return self._get_cluster_autoscaler_profile() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_auto_scaler_profile(self, mc):\n self._ensure_mc(mc)\n\n cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()\n if cluster_autoscaler_profile is not None:\n # update profile (may clear profile with empty dictionary)\n mc.auto_scaler_profil... | [
"0.7604559",
"0.75005686",
"0.73260164",
"0.69193953",
"0.6844756",
"0.61415124",
"0.60666895",
"0.58061445",
"0.5469793",
"0.5355565",
"0.53487927",
"0.5333636",
"0.52414095",
"0.520395",
"0.5138146",
"0.5118367",
"0.5075955",
"0.5060007",
"0.49509048",
"0.49349388",
"0.4872... | 0.6673955 | 5 |
Obtain the value of tier. | def get_tier(self) -> str:
tier = self.raw_param.get("tier")
if not tier:
return ""
tierStr = tier.lower()
if tierStr == CONST_MANAGED_CLUSTER_SKU_TIER_FREE and self._get_uptime_sla(enable_validation=False):
raise MutuallyExclusiveArgumentError(
'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tier(self) -> str:\n return pulumi.get(self, \"tier\")",
"def tier(self) -> str:\n return pulumi.get(self, \"tier\")",
"def tier(self) -> str:\n return pulumi.get(self, \"tier\")",
"def tier(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"tier\")",
"def tier(self) -... | [
"0.84489286",
"0.84489286",
"0.84489286",
"0.8405233",
"0.82745993",
"0.82745993",
"0.82745993",
"0.82745993",
"0.8178256",
"0.8158172",
"0.8094244",
"0.79406345",
"0.7932042",
"0.7885796",
"0.77740335",
"0.7669868",
"0.76362944",
"0.73382694",
"0.68586874",
"0.6751839",
"0.6... | 0.70394504 | 18 |
Internal function to obtain the value of no_uptime_sla. This function supports the option of enable_validation. When enabled, if both uptime_sla and no_uptime_sla are specified, raise a MutuallyExclusiveArgumentError. | def _get_no_uptime_sla(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
no_uptime_sla = self.raw_param.get("no_uptime_sla")
# We do not support this option in create mode, therefore we do not read the value from `mc`.
# this parameter does ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_uptime_sla(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n uptime_sla = self.raw_param.get(\"uptime_sla\")\n\n # In create mode, try to read the property value corresponding to the parameter from the `mc` object.\n if self.dec... | [
"0.78017",
"0.7754883",
"0.7288638",
"0.6429221",
"0.5582692",
"0.53555185",
"0.5342092",
"0.5019645",
"0.5019645",
"0.50133896",
"0.49751964",
"0.49561796",
"0.49491882",
"0.4898396",
"0.4898396",
"0.48942393",
"0.48942393",
"0.48777467",
"0.48475745",
"0.48475745",
"0.48302... | 0.8301023 | 0 |
Obtain the value of no_uptime_sla. This function will verify the parameter by default. If both uptime_sla and no_uptime_sla are specified, raise a MutuallyExclusiveArgumentError. | def get_no_uptime_sla(self) -> bool:
return self._get_no_uptime_sla(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_no_uptime_sla(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n no_uptime_sla = self.raw_param.get(\"no_uptime_sla\")\n # We do not support this option in create mode, therefore we do not read the value from `mc`.\n\n # this par... | [
"0.75454813",
"0.7079852",
"0.69088066",
"0.64040434",
"0.54020625",
"0.5140819",
"0.5140819",
"0.5086528",
"0.5006381",
"0.49776518",
"0.49474713",
"0.49474713",
"0.49400467",
"0.49400467",
"0.49237248",
"0.49237248",
"0.49194196",
"0.4863335",
"0.4800167",
"0.47991756",
"0.... | 0.74454933 | 1 |
Internal function to obtain the value of enable_azure_keyvault_kms. This function supports the option of enable_validation. When enabled, if azure_keyvault_kms_key_id is empty, raise a RequiredArgumentMissingError. | def _get_enable_azure_keyvault_kms(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
enable_azure_keyvault_kms = self.raw_param.get("enable_azure_keyvault_kms")
# In create mode, try to read the property value corresponding to the parameter from the ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_azure_keyvault_kms(self) -> bool:\n return self._get_enable_azure_keyvault_kms(enable_validation=True)",
"def _get_azure_keyvault_kms_key_vault_resource_id(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n azure_key... | [
"0.82767946",
"0.7558858",
"0.75572014",
"0.72738075",
"0.7000509",
"0.6742453",
"0.6739127",
"0.66457874",
"0.6096058",
"0.5777738",
"0.5517742",
"0.5431482",
"0.5332323",
"0.5332323",
"0.52631927",
"0.52631927",
"0.52631927",
"0.52631927",
"0.52631927",
"0.5195405",
"0.5165... | 0.80517226 | 1 |
Obtain the value of enable_azure_keyvault_kms. This function will verify the parameter by default. When enabled, if azure_keyvault_kms_key_id is empty, raise a RequiredArgumentMissingError. | def get_enable_azure_keyvault_kms(self) -> bool:
return self._get_enable_azure_keyvault_kms(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_azure_keyvault_kms(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_azure_keyvault_kms = self.raw_param.get(\"enable_azure_keyvault_kms\")\n # In create mode, try to read the property value corresponding to the parameter... | [
"0.7605105",
"0.7177807",
"0.7151429",
"0.7129926",
"0.6863066",
"0.6602482",
"0.6262289",
"0.621109",
"0.5847016",
"0.5846006",
"0.56540084",
"0.554478",
"0.540077",
"0.540077",
"0.540077",
"0.540077",
"0.540077",
"0.5348419",
"0.5348419",
"0.52648944",
"0.5175931",
"0.513... | 0.80586755 | 0 |
Internal function to obtain the value of disable_azure_keyvault_kms. This function supports the option of enable_validation. When enabled, if both enable_azure_keyvault_kms and disable_azure_keyvault_kms are specified, raise a MutuallyExclusiveArgumentError. | def _get_disable_azure_keyvault_kms(self, enable_validation: bool = False) -> bool:
# Read the original value passed by the command.
disable_azure_keyvault_kms = self.raw_param.get("disable_azure_keyvault_kms")
# This option is not supported in create mode, hence we do not read the property val... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disable_azure_keyvault_kms(self) -> bool:\n return self._get_disable_azure_keyvault_kms(enable_validation=True)",
"def _get_enable_azure_keyvault_kms(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_azure_keyvault_kms = self.r... | [
"0.8059641",
"0.6783877",
"0.66848576",
"0.66802114",
"0.6510592",
"0.6258375",
"0.6245584",
"0.62155575",
"0.62137175",
"0.60855556",
"0.59823406",
"0.58657515",
"0.58535045",
"0.57345873",
"0.5646828",
"0.558295",
"0.5554695",
"0.55048907",
"0.5486058",
"0.5475051",
"0.5361... | 0.83959544 | 0 |
Obtain the value of disable_azure_keyvault_kms. This function will verify the parameter by default. If both enable_azure_keyvault_kms and disable_azure_keyvault_kms are specified, raise a MutuallyExclusiveArgumentError. | def get_disable_azure_keyvault_kms(self) -> bool:
return self._get_disable_azure_keyvault_kms(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_azure_keyvault_kms(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_azure_keyvault_kms = self.raw_param.get(\"disable_azure_keyvault_kms\")\n\n # This option is not supported in create mode, hence we do not read the p... | [
"0.7792878",
"0.65188485",
"0.6181807",
"0.61525035",
"0.5827468",
"0.569486",
"0.56907535",
"0.56662965",
"0.5619211",
"0.5597161",
"0.5528748",
"0.54751587",
"0.5437034",
"0.5409035",
"0.5344978",
"0.53036374",
"0.5289558",
"0.5257437",
"0.5234923",
"0.5197965",
"0.5004622"... | 0.78642863 | 0 |
Internal function to obtain the value of azure_keyvault_kms_key_vault_network_access according to the context. This function supports the option of enable_validation. When enabled, it will check if azure_keyvault_kms_key_vault_network_access is assigned but enable_azure_keyvault_kms is not specified, if so, raise a Req... | def _get_azure_keyvault_kms_key_vault_network_access(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
azure_keyvault_kms_key_vault_network_access = self.raw_param.get(
"azure_keyvault_kms_key_vault_network_access"
)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_azure_keyvault_kms_key_vault_network_access(self) -> Union[str, None]:\n return self._get_azure_keyvault_kms_key_vault_network_access(enable_validation=True)",
"def key_vault_network_access(self) -> Optional[pulumi.Input[Union[str, 'KeyVaultNetworkAccessTypes']]]:\n return pulumi.get(self, ... | [
"0.8000133",
"0.6500158",
"0.6406265",
"0.633818",
"0.624662",
"0.6073201",
"0.5797315",
"0.56392115",
"0.5465407",
"0.53239447",
"0.4855837",
"0.46185994",
"0.45980266",
"0.45951334",
"0.45314485",
"0.45297498",
"0.44920272",
"0.44779554",
"0.44715083",
"0.44690403",
"0.4426... | 0.7809094 | 1 |
Obtain the value of azure_keyvault_kms_key_vault_network_access. This function will verify the parameter by default. When enabled, if enable_azure_keyvault_kms is False, raise a RequiredArgumentMissingError. | def get_azure_keyvault_kms_key_vault_network_access(self) -> Union[str, None]:
return self._get_azure_keyvault_kms_key_vault_network_access(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_azure_keyvault_kms_key_vault_network_access(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n azure_keyvault_kms_key_vault_network_access = self.raw_param.get(\n \"azure_keyvault_kms_key_vault_network_access\"\n ... | [
"0.769504",
"0.7260225",
"0.6523372",
"0.6079475",
"0.5950076",
"0.5942512",
"0.594208",
"0.5869156",
"0.5729826",
"0.55654824",
"0.5357907",
"0.51892316",
"0.51892316",
"0.51892316",
"0.50348145",
"0.4966411",
"0.49153692",
"0.48801535",
"0.48321053",
"0.4819749",
"0.4809269... | 0.8656627 | 0 |
Internal function to obtain the value of azure_keyvault_kms_key_vault_resource_id according to the context. This function supports the option of enable_validation. When enabled, it will do validation, and raise a RequiredArgumentMissingError. | def _get_azure_keyvault_kms_key_vault_resource_id(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
azure_keyvault_kms_key_vault_resource_id = self.raw_param.get(
"azure_keyvault_kms_key_vault_resource_id"
)
if self.de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_azure_keyvault_kms_key_vault_resource_id(self) -> Union[str, None]:\n return self._get_azure_keyvault_kms_key_vault_resource_id(enable_validation=True)",
"def key_vault_resource_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"key_vault_resource_id\")",
"def _get_azure... | [
"0.8238536",
"0.7287253",
"0.7257546",
"0.71782726",
"0.6626513",
"0.6626513",
"0.6626513",
"0.6626513",
"0.63023734",
"0.6205964",
"0.6205964",
"0.6205964",
"0.6205964",
"0.6205964",
"0.5989396",
"0.59529555",
"0.59529555",
"0.59529555",
"0.59529555",
"0.5950027",
"0.5929833... | 0.7792049 | 1 |
Obtain the value of azure_keyvault_kms_key_vault_resource_id. This function will verify the parameter by default. When enabled, if enable_azure_keyvault_kms is False, raise a RequiredArgumentMissingError. | def get_azure_keyvault_kms_key_vault_resource_id(self) -> Union[str, None]:
return self._get_azure_keyvault_kms_key_vault_resource_id(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_azure_keyvault_kms_key_id(self) -> Union[str, None]:\n return self._get_azure_keyvault_kms_key_id(enable_validation=True)",
"def _get_azure_keyvault_kms_key_vault_resource_id(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n ... | [
"0.80219567",
"0.76714283",
"0.7404162",
"0.70200753",
"0.66493064",
"0.66493064",
"0.66493064",
"0.66493064",
"0.6607541",
"0.6607541",
"0.6607541",
"0.6607541",
"0.6607541",
"0.644918",
"0.644918",
"0.644918",
"0.644918",
"0.63372964",
"0.62925637",
"0.6201661",
"0.6151564"... | 0.8701247 | 0 |
Obtain the value of disable_image_cleaner. This function supports the option of enable_validation. When enabled, if both enable_image_cleaner and disable_image_cleaner are specified, raise a MutuallyExclusiveArgumentError. | def get_disable_image_cleaner(self) -> bool:
# read the original value passed by the command
disable_image_cleaner = self.raw_param.get("disable_image_cleaner")
return disable_image_cleaner | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_image_cleaner(self) -> bool:\n # read the original value passed by the command\n enable_image_cleaner = self.raw_param.get(\"enable_image_cleaner\")\n\n return enable_image_cleaner",
"def _get_disable_keda(self, enable_validation: bool = False) -> bool:\n # Read the ori... | [
"0.6594911",
"0.589205",
"0.57815087",
"0.5754463",
"0.5612637",
"0.5612162",
"0.54885554",
"0.54730916",
"0.5443264",
"0.5115302",
"0.5063125",
"0.50312555",
"0.49561593",
"0.49263147",
"0.49000233",
"0.48931292",
"0.48363513",
"0.48358265",
"0.4830176",
"0.4830176",
"0.4791... | 0.7556133 | 0 |
Obtain the value of image_cleaner_interval_hours. This function supports the option of enable_validation. When enabled 1. In Create mode a. if image_cleaner_interval_hours is specified but enable_image_cleaner is missed, raise a RequiredArgumentMissingError. 2. In update mode b. if image_cleaner_interval_hours is speci... | def get_image_cleaner_interval_hours(self) -> Union[int, None]:
interval_hours = self._get_image_cleaner_interval_hours(enable_validation=True)
return interval_hours | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_image_cleaner_interval_hours(self, enable_validation: bool = False) -> Union[int, None]:\n # read the original value passed by the command\n image_cleaner_interval_hours = self.raw_param.get(\"image_cleaner_interval_hours\")\n\n if image_cleaner_interval_hours is not None and enable_v... | [
"0.8489452",
"0.6093464",
"0.53938067",
"0.53938067",
"0.51766574",
"0.506605",
"0.49974507",
"0.4986403",
"0.49562517",
"0.49562517",
"0.49090952",
"0.48732516",
"0.48697588",
"0.48657766",
"0.48360288",
"0.47848922",
"0.47654247",
"0.47438735",
"0.4694277",
"0.46032977",
"0... | 0.7699873 | 1 |
Obtain the value of edge_zone. | def get_edge_zone(self) -> Union[str, None]:
# read the original value passed by the command
edge_zone = self.raw_param.get("edge_zone")
# try to read the property value corresponding to the parameter from the `mc` object
# Backward Compatibility: We also support api version v2020.11.01 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zone(self):\n return self._zone",
"def zone_depth(self):\n return self._zone_depth",
"def get_zone(self):\n return self.project.get_flow().get_zone_of_object(self)",
"def zone(self) -> str:\n return self._zone",
"def ozone(self) -> float | None:\n return self._ozone",... | [
"0.69481874",
"0.66524094",
"0.65963507",
"0.6536195",
"0.65030295",
"0.6464927",
"0.6464927",
"0.6448546",
"0.6407987",
"0.63329625",
"0.63266337",
"0.6222283",
"0.6187139",
"0.6169762",
"0.6169762",
"0.61544263",
"0.60944676",
"0.60944676",
"0.60944676",
"0.60944676",
"0.60... | 0.75863814 | 0 |
Obtain the value of node_resource_group. | def get_node_resource_group(self) -> Union[str, None]:
# read the original value passed by the command
node_resource_group = self.raw_param.get("node_resource_group")
# try to read the property value corresponding to the parameter from the `mc` object
if self.mc and self.mc.node_resource... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def node_resource_group(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"node_resource_group\")",
"def resource_group(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"resource_group\")",
"def resource_group(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"r... | [
"0.8202358",
"0.713394",
"0.713394",
"0.71045566",
"0.70979667",
"0.7065455",
"0.70570457",
"0.70570457",
"0.70570457",
"0.69630927",
"0.68618864",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68461126",
"0.68389964",
"0... | 0.8311825 | 0 |
Obtain the value of kubernetes_support_plan. | def get_k8s_support_plan(self) -> Union[str, None]:
# default to None
support_plan = None
# try to read the property value corresponding to the parameter from the `mc` object
if self.mc and hasattr(self.mc, "support_plan") and self.mc.support_plan is not None:
support_plan = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_plan(self):\n sub = self.get_subscription()\n return sub.plan",
"def pricing_plan(self) -> str:\n return pulumi.get(self, \"pricing_plan\")",
"def pricing_plan(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"pricing_plan\")",
"def plan(self) -> Optional[p... | [
"0.6089393",
"0.6086248",
"0.6066813",
"0.6003228",
"0.5648068",
"0.5523912",
"0.53859407",
"0.5340536",
"0.5331213",
"0.532732",
"0.5302083",
"0.5302083",
"0.52748597",
"0.52422905",
"0.5184074",
"0.5163444",
"0.5055965",
"0.5055965",
"0.5055965",
"0.5055965",
"0.49442017",
... | 0.82188797 | 0 |
Obtain the value of aks_custom_headers. | def get_aks_custom_headers(self) -> Dict[str, str]:
# read the original value passed by the command
aks_custom_headers = self.raw_param.get("aks_custom_headers")
# normalize user-provided header, extract key-value pairs with comma as separator
# used to enable (preview) features through ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def custom_headers(self):\n return self._custom_headers",
"def get_headers(self):\n \n return self.headers",
"def get_request_headers(self):\n return getattr(self.instance, 'request_headers')",
"def _headers(helper):\n return {\n 'Authorization': 'Splunk {0}'.format(\n ... | [
"0.66147244",
"0.61499155",
"0.6052412",
"0.59581584",
"0.59470314",
"0.5916486",
"0.5898076",
"0.5898076",
"0.5858591",
"0.583997",
"0.5779516",
"0.57766986",
"0.5765084",
"0.57580733",
"0.57570505",
"0.57560205",
"0.5753556",
"0.57351536",
"0.57178366",
"0.569174",
"0.56766... | 0.7272176 | 0 |
Obtain the value of disable_azure_monitor_metrics. This function will verify the parameter by default. If both enable_azure_monitor_metrics and disable_azure_monitor_metrics are specified, raise a MutuallyExclusiveArgumentError. | def get_disable_azure_monitor_metrics(self) -> bool:
return self._get_disable_azure_monitor_metrics(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_azure_monitor_metrics(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_azure_monitor_metrics = self.raw_param.get(\"disable_azure_monitor_metrics\")\n if enable_validation:\n if disable_azure_monitor_metric... | [
"0.80338156",
"0.6842372",
"0.6804126",
"0.578978",
"0.5717663",
"0.56110775",
"0.5402997",
"0.53987163",
"0.53141457",
"0.5189798",
"0.49802285",
"0.48161596",
"0.48100296",
"0.4746616",
"0.4710866",
"0.47063178",
"0.46684718",
"0.46306503",
"0.45926207",
"0.45568413",
"0.45... | 0.79269356 | 1 |
Initialize an AKSAgentPoolAddDecorator object to assemble the AgentPool profile. | def init_agentpool_decorator_context(self) -> None:
self.agentpool_decorator = AKSAgentPoolAddDecorator(
self.cmd, self.client, self.__raw_parameters, self.resource_type, self.agentpool_decorator_mode
)
self.agentpool_context = self.agentpool_decorator.context
self.context.at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def init_agentpool_decorator_context(self) -> None:\n self.agentpool_decorator = AKSAgentPoolUpdateDecorator(\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 se... | [
"0.7490148",
"0.61094487",
"0.58690387",
"0.58118975",
"0.5642255",
"0.5622449",
"0.5469193",
"0.5461134",
"0.5350976",
"0.5324465",
"0.5300219",
"0.52914625",
"0.5236859",
"0.5222781",
"0.51754194",
"0.51687443",
"0.51389706",
"0.51012224",
"0.5097092",
"0.50748473",
"0.5053... | 0.82316643 | 0 |
Initialize a ManagedCluster object with required parameter location and attach it to internal context. When location is not assigned, function "get_rg_location" will be called to get the location of the provided resource group, which internally used ResourceManagementClient to send the request. | def init_mc(self) -> ManagedCluster:
# Initialize a ManagedCluster object with mandatory parameter location.
mc = self.models.ManagedCluster(
location=self.context.get_location(),
)
# attach mc to AKSContext
self.context.attach_mc(mc)
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def init_context(self) -> None:\n self.context = AKSManagedClusterContext(\n self.cmd, AKSManagedClusterParamDict(self.__raw_parameters), self.models, DecoratorMode.CREATE\n )",
"def init_context(self) -> None:\n self.context = AKSManagedClusterContext(\n self.cmd, AKSM... | [
"0.6227252",
"0.6139476",
"0.58921385",
"0.575964",
"0.5743991",
"0.5723454",
"0.5689184",
"0.5648869",
"0.56268656",
"0.56268656",
"0.56268656",
"0.5476359",
"0.5465491",
"0.5439953",
"0.5391493",
"0.5343122",
"0.5319527",
"0.53029305",
"0.5293872",
"0.52934563",
"0.5256827"... | 0.7251653 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.