query stringlengths 9 9.05k | document stringlengths 10 222k | metadata dict | negatives listlengths 30 30 | negative_scores listlengths 30 30 | document_score stringlengths 4 10 | document_rank stringclasses 2
values |
|---|---|---|---|---|---|---|
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 enable_azure_rbac. This function supports the option of enable_validation. When enabled and enable_azure_rbac is specified, in create mode, if the value of enable_aad is not True, a RequiredArgumentMissingError will be raised. If disable_rbac is specified, a MutuallyExclusiveArg... | def _get_enable_azure_rbac(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
enable_azure_rbac = self.raw_param.get("enable_azure_rbac")
# In create mode, try to read the property value corresponding to the parameter from the `mc` object.
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_azure_rbac(self) -> bool:\n\n return self._get_enable_azure_rbac(enable_validation=True)",
"def enable_azure_rbac(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_azure_rbac\")",
"def enable_azure_rbac(self) -> Optional[pulumi.Input[bool]]:\n return ... | [
"0.79330814",
"0.7787738",
"0.7787738",
"0.7325472",
"0.7202885",
"0.71074504",
"0.6777342",
"0.6773368",
"0.6739573",
"0.66343534",
"0.63468695",
"0.63415927",
"0.5800009",
"0.52109927",
"0.51802176",
"0.5168003",
"0.5091458",
"0.5057921",
"0.4830958",
"0.48113155",
"0.48057... | 0.809616 | 0 |
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 |
Obtain the value of oidc_issuer_profile based on the user input. | def get_oidc_issuer_profile(self) -> ManagedClusterOIDCIssuerProfile:
enable_flag_value = bool(self.raw_param.get("enable_oidc_issuer"))
if not enable_flag_value:
# enable flag not set, return a None profile, server side will backfill the default/existing value
return None
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_issuer(site_url=None, request=None):\n site_url = get_site_url(site_url=site_url, request=request)\n path = reverse('oidc_provider:provider-info') \\\n .split('/.well-known/openid-configuration')[0]\n issuer = site_url + path\n\n return str(issuer)",
"def issuer(self) -> pulumi.Input[s... | [
"0.65245676",
"0.63269836",
"0.6324487",
"0.6253469",
"0.622221",
"0.6090627",
"0.6013243",
"0.6013243",
"0.5931665",
"0.5924787",
"0.5924787",
"0.5881941",
"0.57303685",
"0.5617755",
"0.5611355",
"0.5607141",
"0.5514149",
"0.55072874",
"0.55072874",
"0.5472506",
"0.54214424"... | 0.65068674 | 1 |
Internal function to obtain the value of api_server_authorized_ip_ranges. This function supports the option of enable_validation. When enabled and api_server_authorized_ip_ranges is assigned, if load_balancer_sku equals to CONST_LOAD_BALANCER_SKU_BASIC, raise an InvalidArgumentValueError; if enable_private_cluster is s... | def _get_api_server_authorized_ip_ranges(self, enable_validation: bool = False) -> List[str]:
# read the original value passed by the command
api_server_authorized_ip_ranges = self.raw_param.get(
"api_server_authorized_ip_ranges"
)
# In create mode, try to read the property v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_api_server_authorized_ip_ranges(self) -> List[str]:\n return self._get_api_server_authorized_ip_ranges(enable_validation=True)",
"def ip_restriction_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:\n return pulumi.get(self, \"ip_restriction_ranges\")",
"def ip_restrict... | [
"0.7542131",
"0.5821552",
"0.5821552",
"0.56855893",
"0.5232934",
"0.52173173",
"0.5196799",
"0.51422167",
"0.48846304",
"0.48798198",
"0.48254544",
"0.48254544",
"0.482115",
"0.482115",
"0.47881377",
"0.47881377",
"0.47349286",
"0.47145483",
"0.47145483",
"0.46709123",
"0.46... | 0.82306814 | 0 |
Obtain the value of api_server_authorized_ip_ranges. This function will verify the parameter by default. When api_server_authorized_ip_ranges is assigned, if load_balancer_sku equals to CONST_LOAD_BALANCER_SKU_BASIC, raise an InvalidArgumentValueError; if enable_private_cluster is specified, raise a MutuallyExclusiveAr... | def get_api_server_authorized_ip_ranges(self) -> List[str]:
return self._get_api_server_authorized_ip_ranges(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_api_server_authorized_ip_ranges(self, enable_validation: bool = False) -> List[str]:\n # read the original value passed by the command\n api_server_authorized_ip_ranges = self.raw_param.get(\n \"api_server_authorized_ip_ranges\"\n )\n # In create mode, try to read th... | [
"0.7935169",
"0.6113486",
"0.6113486",
"0.587707",
"0.5417876",
"0.53341776",
"0.5203601",
"0.51950943",
"0.5046463",
"0.5046463",
"0.5023906",
"0.5023906",
"0.49490625",
"0.49310514",
"0.49310514",
"0.49257842",
"0.4922158",
"0.4902358",
"0.4902358",
"0.4902358",
"0.4902358"... | 0.75258255 | 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 |
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 |
Obtain the value of auto_upgrade_channel. | def get_auto_upgrade_channel(self) -> Union[str, None]:
# read the original value passed by the command
auto_upgrade_channel = self.raw_param.get("auto_upgrade_channel")
# In create mode, try to read the property value corresponding to the parameter from the `mc` object.
if self.decorat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_node_os_upgrade_channel(self) -> Union[str, None]:\n # read the original value passed by the command\n node_os_upgrade_channel = self.raw_param.get(\"node_os_upgrade_channel\")\n\n # In create mode, try to read the property value corresponding to the parameter from the `mc` object.\n ... | [
"0.688825",
"0.6461174",
"0.6453039",
"0.6329458",
"0.6140781",
"0.6122925",
"0.61024535",
"0.6018387",
"0.6018387",
"0.6017211",
"0.5868172",
"0.5856217",
"0.5856217",
"0.5818157",
"0.580839",
"0.5806894",
"0.5792811",
"0.5768657",
"0.57073724",
"0.5682329",
"0.5669417",
"... | 0.84555644 | 0 |
Obtain the value of node_os_upgrade_channel. | def get_node_os_upgrade_channel(self) -> Union[str, None]:
# read the original value passed by the command
node_os_upgrade_channel = self.raw_param.get("node_os_upgrade_channel")
# In create mode, try to read the property value corresponding to the parameter from the `mc` object.
if sel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def node_os_upgrade_channel(self) -> Optional[pulumi.Input[Union[str, 'NodeOSUpgradeChannel']]]:\n return pulumi.get(self, \"node_os_upgrade_channel\")",
"def get_auto_upgrade_channel(self) -> Union[str, None]:\n # read the original value passed by the command\n auto_upgrade_channel = self.r... | [
"0.8642618",
"0.63479733",
"0.62878424",
"0.58216625",
"0.5809324",
"0.5703972",
"0.562988",
"0.55964065",
"0.55964065",
"0.55745214",
"0.5563502",
"0.55537474",
"0.5538198",
"0.5514246",
"0.5492737",
"0.5472307",
"0.5423846",
"0.54227334",
"0.54113847",
"0.54097146",
"0.5408... | 0.8533561 | 1 |
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 |
Internal function to obtain the value of 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_uptime_sla(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
uptime_sla = self.raw_param.get("uptime_sla")
# 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_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.7634512",
"0.75158966",
"0.7042676",
"0.62684596",
"0.5948829",
"0.5751837",
"0.52412045",
"0.5213901",
"0.51574725",
"0.5092262",
"0.50296575",
"0.50029796",
"0.48817343",
"0.48570055",
"0.48570055",
"0.48310626",
"0.47158235",
"0.47127527",
"0.46947002",
"0.45990846",
"0... | 0.8182158 | 0 |
Obtain the value of 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_uptime_sla(self) -> bool:
return self._get_uptime_sla(enable_validation=True) | {
"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.74289864",
"0.69876975",
"0.6777916",
"0.61514986",
"0.5652997",
"0.543387",
"0.53902847",
"0.53262246",
"0.5145305",
"0.50713694",
"0.49722818",
"0.4916233",
"0.4916233",
"0.4882329",
"0.48400158",
"0.47377115",
"0.47320175",
"0.4703579",
"0.46839577",
"0.45622054",
"0.45... | 0.70419204 | 1 |
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 |
Obtrain the value of security_profile.workload_identity. | def get_workload_identity_profile(self) -> Optional[ManagedClusterSecurityProfileWorkloadIdentity]:
enable_workload_identity = self.raw_param.get("enable_workload_identity")
disable_workload_identity = self.raw_param.get("disable_workload_identity")
if not enable_workload_identity and not disab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def workload_identity_config(self) -> 'outputs.WorkloadIdentityConfigResponse':\n return pulumi.get(self, \"workload_identity_config\")",
"def update_workload_identity_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n profile = self.context.get_workload_identity_... | [
"0.62740755",
"0.605139",
"0.5849712",
"0.570365",
"0.5641405",
"0.5558352",
"0.55401254",
"0.5493774",
"0.5462958",
"0.5447744",
"0.54101735",
"0.54101735",
"0.5409731",
"0.5387263",
"0.538292",
"0.538256",
"0.5319407",
"0.52698314",
"0.52689546",
"0.52607995",
"0.5252489",
... | 0.6242888 | 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_id according to the context. This function supports the option of enable_validation. When enabled, it will check if azure_keyvault_kms_key_id is assigned but enable_azure_keyvault_kms is not specified, if so, raise a RequiredArgumentMissingError. | def _get_azure_keyvault_kms_key_id(self, enable_validation: bool = False) -> Union[str, None]:
# read the original value passed by the command
azure_keyvault_kms_key_id = self.raw_param.get("azure_keyvault_kms_key_id")
# In create mode, try to read the property value corresponding to the paramet... | {
"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.8035186",
"0.7755667",
"0.7274891",
"0.71652645",
"0.7083081",
"0.7083081",
"0.7083081",
"0.7083081",
"0.7083081",
"0.6752617",
"0.6752617",
"0.6752617",
"0.6752617",
"0.67357314",
"0.6724248",
"0.6512293",
"0.6396283",
"0.6127973",
"0.60960966",
"0.60960966",
"0.5990903",... | 0.8133982 | 0 |
Obtain the value of azure_keyvault_kms_key_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_id(self) -> Union[str, None]:
return self._get_azure_keyvault_kms_key_id(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_azure_keyvault_kms_key_id(self, enable_validation: bool = False) -> Union[str, None]:\n # read the original value passed by the command\n azure_keyvault_kms_key_id = self.raw_param.get(\"azure_keyvault_kms_key_id\")\n # In create mode, try to read the property value corresponding to t... | [
"0.7883245",
"0.760735",
"0.7480772",
"0.7480772",
"0.7480772",
"0.7480772",
"0.7480772",
"0.72904885",
"0.7201276",
"0.7196712",
"0.7196712",
"0.7196712",
"0.7196712",
"0.71021575",
"0.6788242",
"0.6617094",
"0.6471448",
"0.6467398",
"0.6467398",
"0.64150727",
"0.61179286",
... | 0.8507348 | 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 enable_image_cleaner. | def get_enable_image_cleaner(self) -> bool:
# read the original value passed by the command
enable_image_cleaner = self.raw_param.get("enable_image_cleaner")
return enable_image_cleaner | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disable_image_cleaner(self) -> bool:\n # read the original value passed by the command\n disable_image_cleaner = self.raw_param.get(\"disable_image_cleaner\")\n\n return disable_image_cleaner",
"def image_cleaner(self) -> Optional[pulumi.Input['ManagedClusterSecurityProfileImageClean... | [
"0.78300375",
"0.64472526",
"0.64299774",
"0.57302696",
"0.57035935",
"0.57035935",
"0.56785804",
"0.56129044",
"0.56032115",
"0.56032115",
"0.55326384",
"0.5499077",
"0.5464563",
"0.5464563",
"0.5464563",
"0.5446938",
"0.53682077",
"0.5365889",
"0.536319",
"0.531022",
"0.526... | 0.86370957 | 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 |
Internal function to obtain the value of image_cleaner_interval_hours according to the context. 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 mo... | def _get_image_cleaner_interval_hours(self, enable_validation: bool = False) -> Union[int, None]:
# read the original value passed by the command
image_cleaner_interval_hours = self.raw_param.get("image_cleaner_interval_hours")
if image_cleaner_interval_hours is not None and enable_validation:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_image_cleaner_interval_hours(self) -> Union[int, None]:\n interval_hours = self._get_image_cleaner_interval_hours(enable_validation=True)\n\n return interval_hours",
"def interval_hours(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"interval_hours\")",
"def _get_... | [
"0.726154",
"0.5483563",
"0.5197644",
"0.4756117",
"0.4756117",
"0.47084537",
"0.46393278",
"0.461682",
"0.4610549",
"0.45896512",
"0.4585674",
"0.45222318",
"0.4466215",
"0.44487044",
"0.44323266",
"0.43388313",
"0.43060374",
"0.4304359",
"0.4304359",
"0.43006548",
"0.428966... | 0.82882524 | 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 |
Internal function to obtain the value of disable_local_accounts. This function supports the option of enable_validation. When enabled, if both disable_local_accounts and enable_local_accounts are specified, raise a MutuallyExclusiveArgumentError. | def _get_disable_local_accounts(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
disable_local_accounts = self.raw_param.get("disable_local_accounts")
# 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_disable_local_accounts(self) -> bool:\n return self._get_disable_local_accounts(enable_validation=True)",
"def _get_enable_local_accounts(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_local_accounts = self.raw_param.get(\"e... | [
"0.77167434",
"0.7426409",
"0.6747398",
"0.5680291",
"0.55121034",
"0.53872377",
"0.53872377",
"0.5313054",
"0.5301749",
"0.5090997",
"0.49682793",
"0.49644387",
"0.49005213",
"0.48900622",
"0.48318323",
"0.48066765",
"0.47940862",
"0.4774987",
"0.4757329",
"0.47473967",
"0.4... | 0.79701704 | 0 |
Obtain the value of disable_local_accounts. This function will verify the parameter by default. If both disable_local_accounts and enable_local_accounts are specified, raise a MutuallyExclusiveArgumentError. | def get_disable_local_accounts(self) -> bool:
return self._get_disable_local_accounts(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_local_accounts(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n disable_local_accounts = self.raw_param.get(\"disable_local_accounts\")\n # In create mode, try to read the property value corresponding to the parameter from the... | [
"0.73620117",
"0.68049955",
"0.63477147",
"0.6073702",
"0.5605923",
"0.5286805",
"0.5286805",
"0.49868652",
"0.49330407",
"0.49057615",
"0.48828936",
"0.48072118",
"0.4791799",
"0.47421855",
"0.47058442",
"0.47026172",
"0.46814647",
"0.46814647",
"0.4664932",
"0.4658396",
"0.... | 0.73595357 | 1 |
Internal function to obtain the value of enable_local_accounts. This function supports the option of enable_validation. When enabled, if both disable_local_accounts and enable_local_accounts are specified, raise a MutuallyExclusiveArgumentError. | def _get_enable_local_accounts(self, enable_validation: bool = False) -> bool:
# read the original value passed by the command
enable_local_accounts = self.raw_param.get("enable_local_accounts")
# We do not support this option in create mode, therefore we do not read the value from `mc`.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_local_accounts(self) -> bool:\n return self._get_enable_local_accounts(enable_validation=True)",
"def _get_disable_local_accounts(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n disable_local_accounts = self.raw_param.get(\"d... | [
"0.7967363",
"0.7377623",
"0.69613194",
"0.5882319",
"0.5882319",
"0.55359197",
"0.50795525",
"0.50721943",
"0.50104254",
"0.49848408",
"0.49707156",
"0.4950705",
"0.49430954",
"0.4935933",
"0.48648858",
"0.48603642",
"0.48512933",
"0.4843382",
"0.47834286",
"0.47719738",
"0.... | 0.8371677 | 0 |
Obtain the value of enable_local_accounts. This function will verify the parameter by default. If both disable_local_accounts and enable_local_accounts are specified, raise a MutuallyExclusiveArgumentError. | def get_enable_local_accounts(self) -> bool:
return self._get_enable_local_accounts(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_local_accounts(self, enable_validation: bool = False) -> bool:\n # read the original value passed by the command\n enable_local_accounts = self.raw_param.get(\"enable_local_accounts\")\n # We do not support this option in create mode, therefore we do not read the value from `mc... | [
"0.7800681",
"0.68738663",
"0.66413534",
"0.58256054",
"0.58256054",
"0.53478265",
"0.51718485",
"0.5111496",
"0.5099796",
"0.50895524",
"0.5055837",
"0.49793184",
"0.49793184",
"0.49171257",
"0.49131063",
"0.49112523",
"0.48869362",
"0.48588797",
"0.48569807",
"0.4801206",
"... | 0.75553787 | 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 yes. | def get_yes(self) -> bool:
# read the original value passed by the command
yes = self.raw_param.get("yes")
# this parameter does not need dynamic completion
# this parameter does not need validation
return yes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_yesno(yesno):\n return 'yes' if yesno == 1 else 'no'",
"def yes_no(value):\n return 'Yes' if value else 'No'",
"def get_true_label(self):\n return gettext_lazy('Yes')",
"def yes():\n return 42",
"def FormatYesNo(value):\n if value:\n return u'Yes'\n else:\n retur... | [
"0.7595006",
"0.73543674",
"0.69613844",
"0.6554595",
"0.65278745",
"0.6472238",
"0.64244026",
"0.63200736",
"0.63195074",
"0.6311225",
"0.6268461",
"0.6237792",
"0.62029797",
"0.61638033",
"0.6139254",
"0.61049825",
"0.6083327",
"0.60366327",
"0.59937483",
"0.5984798",
"0.59... | 0.7755369 | 0 |
Obtain the value of no_wait. | def get_no_wait(self) -> bool:
# read the original value passed by the command
no_wait = self.raw_param.get("no_wait")
# this parameter does not need dynamic completion
# this parameter does not need validation
return no_wait | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def use_wait(self):\n return self._use_wait",
"def without_wait(self):\n return self.temp_implicit_wait(0)",
"def waiting(self):\r\n\r\n return self._serial_object.in_waiting",
"def in_waiting(self) -> int:\n pass",
"def get_wait_interval(self):\n if self.__wait_interval ... | [
"0.7156849",
"0.6991981",
"0.6833134",
"0.6823876",
"0.6765542",
"0.670299",
"0.6637748",
"0.6601906",
"0.64373183",
"0.6365591",
"0.63107866",
"0.6122008",
"0.6099238",
"0.60484004",
"0.60445",
"0.5986093",
"0.59698874",
"0.59619457",
"0.59370404",
"0.59348446",
"0.59099454"... | 0.7822416 | 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 |
Internal function to obtain the value of enable_azure_monitor_metrics. This function supports the option of enable_validation. When enabled, if both enable_azure_monitor_metrics and disable_azure_monitor_metrics are specified, raise a MutuallyExclusiveArgumentError. | def _get_enable_azure_monitor_metrics(self, enable_validation: bool = False) -> bool:
# print("_get_enable_azure_monitor_metrics being called...")
# Read the original value passed by the command.
enable_azure_monitor_metrics = self.raw_param.get("enable_azure_monitor_metrics")
# In creat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_azure_monitor_metrics(self) -> bool:\n return self._get_enable_azure_monitor_metrics(enable_validation=True)",
"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_met... | [
"0.8238916",
"0.7738268",
"0.717836",
"0.6340326",
"0.5968446",
"0.5722063",
"0.56952804",
"0.54928786",
"0.54144573",
"0.53802025",
"0.51305",
"0.5078599",
"0.50758815",
"0.50726694",
"0.5052517",
"0.50318605",
"0.49389604",
"0.49225906",
"0.48546645",
"0.47836807",
"0.47595... | 0.83972526 | 0 |
Obtain the value of enable_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_enable_azure_monitor_metrics(self) -> bool:
return self._get_enable_azure_monitor_metrics(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_azure_monitor_metrics(self, enable_validation: bool = False) -> bool:\n # print(\"_get_enable_azure_monitor_metrics being called...\")\n # Read the original value passed by the command.\n enable_azure_monitor_metrics = self.raw_param.get(\"enable_azure_monitor_metrics\")\n ... | [
"0.790125",
"0.7339571",
"0.69628656",
"0.635709",
"0.62218314",
"0.6000682",
"0.5941108",
"0.5700332",
"0.55286473",
"0.5404794",
"0.52493113",
"0.52274776",
"0.5035879",
"0.49633867",
"0.49273914",
"0.49129024",
"0.48781028",
"0.48602444",
"0.48120794",
"0.47494087",
"0.471... | 0.79375404 | 0 |
Internal function to obtain the value of disable_azure_monito4790r_metrics. This function supports the option of enable_validation. When enabled, if both enable_azure_monitor_metrics and disable_azure_monitor_metrics are specified, raise a MutuallyExclusiveArgumentError. | def _get_disable_azure_monitor_metrics(self, enable_validation: bool = False) -> bool:
# Read the original value passed by the command.
disable_azure_monitor_metrics = self.raw_param.get("disable_azure_monitor_metrics")
if enable_validation:
if disable_azure_monitor_metrics and self.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disable_azure_monitor_metrics(self) -> bool:\n return self._get_disable_azure_monitor_metrics(enable_validation=True)",
"def _get_enable_azure_monitor_metrics(self, enable_validation: bool = False) -> bool:\n # print(\"_get_enable_azure_monitor_metrics being called...\")\n # Read the... | [
"0.7984803",
"0.7354894",
"0.6909307",
"0.60220355",
"0.5470069",
"0.537097",
"0.5335809",
"0.518136",
"0.51458687",
"0.51458687",
"0.51217747",
"0.5094669",
"0.50196916",
"0.49436748",
"0.48676354",
"0.4855921",
"0.48537356",
"0.48469588",
"0.4825778",
"0.48213297",
"0.48082... | 0.84928405 | 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 |
Internal function to obtain the value of enable_vpa. This function supports the option of enable_vpa. When enabled, if both enable_vpa and enable_vpa are specified, raise a MutuallyExclusiveArgumentError. | def _get_enable_vpa(self, enable_validation: bool = False) -> bool:
# Read the original value passed by the command.
enable_vpa = self.raw_param.get("enable_vpa")
# This parameter does not need dynamic completion.
if enable_validation:
if enable_vpa and self._get_disable_vpa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_enable_vpa(self) -> bool:\n return self._get_enable_vpa(enable_validation=True)",
"def _get_disable_vpa(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_vpa = self.raw_param.get(\"disable_vpa\")\n\n # This option is n... | [
"0.73029125",
"0.6294358",
"0.5980345",
"0.5336978",
"0.51994693",
"0.5186803",
"0.51565516",
"0.51280904",
"0.5112426",
"0.5112426",
"0.51009345",
"0.5018582",
"0.48973894",
"0.48652136",
"0.48579717",
"0.47804254",
"0.4776779",
"0.473059",
"0.47173935",
"0.47173935",
"0.469... | 0.77779144 | 0 |
Obtain the value of enable_vpa. This function will verify the parameter by default. If both enable_vpa and disable_vpa are specified, raise a MutuallyExclusiveArgumentError. | def get_enable_vpa(self) -> bool:
return self._get_enable_vpa(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_enable_vpa(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n enable_vpa = self.raw_param.get(\"enable_vpa\")\n\n # This parameter does not need dynamic completion.\n if enable_validation:\n if enable_vpa and self._ge... | [
"0.79042524",
"0.6407985",
"0.623143",
"0.5629401",
"0.5554361",
"0.53172845",
"0.53172845",
"0.52127695",
"0.51608187",
"0.51522225",
"0.50933486",
"0.50870234",
"0.5068763",
"0.50202054",
"0.4997311",
"0.49932244",
"0.49932244",
"0.49816576",
"0.49638802",
"0.49157894",
"0.... | 0.7416848 | 1 |
Internal function to obtain the value of disable_vpa. This function supports the option of enable_vpa. When enabled, if both enable_vpa and disable_vpa are specified, raise a MutuallyExclusiveArgumentError. | def _get_disable_vpa(self, enable_validation: bool = False) -> bool:
# Read the original value passed by the command.
disable_vpa = self.raw_param.get("disable_vpa")
# This option is not supported in create mode, hence we do not read the property value from the `mc` object.
# This param... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_disable_vpa(self) -> bool:\n return self._get_disable_vpa(enable_validation=True)",
"def _get_enable_vpa(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n enable_vpa = self.raw_param.get(\"enable_vpa\")\n\n # This parameter do... | [
"0.7526797",
"0.67206216",
"0.6151771",
"0.5397961",
"0.5267325",
"0.5232904",
"0.5209717",
"0.50714594",
"0.5049438",
"0.4989312",
"0.49793023",
"0.49707216",
"0.49491966",
"0.49215418",
"0.49093828",
"0.49093828",
"0.49093828",
"0.49093828",
"0.49093828",
"0.49093828",
"0.4... | 0.76755476 | 0 |
Obtain the value of disable_vpa. This function will verify the parameter by default. If both enable_vpa and disable_vpa are specified, raise a MutuallyExclusiveArgumentError. | def get_disable_vpa(self) -> bool:
return self._get_disable_vpa(enable_validation=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_disable_vpa(self, enable_validation: bool = False) -> bool:\n # Read the original value passed by the command.\n disable_vpa = self.raw_param.get(\"disable_vpa\")\n\n # This option is not supported in create mode, hence we do not read the property value from the `mc` object.\n ... | [
"0.76178414",
"0.6629294",
"0.6169109",
"0.56206536",
"0.53456295",
"0.5329696",
"0.5288041",
"0.52686983",
"0.5215274",
"0.5189037",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0.51416457",
"0... | 0.76495814 | 0 |
Initialize an AKSManagedClusterModels object to store the models. | def init_models(self) -> None:
self.models = AKSManagedClusterModels(self.cmd, self.resource_type) | {
"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.6589613",
"0.6397897",
"0.6296286",
"0.60146695",
"0.5976117",
"0.59535027",
"0.5843019",
"0.5837605",
"0.582323",
"0.5809182",
"0.5631231",
"0.55995786",
"0.54818463",
"0.5473843",
"0.5443327",
"0.54403687",
"0.5425224",
"0.54122424",
"0.54051256",
"0.53920186",
"0.537389... | 0.8961721 | 1 |
Initialize an AKSManagedClusterContext object to store the context in the process of assemble the ManagedCluster object. | def init_context(self) -> None:
self.context = AKSManagedClusterContext(
self.cmd, AKSManagedClusterParamDict(self.__raw_parameters), self.models, DecoratorMode.CREATE
) | {
"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.UPDATE\n )",
"def init_mc(self) -> ManagedCluster:\n # Initialize a ManagedCluster object with mandatory parameter l... | [
"0.86209565",
"0.7163226",
"0.59387547",
"0.574751",
"0.574751",
"0.5691005",
"0.5685113",
"0.56841797",
"0.5603969",
"0.56033856",
"0.5589094",
"0.5571015",
"0.5521112",
"0.55165637",
"0.54716396",
"0.5433444",
"0.54196686",
"0.53880006",
"0.5350436",
"0.5328897",
"0.5313922... | 0.88288087 | 0 |
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 |
Internal function to ensure that the incoming `mc` object is valid and the same as the attached `mc` object in the context. If the incoming `mc` is not valid or is inconsistent with the `mc` in the context, raise a CLIInternalError. | def _ensure_mc(self, mc: ManagedCluster) -> None:
if not isinstance(mc, self.models.ManagedCluster):
raise CLIInternalError(
"Unexpected mc object with type '{}'.".format(type(mc))
)
if self.context.mc != mc:
raise CLIInternalError(
"I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ensure_mc(self, mc: ManagedCluster) -> None:\n if not isinstance(mc, self.models.ManagedCluster):\n raise CLIInternalError(\n \"Unexpected mc object with type '{}'.\".format(type(mc))\n )\n\n if self.context.mc != mc:\n raise CLIInternalError(\n ... | [
"0.81749976",
"0.5647707",
"0.56371593",
"0.55002123",
"0.54420483",
"0.5433715",
"0.5359705",
"0.5335244",
"0.53288126",
"0.52408636",
"0.5144248",
"0.51110643",
"0.50822395",
"0.5073359",
"0.50691086",
"0.5036688",
"0.5030415",
"0.5009998",
"0.4985637",
"0.49596673",
"0.495... | 0.8147944 | 1 |
Internal function to remove values from properties with default values of the `mc` object. Removing default values is to prevent getters from mistakenly overwriting user provided values with default values in the object. | def _remove_defaults_in_mc(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
defaults_in_mc = {}
for attr_name, attr_value in vars(mc).items():
if not attr_name.startswith("_") and attr_name != "location" and attr_value is not None:
defaults_in_mc[attr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _restore_defaults_in_mc(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n defaults_in_mc = self.context.get_intermediate(\"defaults_in_mc\", {})\n for key, value in defaults_in_mc.items():\n if getattr(mc, key, None) is None:\n setattr(mc, key... | [
"0.7228884",
"0.62118024",
"0.60667944",
"0.59519476",
"0.59519476",
"0.59519476",
"0.59519476",
"0.593715",
"0.5935497",
"0.58267266",
"0.57364047",
"0.5644226",
"0.5575987",
"0.5544202",
"0.5519863",
"0.54486924",
"0.5379877",
"0.5367821",
"0.5337668",
"0.5328512",
"0.53142... | 0.7828077 | 0 |
Internal function to restore values of properties with default values of the `mc` object. Restoring default values is to keep the content of the request sent by cli consistent with that before the refactoring. | def _restore_defaults_in_mc(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
defaults_in_mc = self.context.get_intermediate("defaults_in_mc", {})
for key, value in defaults_in_mc.items():
if getattr(mc, key, None) is None:
setattr(mc, key, value)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _remove_defaults_in_mc(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n defaults_in_mc = {}\n for attr_name, attr_value in vars(mc).items():\n if not attr_name.startswith(\"_\") and attr_name != \"location\" and attr_value is not None:\n defa... | [
"0.7495318",
"0.6138172",
"0.61050063",
"0.5904817",
"0.5877884",
"0.5859226",
"0.57198095",
"0.5714379",
"0.5701805",
"0.56643885",
"0.5645971",
"0.561034",
"0.55641854",
"0.55595696",
"0.5553334",
"0.5547332",
"0.54817367",
"0.54687357",
"0.54515094",
"0.54214203",
"0.54199... | 0.8117553 | 0 |
Set up workload identity for the ManagedCluster object. | def set_up_workload_identity_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
profile = self.context.get_workload_identity_profile()
if profile:
if mc.security_profile is None:
mc.security_profile = self.models.ManagedClusterSecurityProfile()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_identity(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n identity = None\n enable_managed_identity = self.context.get_enable_managed_identity()\n assign_identity = self.context.get_assign_identity()\n if enable_managed_identity and not assign_ide... | [
"0.73566943",
"0.6731893",
"0.6467353",
"0.6235378",
"0.6209788",
"0.6128425",
"0.6125866",
"0.6050127",
"0.60129184",
"0.59719753",
"0.59417176",
"0.586823",
"0.5857042",
"0.5821172",
"0.58132416",
"0.58081144",
"0.58081144",
"0.58081144",
"0.58081144",
"0.58081144",
"0.5803... | 0.7027566 | 1 |
Set up defender for the ManagedCluster object. | def set_up_defender(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
defender = self.context.get_defender_config()
if defender:
if mc.security_profile is None:
mc.security_profile = self.models.ManagedClusterSecurityProfile()
mc.security_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _setup_cluster(self):\n raise NotImplementedError('Must be implemented in subclasses.')",
"def _init_cluster(self):\n self._Init_Cluster()",
"def setup(self, cluster):\n raise NotImplementedError()",
"def update_defender(self, mc: ManagedCluster) -> ManagedCluster:\n self._ens... | [
"0.7117964",
"0.68030673",
"0.67904675",
"0.6473577",
"0.5880189",
"0.5775968",
"0.57351506",
"0.56671786",
"0.5637245",
"0.558833",
"0.558518",
"0.5569469",
"0.5568013",
"0.55627376",
"0.5512863",
"0.5458912",
"0.54545265",
"0.54545265",
"0.54545265",
"0.54545265",
"0.545452... | 0.7269124 | 0 |
Set up security profile azureKeyVaultKms for the ManagedCluster object. | def set_up_azure_keyvault_kms(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
if self.context.get_enable_azure_keyvault_kms():
key_id = self.context.get_azure_keyvault_kms_key_id()
if key_id:
if mc.security_profile is None:
mc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_azure_keyvault_kms(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n if self.context.get_enable_azure_keyvault_kms():\n # get kms profile\n if mc.security_profile is None:\n mc.security_profile = self.models.ManagedClusterSecurityPr... | [
"0.684668",
"0.6262043",
"0.6224593",
"0.60979015",
"0.6094301",
"0.60041255",
"0.5984395",
"0.58267736",
"0.58015066",
"0.5781133",
"0.57473487",
"0.5659234",
"0.5590217",
"0.5551254",
"0.5548283",
"0.55233985",
"0.5446793",
"0.54279065",
"0.5362975",
"0.53458256",
"0.534468... | 0.73773223 | 0 |
Set up security profile imageCleaner for the ManagedCluster object. | def set_up_image_cleaner(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
interval_hours = self.context.get_image_cleaner_interval_hours()
if self.context.get_enable_image_cleaner():
if mc.security_profile is None:
mc.security_profile = self.models.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def image_cleaner(self) -> Optional[pulumi.Input['ManagedClusterSecurityProfileImageCleanerArgs']]:\n return pulumi.get(self, \"image_cleaner\")",
"def update_image_cleaner(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n enable_image_cleaner = self.context.get_enable_i... | [
"0.65351844",
"0.61289287",
"0.56484485",
"0.55316305",
"0.54658574",
"0.54427916",
"0.541905",
"0.5363776",
"0.53092116",
"0.5213937",
"0.51918244",
"0.5083605",
"0.5020677",
"0.50185263",
"0.50151366",
"0.5010931",
"0.49966836",
"0.4992962",
"0.49409655",
"0.4933545",
"0.49... | 0.7256972 | 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 |
Set up agent pool profiles for the ManagedCluster object. | def set_up_agentpool_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
agentpool_profile = self.agentpool_decorator.construct_agentpool_profile_default()
mc.agent_pool_profiles = [agentpool_profile]
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_agentpool_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n if not mc.agent_pool_profiles:\n raise UnknownError(\n \"Encounter an unexpected error while getting agent pool profiles from the cluster in the process of \"\n ... | [
"0.68964916",
"0.623225",
"0.61137617",
"0.6027939",
"0.5951705",
"0.5654076",
"0.5604536",
"0.558943",
"0.55480516",
"0.5527803",
"0.5504661",
"0.5481321",
"0.5448895",
"0.5437535",
"0.5410266",
"0.54090106",
"0.5387696",
"0.5380675",
"0.5363984",
"0.5334656",
"0.5273233",
... | 0.8038031 | 0 |
Set up linux profile for the ManagedCluster object. Linux profile is just used for SSH access to VMs, so it will be omitted if nosshkey option was specified. | def set_up_linux_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
ssh_key_value, no_ssh_key = self.context.get_ssh_key_value_and_no_ssh_key()
if not no_ssh_key:
ssh_config = self.models.ContainerServiceSshConfiguration(
public_keys=[
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _create_profile(self, user, profile_dir):\n log.info(\"Writing IPython cluster config files\")\n self._master.ssh.switch_user(user)\n self._master.ssh.execute(\"rm -rf '%s'\" % profile_dir)\n self._master.ssh.execute('ipython profile create')\n self._master.ssh.switch_user('r... | [
"0.62363255",
"0.6220269",
"0.61439127",
"0.61205643",
"0.5916658",
"0.5797818",
"0.56942713",
"0.56748235",
"0.56748235",
"0.56748235",
"0.56102353",
"0.55184644",
"0.54977053",
"0.5481114",
"0.5433131",
"0.53659445",
"0.53630275",
"0.53625053",
"0.5337664",
"0.5270806",
"0.... | 0.79224235 | 0 |
Set up windows profile for the ManagedCluster object. | def set_up_windows_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
(
windows_admin_username,
windows_admin_password,
) = self.context.get_windows_admin_username_and_password()
if windows_admin_username or windows_admin_password:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_windows_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n enable_ahub = self.context.get_enable_ahub()\n disable_ahub = self.context.get_disable_ahub()\n windows_admin_password = self.context.get_windows_admin_password()\n enable_windows_gm... | [
"0.6979086",
"0.6280604",
"0.6267762",
"0.6178858",
"0.61730295",
"0.6154727",
"0.61317194",
"0.60522014",
"0.60316163",
"0.6003752",
"0.5985599",
"0.5977477",
"0.5950632",
"0.5914547",
"0.5912973",
"0.58548504",
"0.5850194",
"0.5837327",
"0.56662595",
"0.56612355",
"0.564447... | 0.7726559 | 0 |
Set up storage profile for the ManagedCluster object. | def set_up_storage_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
if hasattr(self.models, "ManagedClusterStorageProfile"):
mc.storage_profile = self.context.get_storage_profile()
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_storage_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n mc.storage_profile = self.context.get_storage_profile()\n\n return mc",
"def get_storage_profile(self) -> Optional[ManagedClusterStorageProfile]:\n profile = self.models.ManagedClusterSto... | [
"0.67311984",
"0.6511836",
"0.6211833",
"0.6109925",
"0.6105392",
"0.61043304",
"0.59835756",
"0.58754027",
"0.584989",
"0.58357626",
"0.58349496",
"0.57866263",
"0.5785402",
"0.57767874",
"0.57508737",
"0.57501465",
"0.5721154",
"0.571663",
"0.5573408",
"0.5558437",
"0.55224... | 0.8086798 | 0 |
Set up service principal profile for the ManagedCluster object. | def set_up_service_principal_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
# If customer explicitly provide a service principal, disable managed identity.
(
service_principal,
client_secret,
) = self.context.get_service_principal_and_cl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_identity_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n identity_profile = None\n assign_kubelet_identity = self.context.get_assign_kubelet_identity()\n if assign_kubelet_identity:\n kubelet_identity = self.context.get_identity_by_ms... | [
"0.641662",
"0.6088358",
"0.60750896",
"0.60726583",
"0.6055969",
"0.5859912",
"0.58449894",
"0.58402723",
"0.5783756",
"0.57791173",
"0.57475996",
"0.5655142",
"0.56427664",
"0.56138945",
"0.5590044",
"0.5582241",
"0.5521678",
"0.5517144",
"0.5502496",
"0.547589",
"0.5475428... | 0.7867127 | 0 |
Add role assignment for vent subnet. This function will store an intermediate need_post_creation_vnet_permission_granting. The function "subnet_role_assignment_exists" will be called to verify if the role assignment already exists for the subnet, which internally used AuthorizationManagementClient to send the request. ... | def process_add_role_assignment_for_vnet_subnet(self, mc: ManagedCluster) -> None:
self._ensure_mc(mc)
need_post_creation_vnet_permission_granting = False
vnet_subnet_id = self.context.get_vnet_subnet_id()
skip_subnet_role_assignment = (
self.context.get_skip_subnet_role_ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_to_subnet(self, subnet_properties: 'SubnetAffiliation'):\n self.subnets.append(subnet_properties)",
"def add_role_assignment(self, principal_id, role_def_id):\n payload = {\n \"principalId\": principal_id,\n \"roleDefId\": role_def_id\n }\n qry = Serv... | [
"0.58968174",
"0.56684875",
"0.54659873",
"0.5357661",
"0.53531194",
"0.52769846",
"0.52750623",
"0.52313733",
"0.5145888",
"0.5108683",
"0.50967616",
"0.50832003",
"0.50321233",
"0.4972633",
"0.4927748",
"0.49097985",
"0.4895725",
"0.48817396",
"0.48753685",
"0.48707417",
"0... | 0.7721996 | 0 |
Attach acr for the cluster. The function "ensure_aks_acr" will be called to create an AcrPull role assignment for the acr, which internally used AuthorizationManagementClient to send the request. | def process_attach_acr(self, mc: ManagedCluster) -> None:
self._ensure_mc(mc)
attach_acr = self.context.get_attach_acr()
if attach_acr:
# If enable_managed_identity, attach acr operation will be handled after the cluster is created
if not self.context.get_enable_managed_... | {
"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.6433188",
"0.6370674",
"0.54878527",
"0.54291505",
"0.52820456",
"0.5202835",
"0.5193294",
"0.500782",
"0.49623328",
"0.48086783",
"0.4803038",
"0.4796979",
"0.4772706",
"0.4758174",
"0.47512314",
"0.47360027",
"0.47193372",
"0.46734563",
"0.46539062",
"0.46068117",
"0.460... | 0.75999403 | 0 |
Set up network profile for the ManagedCluster object. Build load balancer profile, verify outbound type and load balancer sku first, then set up network profile. | def set_up_network_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
# build load balancer profile, which is part of the network profile
load_balancer_profile = create_load_balancer_profile(
self.context.get_load_balancer_managed_outbound_ip_count(),
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_agentpool_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n agentpool_profile = self.agentpool_decorator.construct_agentpool_profile_default()\n mc.agent_pool_profiles = [agentpool_profile]\n return mc",
"def update_load_balancer_profile(self, m... | [
"0.65539825",
"0.644222",
"0.6333798",
"0.6008464",
"0.5953734",
"0.5795329",
"0.5719453",
"0.56739706",
"0.5596633",
"0.5560804",
"0.54625916",
"0.5460264",
"0.54562753",
"0.5452003",
"0.54306495",
"0.5420409",
"0.5413936",
"0.5366333",
"0.5355432",
"0.5347067",
"0.5322912",... | 0.7893959 | 0 |
Build http application routing addon profile. | def build_http_application_routing_addon_profile(self) -> ManagedClusterAddonProfile:
http_application_routing_addon_profile = self.models.ManagedClusterAddonProfile(
enabled=True,
)
return http_application_routing_addon_profile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def main(global_config, **settings):\n config = Configurator(settings=settings)\n config.include('pyramid_jinja2')\n config.add_static_view('static', 'static', cache_max_age=3600)\n config.add_route('home', '/')\n config.add_route('total_users', '/totalusers/')\n config.add_route('pageviews_weekl... | [
"0.5541188",
"0.54434127",
"0.5407827",
"0.5357582",
"0.5354456",
"0.5255358",
"0.5254291",
"0.52182907",
"0.52063465",
"0.52063465",
"0.5190546",
"0.5187972",
"0.5185741",
"0.5170575",
"0.5154027",
"0.51375496",
"0.5100657",
"0.5098405",
"0.5089497",
"0.508606",
"0.50694215"... | 0.7615509 | 0 |
Build kube dashboard addon profile. | def build_kube_dashboard_addon_profile(self) -> ManagedClusterAddonProfile:
kube_dashboard_addon_profile = self.models.ManagedClusterAddonProfile(
enabled=True,
)
return kube_dashboard_addon_profile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_monitoring_addon_profile(self) -> ManagedClusterAddonProfile:\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = addon_consts.get(\n \"CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOU... | [
"0.6173478",
"0.59101534",
"0.57118154",
"0.5678737",
"0.56341076",
"0.5540857",
"0.5433262",
"0.5331476",
"0.5045201",
"0.50336075",
"0.5003544",
"0.49909627",
"0.49800846",
"0.48919222",
"0.489096",
"0.47863874",
"0.47496164",
"0.47386613",
"0.47078195",
"0.47052932",
"0.47... | 0.77322066 | 0 |
Build monitoring addon profile. The function "ensure_container_insights_for_monitoring" will be called to create a deployment which publishes the Container Insights solution to the Log Analytics workspace. When workspace_resource_id is not assigned, function "ensure_default_log_analytics_workspace_for_monitoring" will ... | def build_monitoring_addon_profile(self) -> ManagedClusterAddonProfile:
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = addon_consts.get(
"CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(__self__, *,\n log_analytics_workspace_resource_id: Optional[pulumi.Input[str]] = None,\n security_monitoring: Optional[pulumi.Input['ManagedClusterSecurityProfileDefenderSecurityMonitoringArgs']] = None):\n if log_analytics_workspace_resource_id is not None:\n ... | [
"0.55409646",
"0.54714113",
"0.52231014",
"0.51933205",
"0.5021696",
"0.49247602",
"0.49104184",
"0.48900318",
"0.48755407",
"0.4844728",
"0.47236884",
"0.4719509",
"0.47031295",
"0.46765956",
"0.46714252",
"0.46706712",
"0.4647963",
"0.46404302",
"0.46090633",
"0.46052802",
... | 0.7922212 | 0 |
Build azure policy addon profile. | def build_azure_policy_addon_profile(self) -> ManagedClusterAddonProfile:
azure_policy_addon_profile = self.models.ManagedClusterAddonProfile(
enabled=True,
)
return azure_policy_addon_profile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_azure_keyvault_secrets_provider_addon_profile(self) -> ManagedClusterAddonProfile:\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_SECRET_ROTATION_ENABLED = addon_consts.get(\n \"CONST_SECRET_ROTATION_ENABLED\"\n )\n ... | [
"0.6059697",
"0.5347603",
"0.5325548",
"0.5317668",
"0.5233819",
"0.5161958",
"0.5081454",
"0.50593925",
"0.50531244",
"0.49920735",
"0.49714053",
"0.4931227",
"0.48805395",
"0.4869128",
"0.4795005",
"0.47801524",
"0.4750203",
"0.47230995",
"0.47164804",
"0.46924752",
"0.4689... | 0.72828573 | 0 |
Build virtual node addon profile. | def build_virtual_node_addon_profile(self) -> ManagedClusterAddonProfile:
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_VIRTUAL_NODE_SUBNET_NAME = addon_consts.get(
"CONST_VIRTUAL_NODE_SUBNET_NAME"
)
virtual_node_addon_profil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_create_hyperflex_node_profile(self):\n pass",
"def build():\n local('vagrant up')",
"def build_kube_dashboard_addon_profile(self) -> ManagedClusterAddonProfile:\n kube_dashboard_addon_profile = self.models.ManagedClusterAddonProfile(\n enabled=True,\n )\n retu... | [
"0.5537357",
"0.5471171",
"0.5346181",
"0.53029174",
"0.5266011",
"0.5125522",
"0.51132023",
"0.51075375",
"0.5078331",
"0.5072706",
"0.5001462",
"0.49971303",
"0.4989397",
"0.4971027",
"0.49700952",
"0.49628",
"0.49618897",
"0.49294314",
"0.49266487",
"0.49232012",
"0.490157... | 0.7489642 | 0 |
Build ingress appgw addon profile. | def build_ingress_appgw_addon_profile(self) -> ManagedClusterAddonProfile:
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_INGRESS_APPGW_APPLICATION_GATEWAY_NAME = addon_consts.get(
"CONST_INGRESS_APPGW_APPLICATION_GATEWAY_NAME"
)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_http_application_routing_addon_profile(self) -> ManagedClusterAddonProfile:\n http_application_routing_addon_profile = self.models.ManagedClusterAddonProfile(\n enabled=True,\n )\n return http_application_routing_addon_profile",
"def ap_ingress_setup(request, kube_apis, ... | [
"0.5769686",
"0.5719444",
"0.5345494",
"0.52703375",
"0.52675706",
"0.52191067",
"0.52119434",
"0.51829803",
"0.5112864",
"0.50178075",
"0.49915427",
"0.4983803",
"0.49499366",
"0.49204022",
"0.4898014",
"0.4873273",
"0.48566827",
"0.48560503",
"0.48231626",
"0.4800683",
"0.4... | 0.769326 | 0 |
Build confcom addon profile. | def build_confcom_addon_profile(self) -> ManagedClusterAddonProfile:
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_ACC_SGX_QUOTE_HELPER_ENABLED = addon_consts.get(
"CONST_ACC_SGX_QUOTE_HELPER_ENABLED"
)
confcom_addon_profile ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build(config):",
"def build_ingress_appgw_addon_profile(self) -> ManagedClusterAddonProfile:\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_INGRESS_APPGW_APPLICATION_GATEWAY_NAME = addon_consts.get(\n \"CONST_INGRESS_APPGW_APPLICA... | [
"0.5924771",
"0.5739182",
"0.5530944",
"0.5463346",
"0.5451881",
"0.5451111",
"0.54159695",
"0.53637683",
"0.5340271",
"0.52755743",
"0.52713794",
"0.52683216",
"0.5260584",
"0.52466273",
"0.52386177",
"0.5203193",
"0.51614404",
"0.51450604",
"0.51265097",
"0.5125768",
"0.510... | 0.75487787 | 0 |
Build open service mesh addon profile. | def build_open_service_mesh_addon_profile(self) -> ManagedClusterAddonProfile:
open_service_mesh_addon_profile = self.models.ManagedClusterAddonProfile(
enabled=True,
config={},
)
return open_service_mesh_addon_profile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_monitoring_addon_profile(self) -> ManagedClusterAddonProfile:\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOURCE_ID = addon_consts.get(\n \"CONST_MONITORING_LOG_ANALYTICS_WORKSPACE_RESOU... | [
"0.55828464",
"0.55634737",
"0.553137",
"0.54285276",
"0.5344007",
"0.53244305",
"0.5242559",
"0.5213419",
"0.5075018",
"0.5001663",
"0.4955832",
"0.4918175",
"0.49137667",
"0.48647144",
"0.4850656",
"0.4842419",
"0.48205277",
"0.4792604",
"0.4774811",
"0.47699746",
"0.476368... | 0.7474603 | 0 |
Build azure keyvault secrets provider addon profile. | def build_azure_keyvault_secrets_provider_addon_profile(self) -> ManagedClusterAddonProfile:
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_SECRET_ROTATION_ENABLED = addon_consts.get(
"CONST_SECRET_ROTATION_ENABLED"
)
CONST_ROT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_azure_keyvault_secrets_provider_addon_profile(\n self,\n azure_keyvault_secrets_provider_addon_profile: ManagedClusterAddonProfile,\n ) -> ManagedClusterAddonProfile:\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_SECRE... | [
"0.66927165",
"0.5803075",
"0.55274105",
"0.5487209",
"0.54112774",
"0.5196188",
"0.5172922",
"0.51226264",
"0.50758713",
"0.5048268",
"0.50207573",
"0.5005771",
"0.50001293",
"0.4984214",
"0.49833652",
"0.49732512",
"0.49479795",
"0.49469885",
"0.494463",
"0.49424306",
"0.49... | 0.7769838 | 0 |
Set up addon profiles for the ManagedCluster object. | def set_up_addon_profiles(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
# determine the value of constants
addon_consts = self.context.get_addon_consts()
CONST_MONITORING_ADDON_NAME = addon_consts.get(
"CONST_MONITORING_ADDON_NAME"
)
CONST_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_addon_profiles(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n # determine the value of constants\n addon_consts = self.context.get_addon_consts()\n CONST_MONITORING_ADDON_NAME = addon_consts.get(\n \"CONST_MONITORING_ADDON_NAME\"\n )\... | [
"0.6949981",
"0.6322061",
"0.62405413",
"0.61801285",
"0.6064804",
"0.6058824",
"0.60341805",
"0.5989603",
"0.59582436",
"0.5908992",
"0.5867673",
"0.586555",
"0.5855656",
"0.5850161",
"0.58021426",
"0.5801734",
"0.5798716",
"0.57949215",
"0.5763947",
"0.5727007",
"0.5557233"... | 0.79913855 | 0 |
Set up aad profile for the ManagedCluster object. | def set_up_aad_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
aad_profile = None
enable_aad = self.context.get_enable_aad()
if enable_aad:
aad_profile = self.models.ManagedClusterAADProfile(
managed=True,
enable_azure... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_aad_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n if self.context.get_enable_aad():\n mc.aad_profile = self.models.ManagedClusterAADProfile(\n managed=True\n )\n\n aad_tenant_id = self.context.get_aad_tenant_id()\... | [
"0.6600171",
"0.6443159",
"0.6270703",
"0.61711025",
"0.6116605",
"0.6112091",
"0.6047194",
"0.59338206",
"0.5921705",
"0.5798456",
"0.5777517",
"0.5729293",
"0.56682134",
"0.56670004",
"0.56435615",
"0.5611691",
"0.5602653",
"0.55971307",
"0.559009",
"0.5588968",
"0.5571989"... | 0.745452 | 0 |
Set up OIDC issuer profile for the ManagedCluster object. | def set_up_oidc_issuer_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
oidc_issuer_profile = self.context.get_oidc_issuer_profile()
if oidc_issuer_profile is not None:
mc.oidc_issuer_profile = oidc_issuer_profile
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_oidc_issuer_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n oidc_issuer_profile = self.context.get_oidc_issuer_profile()\n if oidc_issuer_profile is not None:\n mc.oidc_issuer_profile = oidc_issuer_profile\n\n return mc",
"def set_up_... | [
"0.68949056",
"0.6509729",
"0.59140515",
"0.58743733",
"0.58665264",
"0.5851112",
"0.5786927",
"0.573488",
"0.56927",
"0.5686523",
"0.56630516",
"0.5605314",
"0.5597112",
"0.5546473",
"0.5518196",
"0.5349327",
"0.53285",
"0.52434665",
"0.5205877",
"0.5151916",
"0.5124305",
... | 0.77052444 | 0 |
Set up workload autoscaler profile for the ManagedCluster object. | def set_up_workload_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
if self.context.get_enable_keda():
if mc.workload_auto_scaler_profile is None:
mc.workload_auto_scaler_profile = self.models.ManagedClusterWorkloadAutoScalerProfile()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()\n mc.auto_scaler_profile = cluster_autoscaler_profile\n return mc",
"def update_workload_auto_scaler_profile... | [
"0.8076214",
"0.7491031",
"0.7352861",
"0.6414039",
"0.63400394",
"0.63381267",
"0.61320627",
"0.6118087",
"0.5994238",
"0.59813344",
"0.5911872",
"0.58884025",
"0.5853951",
"0.58003074",
"0.57358766",
"0.57021785",
"0.56957954",
"0.56529593",
"0.5541374",
"0.55400974",
"0.55... | 0.8073404 | 1 |
Set up api server access profile and fqdn subdomain for the ManagedCluster object. | def set_up_api_server_access_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
api_server_access_profile = None
api_server_authorized_ip_ranges = self.context.get_api_server_authorized_ip_ranges()
enable_private_cluster = self.context.get_enable_private_cluster()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getClusterSetup(self):\n data = {}\n data[\"parameters\"] = self.config.getACSParams()\n \n fqdn = {}\n fqdn[\"master\"] = self.getManagementEndpoint()\n fqdn[\"agent\"] = self.getAgentEndpoint()\n data[\"domains\"] = fqdn\n \n data[\"sshTunnel\"] = \"ssh -o StrictHostKeyChecking=no ... | [
"0.61673355",
"0.60163844",
"0.5881091",
"0.5851677",
"0.58058244",
"0.56197965",
"0.55925536",
"0.5582912",
"0.55598295",
"0.5355748",
"0.5349937",
"0.5317889",
"0.53071874",
"0.52997315",
"0.523633",
"0.52217275",
"0.519796",
"0.5185063",
"0.5169881",
"0.5160663",
"0.515069... | 0.7266883 | 0 |
Set up identity for the ManagedCluster object. | def set_up_identity(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
identity = None
enable_managed_identity = self.context.get_enable_managed_identity()
assign_identity = self.context.get_assign_identity()
if enable_managed_identity and not assign_identity:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_identity_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n identity_profile = None\n assign_kubelet_identity = self.context.get_assign_kubelet_identity()\n if assign_kubelet_identity:\n kubelet_identity = self.context.get_identity_by_ms... | [
"0.6822981",
"0.6586463",
"0.6508832",
"0.6442557",
"0.6370557",
"0.63471365",
"0.62008876",
"0.6183853",
"0.6112192",
"0.6101707",
"0.60074174",
"0.5860911",
"0.5852187",
"0.58498895",
"0.58450174",
"0.582225",
"0.58199245",
"0.5806186",
"0.58036774",
"0.5785821",
"0.5785821... | 0.7684594 | 0 |
Set up identity profile for the ManagedCluster object. The wrapper function "get_identity_by_msi_client" will be called (by "get_user_assigned_identity_object_id") to get the identity object, which internally use ManagedServiceIdentityClient to send the request. The function "ensure_cluster_identity_permission_on_kubel... | def set_up_identity_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
identity_profile = None
assign_kubelet_identity = self.context.get_assign_kubelet_identity()
if assign_kubelet_identity:
kubelet_identity = self.context.get_identity_by_msi_client(as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_identity(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n identity = None\n enable_managed_identity = self.context.get_enable_managed_identity()\n assign_identity = self.context.get_assign_identity()\n if enable_managed_identity and not assign_ide... | [
"0.7484607",
"0.7336667",
"0.73059833",
"0.66794115",
"0.6472135",
"0.6435345",
"0.6120751",
"0.6024512",
"0.59942776",
"0.578405",
"0.56794596",
"0.5597177",
"0.55891573",
"0.557468",
"0.5573997",
"0.5563136",
"0.5559548",
"0.555579",
"0.5504974",
"0.5497664",
"0.5481357",
... | 0.81999916 | 0 |
Set up http proxy config for the ManagedCluster object. | def set_up_http_proxy_config(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
mc.http_proxy_config = self.context.get_http_proxy_config()
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_http_proxy_config(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n mc.http_proxy_config = self.context.get_http_proxy_config()\n return mc",
"def configure_proxy(self, proxy):\n server_name = self.get_external_domain()\n tls_enabled = self.get_t... | [
"0.76446646",
"0.7012492",
"0.66053504",
"0.6243375",
"0.62410647",
"0.60779226",
"0.6032266",
"0.5955333",
"0.5904903",
"0.58497506",
"0.5806297",
"0.57921493",
"0.57888305",
"0.57356006",
"0.57321197",
"0.57272017",
"0.5702292",
"0.5656042",
"0.56415284",
"0.5637943",
"0.55... | 0.832993 | 0 |
Set up auto upgrade profile for the ManagedCluster object. | def set_up_auto_upgrade_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
auto_upgrade_profile = None
auto_upgrade_channel = self.context.get_auto_upgrade_channel()
if auto_upgrade_channel:
auto_upgrade_profile = self.models.ManagedClusterAutoUpgradePr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_auto_upgrade_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n auto_upgrade_channel = self.context.get_auto_upgrade_channel()\n if auto_upgrade_channel is not None:\n if mc.auto_upgrade_profile is None:\n mc.auto_upgrade_profile... | [
"0.71535987",
"0.7031955",
"0.6752698",
"0.66236955",
"0.660928",
"0.6511866",
"0.6442725",
"0.6298713",
"0.62061524",
"0.61767155",
"0.6176586",
"0.6139883",
"0.60911095",
"0.60595167",
"0.60301757",
"0.6019553",
"0.5987066",
"0.5941689",
"0.5941245",
"0.5935146",
"0.5914901... | 0.7911121 | 0 |
Set up autoscaler profile for the ManagedCluster object. | def set_up_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()
mc.auto_scaler_profile = cluster_autoscaler_profile
return mc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_up_workload_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n if self.context.get_enable_keda():\n if mc.workload_auto_scaler_profile is None:\n mc.workload_auto_scaler_profile = self.models.ManagedClusterWorkloadAutoScalerPro... | [
"0.78787524",
"0.7584544",
"0.72677207",
"0.65111727",
"0.6414405",
"0.6131129",
"0.61158025",
"0.6072033",
"0.6016049",
"0.5991844",
"0.59358615",
"0.59160423",
"0.586377",
"0.58514345",
"0.5827458",
"0.57397324",
"0.5728022",
"0.5689652",
"0.5640538",
"0.5614725",
"0.555527... | 0.8339926 | 0 |
Set up sku (uptime sla) for the ManagedCluster object. | def set_up_sku(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
if self.context.get_uptime_sla() or self.context.get_tier() == CONST_MANAGED_CLUSTER_SKU_TIER_STANDARD:
mc.sku = self.models.ManagedClusterSKU(
name="Base",
tier="Standard"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_sku(self, mc: ManagedCluster) -> ManagedCluster:\n self._ensure_mc(mc)\n\n # Premium without LTS is ok (not vice versa)\n if self.context.get_tier() == CONST_MANAGED_CLUSTER_SKU_TIER_PREMIUM:\n mc.sku = self.models.ManagedClusterSKU(\n name=\"Base\",\n ... | [
"0.7255193",
"0.58101535",
"0.5729498",
"0.5397839",
"0.53779453",
"0.536878",
"0.5362834",
"0.5214262",
"0.51544327",
"0.51341075",
"0.5127837",
"0.51266235",
"0.5065135",
"0.5064543",
"0.50521904",
"0.50518507",
"0.49496868",
"0.49312225",
"0.4886215",
"0.48813647",
"0.4879... | 0.8012489 | 0 |
Set up extended location (edge zone) for the ManagedCluster object. | def set_up_extended_location(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)
edge_zone = self.context.get_edge_zone()
if edge_zone:
mc.extended_location = self.models.ExtendedLocation(
name=edge_zone,
type=self.models.ExtendedLocation... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _setup_cluster(self):\n raise NotImplementedError('Must be implemented in subclasses.')",
"def setup(self, cluster):\n raise NotImplementedError()",
"def setup(ctx, cluster_url):\n if ctx.obj[\"debug\"]:\n click.echo(\"Debug mode initiated\")\n set_trace()\n\n logger.debug... | [
"0.6065267",
"0.5671105",
"0.5286908",
"0.52554274",
"0.52526665",
"0.51973003",
"0.5145512",
"0.51148784",
"0.5113001",
"0.5051767",
"0.50499773",
"0.5035992",
"0.5026453",
"0.5003132",
"0.5001538",
"0.49831754",
"0.49831754",
"0.48071092",
"0.48047447",
"0.48047447",
"0.478... | 0.84031403 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.