uid stringlengths 24 24 | split stringclasses 1
value | category stringclasses 2
values | content stringlengths 5 482k | signature stringlengths 1 14k | suffix stringlengths 1 482k | prefix stringlengths 9 14k | prefix_token_count int64 3 5.01k | prefix_token_budget int64 64 256 | element_token_count int64 1 292k | signature_token_count int64 1 5.01k | prefix_context_token_count int64 0 255 | repo stringlengths 7 112 | path stringlengths 4 208 | language stringclasses 1
value | name stringlengths 1 218 | qualname stringlengths 1 218 | start_line int64 1 26.7k | end_line int64 1 26.7k | signature_start_line int64 1 26.7k | signature_end_line int64 1 26.7k | source_hash stringlengths 40 40 | source_dataset stringclasses 1
value | source_split stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2f08a3948366d88fc57c2679 | train | function | def get_network(backbone_name, num_classes, platform="Ascend"):
if backbone_name in ['resnext50']:
return Resnet(backbone_name, num_classes, platform)
return None
| def get_network(backbone_name, num_classes, platform="Ascend"):
| if backbone_name in ['resnext50']:
return Resnet(backbone_name, num_classes, platform)
return None
| ', cell.bn3.gamma.default_input.shape).to_tensor()
elif isinstance(cell, backbones.resnet.BasicBlock):
cell.bn2.gamma.default_input = init.initializer('zeros', cell.bn2.gamma.default_input.shape).to_tensor()
def get_network(backbone_name, num_classes, platform="Ascend"):
| 64 | 64 | 42 | 15 | 49 | Gavin-Hoang/mindspore | model_zoo/official/cv/resnext50/src/image_classification.py | Python | get_network | get_network | 82 | 85 | 82 | 82 | 5d28c09c75912c9fbf0c7eccdc7514f663f07036 | bigcode/the-stack | train |
c5f93e3916c6b471ae097fc6 | train | class | class ImageClassificationNetwork(nn.Cell):
"""
architecture of image classification network.
Args:
Returns:
Tensor, output tensor.
"""
def __init__(self, backbone, head):
super(ImageClassificationNetwork, self).__init__()
self.backbone = backbone
self.head = head... | class ImageClassificationNetwork(nn.Cell):
| """
architecture of image classification network.
Args:
Returns:
Tensor, output tensor.
"""
def __init__(self, backbone, head):
super(ImageClassificationNetwork, self).__init__()
self.backbone = backbone
self.head = head
def construct(self, x):
x = s... | ifiation.
"""
import math
import mindspore.nn as nn
from mindspore.common import initializer as init
import src.backbone as backbones
import src.head as heads
from src.utils.var_init import default_recurisive_init, KaimingNormal
class ImageClassificationNetwork(nn.Cell):
| 64 | 64 | 90 | 7 | 56 | Gavin-Hoang/mindspore | model_zoo/official/cv/resnext50/src/image_classification.py | Python | ImageClassificationNetwork | ImageClassificationNetwork | 26 | 42 | 26 | 26 | 65744292c7b16d2efbbb041035bce73bb4fe6edf | bigcode/the-stack | train |
48a2f5198ac93748f2dee62b | train | class | class Resnet(ImageClassificationNetwork):
"""
Resnet architecture.
Args:
backbone_name (string): backbone.
num_classes (int): number of classes.
Returns:
Resnet.
"""
def __init__(self, backbone_name, num_classes, platform="Ascend"):
self.backbone_name = backbone_n... | class Resnet(ImageClassificationNetwork):
| """
Resnet architecture.
Args:
backbone_name (string): backbone.
num_classes (int): number of classes.
Returns:
Resnet.
"""
def __init__(self, backbone_name, num_classes, platform="Ascend"):
self.backbone_name = backbone_name
backbone = backbones.__dict__[... |
import src.head as heads
from src.utils.var_init import default_recurisive_init, KaimingNormal
class ImageClassificationNetwork(nn.Cell):
"""
architecture of image classification network.
Args:
Returns:
Tensor, output tensor.
"""
def __init__(self, backbone, head):
super(Imag... | 122 | 122 | 408 | 7 | 114 | Gavin-Hoang/mindspore | model_zoo/official/cv/resnext50/src/image_classification.py | Python | Resnet | Resnet | 44 | 78 | 44 | 44 | b8a7ce52101ad8e1ce819871610c13863c2c0961 | bigcode/the-stack | train |
4345fd7866aa6dbeb538872b | train | function | def run_fast_training_benchmark(
execution_mode: str,
params: config_definitions.ExperimentConfig,
model_dir: str,
distribution_strategy: tf.distribute.Strategy = None
) -> Mapping[str, Any]:
"""Runs benchmark for a fast training experiment.
This benchmark tests and only tests the binary
tensorfl... | def run_fast_training_benchmark(
execution_mode: str,
params: config_definitions.ExperimentConfig,
model_dir: str,
distribution_strategy: tf.distribute.Strategy = None
) -> Mapping[str, Any]:
| """Runs benchmark for a fast training experiment.
This benchmark tests and only tests the binary
tensorflow_models/official/modeling/fast_training/train.py
Args:
execution_mode: A 'str', specifying the mode. Can be 'accuracy',
'performance', or 'tflite_accuracy'.
params: ExperimentConfig instanc... | _time
wall_time = time.time() - first_loop_start_time
examples_per_second = steps_per_loop * params.task.train_data.global_batch_size / second_loop_time
benchmark_data.update(
dict(
examples_per_second=examples_per_second,
wall_time=wall_time,
startup_time=startup... | 120 | 120 | 401 | 48 | 71 | kalona/training-data-analyst | gc-ai-notebook-tutorials/src/models/official/benchmark/benchmark_lib.py | Python | run_fast_training_benchmark | run_fast_training_benchmark | 138 | 186 | 138 | 143 | 83ac13f98eecc346032e14ffb8720298c7e36e72 | bigcode/the-stack | train |
141a61d3d944f00f8f4cba78 | train | function | def run_benchmark(
execution_mode: str,
params: config_definitions.ExperimentConfig,
model_dir: str,
distribution_strategy: tf.distribute.Strategy = None
) -> Mapping[str, Any]:
"""Runs benchmark for a specific experiment.
Args:
execution_mode: A 'str', specifying the mode. Can be 'accuracy',
... | def run_benchmark(
execution_mode: str,
params: config_definitions.ExperimentConfig,
model_dir: str,
distribution_strategy: tf.distribute.Strategy = None
) -> Mapping[str, Any]:
| """Runs benchmark for a specific experiment.
Args:
execution_mode: A 'str', specifying the mode. Can be 'accuracy',
'performance', or 'tflite_accuracy'.
params: ExperimentConfig instance.
model_dir: A 'str', a path to store model checkpoints and summaries.
distribution_strategy: A tf.distribu... | the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is dis... | 256 | 256 | 903 | 46 | 209 | kalona/training-data-analyst | gc-ai-notebook-tutorials/src/models/official/benchmark/benchmark_lib.py | Python | run_benchmark | run_benchmark | 33 | 135 | 33 | 38 | 48ea64f93e98de79749316f61e99ce0278e63ee3 | bigcode/the-stack | train |
3b04a7ebed2edafe678a063b | train | class | class TestTransactionData:
@pytest.fixture(autouse=True)
def before_each(self):
"""Fixture to execute asserts before and after a test is run"""
# Setup
yield # this is where the testing happens
# Teardown
def test_load_from_empty_dic(self):
"""should load an object... | class TestTransactionData:
@pytest.fixture(autouse=True)
| def before_each(self):
"""Fixture to execute asserts before and after a test is run"""
# Setup
yield # this is where the testing happens
# Teardown
def test_load_from_empty_dic(self):
"""should load an object from empty dictionary"""
dic: RawTransactionData = di... | from datetime import date
from decimal import Decimal
from unittest.mock import MagicMock, patch
from core import (
Balance, BalanceData, TransactionDataItem,
BalanceType, RawTransactionData, TransactionData,
TransactionDataConfig)
from tests.test_piecash_helper import TestPiecashHelper
import pytest
@py... | 99 | 256 | 1,835 | 14 | 85 | guilhermevrs/gnucash_reports | tests/core/test_transaction_data.py | Python | TestTransactionData | TestTransactionData | 18 | 209 | 18 | 20 | b1a757ddc9e1ec48f4a50834669fff9936fa5d88 | bigcode/the-stack | train |
64171474d3e52a3b3bd485ca | train | function | @pytest.fixture(scope="class")
def piecash_helper():
return TestPiecashHelper()
| @pytest.fixture(scope="class")
def piecash_helper():
| return TestPiecashHelper()
| import MagicMock, patch
from core import (
Balance, BalanceData, TransactionDataItem,
BalanceType, RawTransactionData, TransactionData,
TransactionDataConfig)
from tests.test_piecash_helper import TestPiecashHelper
import pytest
@pytest.fixture(scope="class")
def piecash_helper():
| 64 | 64 | 19 | 11 | 52 | guilhermevrs/gnucash_reports | tests/core/test_transaction_data.py | Python | piecash_helper | piecash_helper | 13 | 15 | 13 | 14 | 36a148138ac784ca5f7c80739a204f43d260d018 | bigcode/the-stack | train |
8cd0a2b07283b1314a1ec6a6 | train | function | def ctx_ian_sef_custom_config(config):
assert(isinstance(config, IANSynonymEndsAndFramesConfig))
config.modify_bags_per_minibatch(2)
config.modify_hidden_size(128)
config.modify_cell_type(CellTypes.LSTM)
config.modify_l2_reg(0.0)
config.modify_learning_rate(0.1)
config.modify_weight_initiali... | def ctx_ian_sef_custom_config(config):
| assert(isinstance(config, IANSynonymEndsAndFramesConfig))
config.modify_bags_per_minibatch(2)
config.modify_hidden_size(128)
config.modify_cell_type(CellTypes.LSTM)
config.modify_l2_reg(0.0)
config.modify_learning_rate(0.1)
config.modify_weight_initializer(tf.contrib.layers.xavier_initialize... | periments.callback import CustomCallback
from rusentrel.ctx_names import ModelNames
from arekit.contrib.experiments.engine import run_testing
from rusentrel.classic.common import \
classic_ctx_common_config_settings, \
classic_common_callback_modification_func
def ctx_ian_sef_custom_config(config):
| 64 | 64 | 112 | 10 | 53 | nicolay-r/attitude-extraction-with-attention-and-ds | rusentrel/classic/ctx/ian_sef.py | Python | ctx_ian_sef_custom_config | ctx_ian_sef_custom_config | 27 | 36 | 27 | 27 | 90bda4888644d45033a34eef9c7c8c2eabbf5232 | bigcode/the-stack | train |
3bcea2c0a4cfca340f8044ef | train | function | def run_testing_ian_sef(cv_count=1,
name_prefix=u'',
custom_config_func=ctx_ian_sef_custom_config,
custom_callback_func=classic_common_callback_modification_func):
run_testing(full_model_name=name_prefix + ModelNames().IANSynonymEndsAndFrames,... | def run_testing_ian_sef(cv_count=1,
name_prefix=u'',
custom_config_func=ctx_ian_sef_custom_config,
custom_callback_func=classic_common_callback_modification_func):
| run_testing(full_model_name=name_prefix + ModelNames().IANSynonymEndsAndFrames,
create_network=IANSynonymEndsAndFrames,
create_config=IANSynonymEndsAndFramesConfig,
create_nn_io=RuSentRelBasedNeuralNetworkIO,
cv_count=cv_count,
create_m... | _dropout_rnn_keep_prob(0.8)
config.modify_gpu_memory_fraction(0.7)
def run_testing_ian_sef(cv_count=1,
name_prefix=u'',
custom_config_func=ctx_ian_sef_custom_config,
custom_callback_func=classic_common_callback_modification_func):
| 64 | 64 | 181 | 43 | 21 | nicolay-r/attitude-extraction-with-attention-and-ds | rusentrel/classic/ctx/ian_sef.py | Python | run_testing_ian_sef | run_testing_ian_sef | 39 | 55 | 39 | 43 | afaac2859b7ec03ee04d2c63b3596df250c69517 | bigcode/the-stack | train |
51715824bd977d6307ac29ec | train | function | def create_logger(logger_name, log_file):
'''
Create a logger.
The same logger object will be active all through out the python
interpreter process.
https://docs.python.org/2/howto/logging-cookbook.html
Use logger = logging.getLogger(logger_name) to obtain logging all
through out
'''
... | def create_logger(logger_name, log_file):
| '''
Create a logger.
The same logger object will be active all through out the python
interpreter process.
https://docs.python.org/2/howto/logging-cookbook.html
Use logger = logging.getLogger(logger_name) to obtain logging all
through out
'''
logger = logging.getLogger(logger_name)... | import logging
import sys
def create_logger(logger_name, log_file):
| 15 | 76 | 256 | 9 | 5 | aagnone3/dc19t2 | src/utils/Logger.py | Python | create_logger | create_logger | 5 | 33 | 5 | 5 | cf836eaad144e9c213138ef912c358d91ef41265 | bigcode/the-stack | train |
7cbb3e5a2ca3aec1d74e45e5 | train | function | def summation_of_cost_derivative(index, end=m):
"""
Calculates the sum of cost function derivative
:param index: index wrt derivative is being calculated
:param end: value where summation ends, default is m, number of examples
:return: Returns the summation of cost derivative
Note: If index is -... | def summation_of_cost_derivative(index, end=m):
| """
Calculates the sum of cost function derivative
:param index: index wrt derivative is being calculated
:param end: value where summation ends, default is m, number of examples
:return: Returns the summation of cost derivative
Note: If index is -1, this means we are calculating summation wrt t... | hypothesis value for that example
"""
if data_set == "train":
return _hypothesis_value(train_data[example_no][0])
elif data_set == "test":
return _hypothesis_value(test_data[example_no][0])
def summation_of_cost_derivative(index, end=m):
| 64 | 64 | 151 | 12 | 52 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | summation_of_cost_derivative | summation_of_cost_derivative | 75 | 90 | 75 | 75 | 6215b20ab921381ca572bfa4ab3d6308e0bb2244 | bigcode/the-stack | train |
56b9b650b885c4b92a1b7fff | train | function | def run_gradient_descent():
global parameter_vector
# Tune these values to set a tolerance value for predicted output
absolute_error_limit = 0.004
relative_error_limit = 0
j = 0
while True:
j += 1
temp_parameter_vector = [0, 0, 0, 0]
err = 0
for i in range(0, len(... | def run_gradient_descent():
| global parameter_vector
# Tune these values to set a tolerance value for predicted output
absolute_error_limit = 0.004
relative_error_limit = 0
j = 0
while True:
j += 1
temp_parameter_vector = [0, 0, 0, 0]
err = 0
for i in range(0, len(parameter_vector)):
... | wrt to that index
Note: If index is -1, this means we are calculating summation wrt to biased
parameter.
"""
cost_derivative_value = summation_of_cost_derivative(index, m) / m
return cost_derivative_value
def run_gradient_descent():
| 64 | 64 | 203 | 6 | 57 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | run_gradient_descent | run_gradient_descent | 104 | 129 | 104 | 104 | f875aebb86e6058debae5fe68a2374ad48be1002 | bigcode/the-stack | train |
45c92c51c961de48d3015972 | train | function | def _error(example_no, data_set="train"):
"""
:param data_set: train data or test data
:param example_no: example number whose error has to be checked
:return: error in example pointed by example number.
"""
return calculate_hypothesis_value(example_no, data_set) - output(
example_no, da... | def _error(example_no, data_set="train"):
| """
:param data_set: train data or test data
:param example_no: example number whose error has to be checked
:return: error in example pointed by example number.
"""
return calculate_hypothesis_value(example_no, data_set) - output(
example_no, data_set
)
| 515, 22, 13), 555), ((61, 35, 49), 150))
parameter_vector = [2, 4, 1, 5]
m = len(train_data)
LEARNING_RATE = 0.009
def _error(example_no, data_set="train"):
| 64 | 64 | 79 | 11 | 52 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | _error | _error | 23 | 31 | 23 | 23 | efc64b00741237f92d7ab62a2282f048f210b23d | bigcode/the-stack | train |
525977728f0eadec7e4b73e2 | train | function | def _hypothesis_value(data_input_tuple):
"""
Calculates hypothesis function value for a given input
:param data_input_tuple: Input tuple of a particular example
:return: Value of hypothesis function at that point.
Note that there is an 'biased input' whose value is fixed as 1.
It is not explicit... | def _hypothesis_value(data_input_tuple):
| """
Calculates hypothesis function value for a given input
:param data_input_tuple: Input tuple of a particular example
:return: Value of hypothesis function at that point.
Note that there is an 'biased input' whose value is fixed as 1.
It is not explicitly mentioned in input data.. But, ML hypo... |
:param example_no: example number whose error has to be checked
:return: error in example pointed by example number.
"""
return calculate_hypothesis_value(example_no, data_set) - output(
example_no, data_set
)
def _hypothesis_value(data_input_tuple):
| 64 | 64 | 156 | 9 | 55 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | _hypothesis_value | _hypothesis_value | 34 | 47 | 34 | 34 | a0912973639a08ca475449cd125578e7ffa56d97 | bigcode/the-stack | train |
ffe2b42434b3490c34ae5d57 | train | function | def test_gradient_descent():
for i in range(len(test_data)):
print(("Actual output value:", output(i, "test")))
print(("Hypothesis output:", calculate_hypothesis_value(i, "test")))
| def test_gradient_descent():
| for i in range(len(test_data)):
print(("Actual output value:", output(i, "test")))
print(("Hypothesis output:", calculate_hypothesis_value(i, "test")))
| .log(1+err)
if numpy.allclose(
parameter_vector,
temp_parameter_vector,
atol=absolute_error_limit,
rtol=relative_error_limit,
):
break
parameter_vector = temp_parameter_vector
print(("Number of iterations:", j))
def test_gradient_de... | 64 | 64 | 45 | 6 | 58 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | test_gradient_descent | test_gradient_descent | 132 | 135 | 132 | 132 | 4a87c21198839c042203e5a03a0591856c5c7c6c | bigcode/the-stack | train |
88e3a75caaf44b6d7ee4b354 | train | function | def calculate_hypothesis_value(example_no, data_set):
"""
Calculates hypothesis value for a given example
:param data_set: test data or train_data
:param example_no: example whose hypothesis value is to be calculated
:return: hypothesis value for that example
"""
if data_set == "train":
... | def calculate_hypothesis_value(example_no, data_set):
| """
Calculates hypothesis value for a given example
:param data_set: test data or train_data
:param example_no: example whose hypothesis value is to be calculated
:return: hypothesis value for that example
"""
if data_set == "train":
return _hypothesis_value(train_data[example_no][0]... | is to be fetched
:return: output for that example
"""
if data_set == "train":
return train_data[example_no][1]
elif data_set == "test":
return test_data[example_no][1]
def calculate_hypothesis_value(example_no, data_set):
| 64 | 64 | 106 | 12 | 52 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | calculate_hypothesis_value | calculate_hypothesis_value | 62 | 72 | 62 | 62 | 14445fc79d34c973d29641b154e9d602041268e2 | bigcode/the-stack | train |
dd76357ee670126fe777e920 | train | function | def get_cost_derivative(index):
"""
:param index: index of the parameter vector wrt to derivative is to be calculated
:return: derivative wrt to that index
Note: If index is -1, this means we are calculating summation wrt to biased
parameter.
"""
cost_derivative_value = summation_of_cost... | def get_cost_derivative(index):
| """
:param index: index of the parameter vector wrt to derivative is to be calculated
:return: derivative wrt to that index
Note: If index is -1, this means we are calculating summation wrt to biased
parameter.
"""
cost_derivative_value = summation_of_cost_derivative(index, m) / m
re... | summation_value = 0
for i in range(end):
if index == -1:
summation_value += _error(i)
else:
summation_value += _error(i) * train_data[i][0][index]
return summation_value
def get_cost_derivative(index):
| 64 | 64 | 91 | 7 | 56 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | get_cost_derivative | get_cost_derivative | 93 | 101 | 93 | 93 | a27ee257ae628def52784870757081ad3c1b20a6 | bigcode/the-stack | train |
fa5a06dd5475dc994ba68ff5 | train | function | def output(example_no, data_set):
"""
:param data_set: test data or train data
:param example_no: example whose output is to be fetched
:return: output for that example
"""
if data_set == "train":
return train_data[example_no][1]
elif data_set == "test":
return test_data[exam... | def output(example_no, data_set):
| """
:param data_set: test data or train data
:param example_no: example whose output is to be fetched
:return: output for that example
"""
if data_set == "train":
return train_data[example_no][1]
elif data_set == "test":
return test_data[example_no][1]
| of it.
"""
hyp_val = 0
for i in range(len(parameter_vector) - 1):
hyp_val += data_input_tuple[i] * parameter_vector[i + 1]
hyp_val += parameter_vector[0]
return hyp_val
def output(example_no, data_set):
| 64 | 64 | 83 | 8 | 55 | liuyangc3/viztracer | example/src/gradient_descent.py | Python | output | output | 50 | 59 | 50 | 50 | 90c1671597964e72b3fd967416504cf6fa902075 | bigcode/the-stack | train |
4f5e8cb76806c2f105a67d6c | train | function | def api_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
api = enable_if.unique([lazy_system_assign, eager_system_assign])
return api(
ref, value, validate_shape=validate_shape, use_locking=use_locking, name=name
)
| def api_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| api = enable_if.unique([lazy_system_assign, eager_system_assign])
return api(
ref, value, validate_shape=validate_shape, use_locking=use_locking, name=name
)
| istent_user_op_builder(name)
.Op("assign")
.Input("ref", [ref])
.Input("value", [value])
.Build()
)
op.InferAndTryRun()
def api_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| 64 | 64 | 63 | 20 | 44 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | api_system_assign | api_system_assign | 45 | 49 | 45 | 45 | ecfccb06051ba553ec239e6b150db71224857bd2 | bigcode/the-stack | train |
65e212d5cf63558d37438687 | train | function | def _SystemAssignOpConf(ref, value, name=None):
if name is None:
name = id_util.UniqueStr("Assign_")
op_conf = op_conf_util.OperatorConf()
op_conf.name = name
op_conf.assign_conf.ref = ref.unique_name
op_conf.assign_conf.value = value.unique_name
return op_conf
| def _SystemAssignOpConf(ref, value, name=None):
| if name is None:
name = id_util.UniqueStr("Assign_")
op_conf = op_conf_util.OperatorConf()
op_conf.name = name
op_conf.assign_conf.ref = ref.unique_name
op_conf.assign_conf.value = value.unique_name
return op_conf
| assert hob.eager_execution_enabled(None)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: builder.Build121AssignInstruction(
ref.blob_object, value.blob_object
)
)
return ref
def _SystemAssignOpConf(ref, value, name=None):
| 64 | 64 | 74 | 13 | 50 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | _SystemAssignOpConf | _SystemAssignOpConf | 90 | 97 | 90 | 90 | c7e8d7c0af8e9493f7e2535339d1cdc86c4b14ad | bigcode/the-stack | train |
35e78a6d4d522156017aafaa | train | function | @enable_if.condition(hob.in_global_mode & ~hob.eager_execution_enabled)
def lazy_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
op_conf = _SystemAssignOpConf(ref, value, name=name)
(
device_tag,
machine_device_ids,
hierarchy,
) = oneflow._oneflow_interna... | @enable_if.condition(hob.in_global_mode & ~hob.eager_execution_enabled)
def lazy_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| op_conf = _SystemAssignOpConf(ref, value, name=name)
(
device_tag,
machine_device_ids,
hierarchy,
) = oneflow._oneflow_internal.GetDeviceTagAndMachineDeviceIdsAndHierarchy(
ref.parallel_conf
)
if hierarchy is not None:
hierarchy = tuple(hierarchy.dim())
wi... | return api(
ref, value, validate_shape=validate_shape, use_locking=use_locking, name=name
)
@enable_if.condition(hob.in_global_mode & ~hob.eager_execution_enabled)
def lazy_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| 64 | 64 | 135 | 37 | 27 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | lazy_system_assign | lazy_system_assign | 52 | 66 | 52 | 53 | a4d2bf0585e4ce99544eb38c290eb6434b24cbdc | bigcode/the-stack | train |
d45748af32b3225550e7f024 | train | function | def assign(ref, value, dtype=None, name=None):
if name is None:
name = id_util.UniqueStr("Assign_")
op = (
flow.consistent_user_op_builder(name)
.Op("assign")
.Input("ref", [ref])
.Input("value", [value])
.Build()
)
op.InferAndTryRun()
| def assign(ref, value, dtype=None, name=None):
| if name is None:
name = id_util.UniqueStr("Assign_")
op = (
flow.consistent_user_op_builder(name)
.Op("assign")
.Input("ref", [ref])
.Input("value", [value])
.Build()
)
op.InferAndTryRun()
| as remote_blob_util
from oneflow.compatible.single_client.support import enable_if as enable_if
from oneflow.core.operator import op_conf_pb2 as op_conf_util
from oneflow.core.register import logical_blob_id_pb2 as logical_blob_id_util
def assign(ref, value, dtype=None, name=None):
| 64 | 64 | 80 | 12 | 51 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | assign | assign | 32 | 42 | 32 | 32 | 2311f5c885a83cfdafc268ad31dbe4d8fcea7113 | bigcode/the-stack | train |
d3511691d347dc2b47e9aeac | train | function | def api_one_to_one_assign(ref, value):
assert hob.eager_execution_enabled(None)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: builder.Build121AssignInstruction(
ref.blob_object, value.blob_object
)
)
return ref
| def api_one_to_one_assign(ref, value):
| assert hob.eager_execution_enabled(None)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: builder.Build121AssignInstruction(
ref.blob_object, value.blob_object
)
)
return ref
| (ref, value, name=name)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: boxing_util.BuildAssignInstruction(
builder, ref.blob_object, value.blob_object, op_conf
)
)
return ref
def api_one_to_one_assign(ref, value):
| 64 | 64 | 61 | 10 | 53 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | api_one_to_one_assign | api_one_to_one_assign | 80 | 87 | 80 | 80 | b848185c5857bae4797a4d1a6baafc75996db209 | bigcode/the-stack | train |
559e8b1ba8893cee194a6986 | train | function | @enable_if.condition(hob.in_global_mode & hob.eager_execution_enabled)
def eager_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
op_conf = _SystemAssignOpConf(ref, value, name=name)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: boxing_util.BuildAssignInstr... | @enable_if.condition(hob.in_global_mode & hob.eager_execution_enabled)
def eager_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| op_conf = _SystemAssignOpConf(ref, value, name=name)
oneflow._oneflow_internal.deprecated.LogicalRun(
lambda builder: boxing_util.BuildAssignInstruction(
builder, ref.blob_object, value.blob_object, op_conf
)
)
return ref
| ())
with flow.scope.placement(device_tag, machine_device_ids, hierarchy):
interpret_util.Forward(op_conf)
return ref
@enable_if.condition(hob.in_global_mode & hob.eager_execution_enabled)
def eager_system_assign(ref, value, validate_shape=None, use_locking=None, name=None):
| 64 | 64 | 99 | 36 | 27 | wangyuyue/oneflow | python/oneflow/compatible/single_client/ops/assign_op.py | Python | eager_system_assign | eager_system_assign | 69 | 77 | 69 | 70 | dcce6018dfb221aeee301d91a9d2152a2c483a8b | bigcode/the-stack | train |
ed6d9f92f60e822fca793da4 | train | class | class UserProfileIndex(indexes.SearchIndex, indexes.Indexable):
"""User Profile Search Index."""
# Primary field of the index
text = indexes.CharField(document=True, use_template=True)
# profile information
full_name = indexes.CharField(model_attr='full_name')
privacy_full_name = indexes.Integer... | class UserProfileIndex(indexes.SearchIndex, indexes.Indexable):
| """User Profile Search Index."""
# Primary field of the index
text = indexes.CharField(document=True, use_template=True)
# profile information
full_name = indexes.CharField(model_attr='full_name')
privacy_full_name = indexes.IntegerField(model_attr='privacy_full_name')
email = indexes.CharFi... | from haystack import indexes
from mozillians.users.models import IdpProfile, UserProfile
class UserProfileIndex(indexes.SearchIndex, indexes.Indexable):
| 33 | 103 | 345 | 13 | 19 | LeoMcA/vouched-mozillians | mozillians/users/search_indexes.py | Python | UserProfileIndex | UserProfileIndex | 5 | 40 | 5 | 5 | 529dea4703292b64ff9152e5686ed7fe02b096aa | bigcode/the-stack | train |
cfa4b88001ac2eb8a8d62f9a | train | class | class IdpProfileIndex(indexes.SearchIndex, indexes.Indexable):
"""IdpProfile Profile Search Index."""
# Primary field of the index
text = indexes.CharField(document=True, use_template=True)
# IdpProfile information
iemail = indexes.CharField(model_attr='email')
privacy_iemail = indexes.IntegerFi... | class IdpProfileIndex(indexes.SearchIndex, indexes.Indexable):
| """IdpProfile Profile Search Index."""
# Primary field of the index
text = indexes.CharField(document=True, use_template=True)
# IdpProfile information
iemail = indexes.CharField(model_attr='email')
privacy_iemail = indexes.IntegerField(model_attr='privacy')
iusername = indexes.CharField(mod... | already in the IdpProfiles
if not obj.idp_profiles.exists():
return obj.email
return ''
def index_queryset(self, using=None):
"""Exclude incomplete profiles from indexing."""
return self.get_model().objects.complete()
class IdpProfileIndex(indexes.SearchIndex, indexes.I... | 64 | 64 | 206 | 14 | 50 | LeoMcA/vouched-mozillians | mozillians/users/search_indexes.py | Python | IdpProfileIndex | IdpProfileIndex | 43 | 66 | 43 | 43 | 741d742095db65fa8dae1047aa6eb388ca49ef69 | bigcode/the-stack | train |
148fe7c556c72a3453805dab | train | class | @dataclass
class DataclassFieldInfo:
field: Field
wanted_value: any = None
has_same_characteristics: bool = True
fields: List[DataclassFieldInfo] = None
def fields_are_similar(self) -> bool:
are_similar = self.has_same_characteristics
if are_similar and self.fields:
for ... | @dataclass
class DataclassFieldInfo:
| field: Field
wanted_value: any = None
has_same_characteristics: bool = True
fields: List[DataclassFieldInfo] = None
def fields_are_similar(self) -> bool:
are_similar = self.has_same_characteristics
if are_similar and self.fields:
for field in self.fields:
... | from __future__ import annotations
from dataclasses import dataclass, Field, fields, is_dataclass
from typing import Optional, List
@dataclass
class DataclassFieldInfo:
| 38 | 64 | 100 | 9 | 28 | fr-froussel/PyObjectToDataclass | object2dataclass.py | Python | DataclassFieldInfo | DataclassFieldInfo | 7 | 19 | 7 | 8 | db33fef0db42fb8ba8ed2b461523b987edd5350d | bigcode/the-stack | train |
0e0358be289954872df7ecef | train | class | class Object2Dataclass:
@staticmethod
def __extract_dataclass_fields(dc: any, dc_fields: List[DataclassFieldInfo]):
if dc is None:
error_message = 'The dataclass is not valid'
raise ValueError(error_message)
for dc_field in fields(dc):
dc_fields.append(Datacl... | class Object2Dataclass:
@staticmethod
| def __extract_dataclass_fields(dc: any, dc_fields: List[DataclassFieldInfo]):
if dc is None:
error_message = 'The dataclass is not valid'
raise ValueError(error_message)
for dc_field in fields(dc):
dc_fields.append(DataclassFieldInfo(field=dc_field))
... | from __future__ import annotations
from dataclasses import dataclass, Field, fields, is_dataclass
from typing import Optional, List
@dataclass
class DataclassFieldInfo:
field: Field
wanted_value: any = None
has_same_characteristics: bool = True
fields: List[DataclassFieldInfo] = None
def fields_... | 139 | 256 | 904 | 10 | 128 | fr-froussel/PyObjectToDataclass | object2dataclass.py | Python | Object2Dataclass | Object2Dataclass | 22 | 125 | 22 | 23 | 6aa98315989d6d8af5affb4ff672fe9fb0bfe535 | bigcode/the-stack | train |
ec350de077021caecea9da05 | train | class | class Migration(migrations.Migration):
dependencies = [
('pokequest', '0010_auto_20150826_1936'),
]
operations = [
migrations.RenameField(
model_name='player',
old_name='puzzle1',
new_name='score',
),
migrations.RemoveField(
m... | class Migration(migrations.Migration):
| dependencies = [
('pokequest', '0010_auto_20150826_1936'),
]
operations = [
migrations.RenameField(
model_name='player',
old_name='puzzle1',
new_name='score',
),
migrations.RemoveField(
model_name='player',
name='pu... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
| 31 | 64 | 184 | 7 | 23 | sagarmanchanda/PokeQuest | poketech/pokequest/migrations/0011_auto_20150829_1618.py | Python | Migration | Migration | 7 | 43 | 7 | 8 | ac8ffdf2f638f10f8892d7f3e89569d08d0a6162 | bigcode/the-stack | train |
6a52020a269e9efae6f60fcc | train | class | class HypervisorResourceError(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_HYPERVISOR_RESOURCE_ERROR)
self.clearGardEntries()
| class HypervisorResourceError(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_HYPERVISOR_RESOURCE_ERROR)
self.clearGardEntries()
| MIHandling(BMC_CONST.HMI_PROC_RECV_ERROR_MASKED)
class MalfunctionAlert(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_MALFUNCTION_ALERT)
self.clearGardEntries()
class HypervisorResourceError(OpTestHMIHandling):
| 64 | 64 | 43 | 11 | 53 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | HypervisorResourceError | HypervisorResourceError | 653 | 656 | 653 | 653 | ee64cd35adcc11aefba338c4a01c0c1a05a11918 | bigcode/the-stack | train |
9af76db5d807c96164ab93bd | train | class | class TOD_ERRORS(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
| class TOD_ERRORS(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
| .run_command("dmesg")
self.verify_timer_facility_recovery(l_res)
return
class HMI_TFMR_ERRORS(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.TFMR_ERRORS)
class TOD_ERRORS(OpTestHMIHandling):
| 64 | 64 | 29 | 9 | 55 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | TOD_ERRORS | TOD_ERRORS | 628 | 630 | 628 | 628 | 92013b9a1ae9fc457a2f44711dcdc1840f9fb26a | bigcode/the-stack | train |
810c5d2ebe19789111050827 | train | function | def experimental_suite():
s = unittest.TestSuite()
s.addTest(TOD_ERRORS())
s.addTest(SingleCoreTOD_ERRORS())
return s
| def experimental_suite():
| s = unittest.TestSuite()
s.addTest(TOD_ERRORS())
s.addTest(SingleCoreTOD_ERRORS())
return s
| ())
return s
def suite():
s = unittest.TestSuite()
s.addTest(HMI_TFMR_ERRORS())
s.addTest(PROC_RECOV_DONE())
s.addTest(PROC_RECV_ERROR_MASKED())
s.addTest(TOD_ERRORS())
return s
def experimental_suite():
| 64 | 64 | 33 | 4 | 59 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | experimental_suite | experimental_suite | 677 | 681 | 677 | 677 | d5a6ffb277112972c21253d71433cce49c7642e1 | bigcode/the-stack | train |
36a484d331b0b264f144e3d9 | train | function | def unrecoverable_suite():
s = unittest.TestSuite()
s.addTest(MalfunctionAlert())
s.addTest(HypervisorResourceError())
s.addTest(ClearGard())
return s
| def unrecoverable_suite():
| s = unittest.TestSuite()
s.addTest(MalfunctionAlert())
s.addTest(HypervisorResourceError())
s.addTest(ClearGard())
return s
| TestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_HYPERVISOR_RESOURCE_ERROR)
self.clearGardEntries()
class ClearGard(OpTestHMIHandling):
def runTest(self):
self.clearGardEntries()
def unrecoverable_suite():
| 64 | 64 | 44 | 6 | 58 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | unrecoverable_suite | unrecoverable_suite | 662 | 667 | 662 | 662 | 420f422facda3384d50dbd43c3ecae1e9b00c5b5 | bigcode/the-stack | train |
a01e5f72ab04da5c4d909ad0 | train | class | class SingleCoreTOD_ERRORS(OpTestHMIHandling):
def setUp(self):
super(SingleCoreTOD_ERRORS, self).setUp()
self.cv_HOST.host_enable_single_core(console=1)
def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
| class SingleCoreTOD_ERRORS(OpTestHMIHandling):
| def setUp(self):
super(SingleCoreTOD_ERRORS, self).setUp()
self.cv_HOST.host_enable_single_core(console=1)
def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
| MIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.TFMR_ERRORS)
class TOD_ERRORS(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
class SingleCoreTOD_ERRORS(OpTestHMIHandling):
| 64 | 64 | 62 | 11 | 53 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | SingleCoreTOD_ERRORS | SingleCoreTOD_ERRORS | 632 | 638 | 632 | 632 | 53846d5d3dd1a1e1e1bb39cc52f7b90c37b4eb13 | bigcode/the-stack | train |
625bafb2d443906ae97bcfbc | train | class | class MalfunctionAlert(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_MALFUNCTION_ALERT)
self.clearGardEntries()
| class MalfunctionAlert(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_MALFUNCTION_ALERT)
self.clearGardEntries()
| self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_DONE)
class PROC_RECV_ERROR_MASKED(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_ERROR_MASKED)
class MalfunctionAlert(OpTestHMIHandling):
| 64 | 64 | 39 | 10 | 54 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | MalfunctionAlert | MalfunctionAlert | 648 | 651 | 648 | 648 | 7ced782145187a353c7b06bc94687b6353012cef | bigcode/the-stack | train |
e8644c872629e2b9f7e4a0fa | train | class | class PROC_RECV_ERROR_MASKED(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_ERROR_MASKED)
| class PROC_RECV_ERROR_MASKED(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_ERROR_MASKED)
| Test(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
class PROC_RECOV_DONE(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_DONE)
class PROC_RECV_ERROR_MASKED(OpTestHMIHandling):
| 64 | 64 | 38 | 13 | 51 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | PROC_RECV_ERROR_MASKED | PROC_RECV_ERROR_MASKED | 644 | 646 | 644 | 644 | e3ff61c183a356e80bbd3e00c8f1d1145c7eb690 | bigcode/the-stack | train |
ed37dba476ffde562e1ba3c4 | train | function | def suite():
s = unittest.TestSuite()
s.addTest(HMI_TFMR_ERRORS())
s.addTest(PROC_RECOV_DONE())
s.addTest(PROC_RECV_ERROR_MASKED())
s.addTest(TOD_ERRORS())
return s
| def suite():
| s = unittest.TestSuite()
s.addTest(HMI_TFMR_ERRORS())
s.addTest(PROC_RECOV_DONE())
s.addTest(PROC_RECV_ERROR_MASKED())
s.addTest(TOD_ERRORS())
return s
| TestHMIHandling):
def runTest(self):
self.clearGardEntries()
def unrecoverable_suite():
s = unittest.TestSuite()
s.addTest(MalfunctionAlert())
s.addTest(HypervisorResourceError())
s.addTest(ClearGard())
return s
def suite():
| 64 | 64 | 55 | 3 | 60 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | suite | suite | 669 | 675 | 669 | 669 | e8daff094b27f6343a1e463b856ff6d918a35934 | bigcode/the-stack | train |
d1f69426069cc5348937b903 | train | class | class ClearGard(OpTestHMIHandling):
def runTest(self):
self.clearGardEntries()
| class ClearGard(OpTestHMIHandling):
| def runTest(self):
self.clearGardEntries()
| MI_MALFUNCTION_ALERT)
self.clearGardEntries()
class HypervisorResourceError(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_HYPERVISOR_RESOURCE_ERROR)
self.clearGardEntries()
class ClearGard(OpTestHMIHandling):
| 64 | 64 | 21 | 9 | 55 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | ClearGard | ClearGard | 658 | 660 | 658 | 658 | 091322bb99448a57d5e28c362c1bc564c522e362 | bigcode/the-stack | train |
6bcad0e5c658b10a38d13373 | train | class | class HMI_TFMR_ERRORS(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.TFMR_ERRORS)
| class HMI_TFMR_ERRORS(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.TFMR_ERRORS)
| ("TOD: PSS Hamming distance error injection failed %s", str(cf))
time.sleep(0.2)
l_res = console.run_command("dmesg")
self.verify_timer_facility_recovery(l_res)
return
class HMI_TFMR_ERRORS(OpTestHMIHandling):
| 64 | 64 | 34 | 13 | 50 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | HMI_TFMR_ERRORS | HMI_TFMR_ERRORS | 624 | 626 | 624 | 624 | c1b0eea7722e6abbf47065d47065e46c42f771c2 | bigcode/the-stack | train |
a4841425236c58943956cd7a | train | class | class PROC_RECOV_DONE(OpTestHMIHandling):
def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_DONE)
| class PROC_RECOV_DONE(OpTestHMIHandling):
| def runTest(self):
self._testHMIHandling(BMC_CONST.HMI_PROC_RECV_DONE)
| Handling):
def setUp(self):
super(SingleCoreTOD_ERRORS, self).setUp()
self.cv_HOST.host_enable_single_core(console=1)
def runTest(self):
self._testHMIHandling(BMC_CONST.TOD_ERRORS)
class PROC_RECOV_DONE(OpTestHMIHandling):
| 64 | 64 | 34 | 11 | 53 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | PROC_RECOV_DONE | PROC_RECOV_DONE | 640 | 642 | 640 | 640 | c9a32452383ff48660ac5e8c5918ade28522324c | bigcode/the-stack | train |
c9e25bec62f6250f8e467765 | train | class | class OpTestHMIHandling(unittest.TestCase):
@classmethod
def setUpClass(cls):
conf = OpTestConfiguration.conf
cls.cv_HOST = conf.host()
cls.cv_IPMI = conf.ipmi()
cls.cv_FSP = conf.bmc()
cls.cv_SYSTEM = conf.system()
cls.bmc_type = conf.args.bmc_type
cls.ut... | class OpTestHMIHandling(unittest.TestCase):
@classmethod
| def setUpClass(cls):
conf = OpTestConfiguration.conf
cls.cv_HOST = conf.host()
cls.cv_IPMI = conf.ipmi()
cls.cv_FSP = conf.bmc()
cls.cv_SYSTEM = conf.system()
cls.bmc_type = conf.args.bmc_type
cls.util = conf.util
def setUp(self):
if self.cv_SYSTE... | ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
'''
OpTestHMIHandling
-----------------
HMI Handling package for OpenPower testing.
This class will test the functionality of following.
1. HMI Non-reco... | 256 | 256 | 6,433 | 14 | 242 | apopple/op-test-framework | testcases/OpTestHMIHandling.py | Python | OpTestHMIHandling | OpTestHMIHandling | 61 | 622 | 61 | 62 | 7508113820162a9b01a7065b1173ad95ec7bae49 | bigcode/the-stack | train |
376cf7696d8041698ccfd5b1 | train | class | class ManagedClusterPodIdentityException(Model):
"""ManagedClusterPodIdentityException.
All required parameters must be populated in order to send to Azure.
:param name: Required. Name of the pod identity exception.
:type name: str
:param namespace: Required. Namespace of the pod identity exceptio... | class ManagedClusterPodIdentityException(Model):
| """ManagedClusterPodIdentityException.
All required parameters must be populated in order to send to Azure.
:param name: Required. Name of the pod identity exception.
:type name: str
:param namespace: Required. Namespace of the pod identity exception.
:type namespace: str
:param pod_labels... | *, name: str, namespace: str, identity, **kwargs) -> None:
super(ManagedClusterPodIdentity, self).__init__(**kwargs)
self.name = name
self.namespace = namespace
self.identity = identity
self.provisioning_state = None
self.provisioning_info = None
class ManagedClusterPodI... | 76 | 76 | 254 | 8 | 67 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPodIdentityException | ManagedClusterPodIdentityException | 2,170 | 2,199 | 2,170 | 2,170 | cc2d41475a63eb8b9cca9d0e065dfc95e62f6d7a | bigcode/the-stack | train |
7f8e1dcc821a57620191d7df | train | class | class TimeSpan(Model):
"""The time span with start and end properties.
:param start: The start of a time span
:type start: datetime
:param end: The end of a time span
:type end: datetime
"""
_attribute_map = {
'start': {'key': 'start', 'type': 'iso-8601'},
'end': {'key': 'e... | class TimeSpan(Model):
| """The time span with start and end properties.
:param start: The start of a time span
:type start: datetime
:param end: The end of a time span
:type end: datetime
"""
_attribute_map = {
'start': {'key': 'start', 'type': 'iso-8601'},
'end': {'key': 'end', 'type': 'iso-8601'... | Slots', 'type': '[int]'},
}
def __init__(self, *, day=None, hour_slots=None, **kwargs) -> None:
super(TimeInWeek, self).__init__(**kwargs)
self.day = day
self.hour_slots = hour_slots
class TimeSpan(Model):
| 64 | 64 | 146 | 5 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | TimeSpan | TimeSpan | 3,025 | 3,042 | 3,025 | 3,025 | 7ae404df5f64ece3c44a69a618ac250415e03843 | bigcode/the-stack | train |
61df891454ff494b64046cef | train | class | class LinuxOSConfig(Model):
"""OS configurations of Linux agent nodes.
:param sysctls: Sysctl settings for Linux agent nodes.
:type sysctls:
~azure.mgmt.containerservice.v2020_12_01.models.SysctlConfig
:param transparent_huge_page_enabled: Transparent Huge Page enabled
configuration.
:typ... | class LinuxOSConfig(Model):
| """OS configurations of Linux agent nodes.
:param sysctls: Sysctl settings for Linux agent nodes.
:type sysctls:
~azure.mgmt.containerservice.v2020_12_01.models.SysctlConfig
:param transparent_huge_page_enabled: Transparent Huge Page enabled
configuration.
:type transparent_huge_page_enab... | _quota_period
self.image_gc_high_threshold = image_gc_high_threshold
self.image_gc_low_threshold = image_gc_low_threshold
self.topology_manager_policy = topology_manager_policy
self.allowed_unsafe_sysctls = allowed_unsafe_sysctls
self.fail_swap_on = fail_swap_on
self.cont... | 110 | 110 | 369 | 6 | 103 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | LinuxOSConfig | LinuxOSConfig | 971 | 1,000 | 971 | 971 | 42f9a5f1bbf65a2f5db3490dcf25a8b25e6f9cae | bigcode/the-stack | train |
4f9e1f2eaaac9f48d9525e11 | train | class | class ManagedClusterAddonProfileIdentity(UserAssignedIdentity):
"""Information of user assigned identity used by this add-on.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str... | class ManagedClusterAddonProfileIdentity(UserAssignedIdentity):
| """Information of user assigned identity used by this add-on.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str
:param object_id: The object id of the user assigned identi... | , client_id: str=None, object_id: str=None, **kwargs) -> None:
super(UserAssignedIdentity, self).__init__(**kwargs)
self.resource_id = resource_id
self.client_id = client_id
self.object_id = object_id
class ManagedClusterAddonProfileIdentity(UserAssignedIdentity):
| 66 | 66 | 222 | 10 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAddonProfileIdentity | ManagedClusterAddonProfileIdentity | 1,411 | 1,429 | 1,411 | 1,411 | 62b47b4a23d435f0f3e36ae1b4d3e09ad6a7d70c | bigcode/the-stack | train |
157d0b07ad9ef44c685f57be | train | class | class ManagedClusterAutoUpgradeProfile(Model):
"""Auto upgrade profile for a managed cluster.
:param upgrade_channel: upgrade channel for auto upgrade. Possible values
include: 'rapid', 'stable', 'patch', 'none'
:type upgrade_channel: str or
~azure.mgmt.containerservice.v2020_12_01.models.Upgrade... | class ManagedClusterAutoUpgradeProfile(Model):
| """Auto upgrade profile for a managed cluster.
:param upgrade_channel: upgrade channel for auto upgrade. Possible values
include: 'rapid', 'stable', 'patch', 'none'
:type upgrade_channel: str or
~azure.mgmt.containerservice.v2020_12_01.models.UpgradeChannel
"""
_attribute_map = {
... | , **kwargs) -> None:
super(ManagedClusterAPIServerAccessProfile, self).__init__(**kwargs)
self.authorized_ip_ranges = authorized_ip_ranges
self.enable_private_cluster = enable_private_cluster
self.private_dns_zone = private_dns_zone
class ManagedClusterAutoUpgradeProfile(Model):
| 64 | 64 | 148 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAutoUpgradeProfile | ManagedClusterAutoUpgradeProfile | 1,915 | 1,930 | 1,915 | 1,915 | 2f3fecd11d43cf87e5cbf8eb74e139bf8e7bc11d | bigcode/the-stack | train |
bbb4c3577f4512befcc2c2f4 | train | class | class SysctlConfig(Model):
"""Sysctl settings for Linux agent nodes.
:param net_core_somaxconn: Sysctl setting net.core.somaxconn.
:type net_core_somaxconn: int
:param net_core_netdev_max_backlog: Sysctl setting
net.core.netdev_max_backlog.
:type net_core_netdev_max_backlog: int
:param net... | class SysctlConfig(Model):
| """Sysctl settings for Linux agent nodes.
:param net_core_somaxconn: Sysctl setting net.core.somaxconn.
:type net_core_somaxconn: int
:param net_core_netdev_max_backlog: Sysctl setting
net.core.netdev_max_backlog.
:type net_core_netdev_max_backlog: int
:param net_core_rmem_default: Sysctl ... |
include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
:type status: str or
~azure.mgmt.containerservice.v2020_12_01.models.ConnectionStatus
:param description: The private link service connection description.
:type description: str
"""
_attribute_map = {
'status': {'key': 's... | 256 | 256 | 2,483 | 6 | 249 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | SysctlConfig | SysctlConfig | 2,809 | 2,943 | 2,809 | 2,809 | 0b5677de586409bed959a77ef4cbc48c8ed1f3cb | bigcode/the-stack | train |
984e46c6d6d3699f65e999a5 | train | class | class CloudErrorException(HttpOperationError):
"""Server responsed with exception of type: 'CloudError'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""
def __init__(self, deserialize, response, *args):
super(CloudErrorException, self).__init__(... | class CloudErrorException(HttpOperationError):
| """Server responsed with exception of type: 'CloudError'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""
def __init__(self, deserialize, response, *args):
super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args)
| 'error': {'key': 'error', 'type': 'CloudErrorBody'},
}
def __init__(self, *, error=None, **kwargs) -> None:
super(CloudError, self).__init__(**kwargs)
self.error = error
class CloudErrorException(HttpOperationError):
| 64 | 64 | 81 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | CloudErrorException | CloudErrorException | 479 | 488 | 479 | 479 | 81f7cc025b877938b5ff21b8cdc1682a69da5d4d | bigcode/the-stack | train |
d3118ba0fc28099724f23960 | train | class | class ManagedClusterPodIdentityProfile(Model):
"""ManagedClusterPodIdentityProfile.
:param enabled: Whether the pod identity addon is enabled.
:type enabled: bool
:param user_assigned_identities: User assigned pod identity settings.
:type user_assigned_identities:
list[~azure.mgmt.containerser... | class ManagedClusterPodIdentityProfile(Model):
| """ManagedClusterPodIdentityProfile.
:param enabled: Whether the pod identity addon is enabled.
:type enabled: bool
:param user_assigned_identities: User assigned pod identity settings.
:type user_assigned_identities:
list[~azure.mgmt.containerservice.v2020_12_01.models.ManagedClusterPodIdenti... | 'pod_labels': {'key': 'podLabels', 'type': '{str}'},
}
def __init__(self, *, name: str, namespace: str, pod_labels, **kwargs) -> None:
super(ManagedClusterPodIdentityException, self).__init__(**kwargs)
self.name = name
self.namespace = namespace
self.pod_labels = pod_lab... | 91 | 91 | 304 | 8 | 82 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPodIdentityProfile | ManagedClusterPodIdentityProfile | 2,202 | 2,226 | 2,202 | 2,202 | 8a11f2da487bfa19ed96686fc8b200c38692e9b5 | bigcode/the-stack | train |
3bb55f15c8f8ceca9a97fb4b | train | class | class ManagedClusterIdentityUserAssignedIdentitiesValue(Model):
"""ManagedClusterIdentityUserAssignedIdentitiesValue.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of user assigned identity.
:vartype principal_id: str
... | class ManagedClusterIdentityUserAssignedIdentitiesValue(Model):
| """ManagedClusterIdentityUserAssignedIdentitiesValue.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of user assigned identity.
:vartype principal_id: str
:ivar client_id: The client id of user assigned identity.
... | -> None:
super(ManagedClusterIdentity, self).__init__(**kwargs)
self.principal_id = None
self.tenant_id = None
self.type = type
self.user_assigned_identities = user_assigned_identities
class ManagedClusterIdentityUserAssignedIdentitiesValue(Model):
| 64 | 64 | 208 | 11 | 52 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterIdentityUserAssignedIdentitiesValue | ManagedClusterIdentityUserAssignedIdentitiesValue | 1,982 | 2,007 | 1,982 | 1,982 | 30c10d0f00460561c35ae193ce060f49ab220427 | bigcode/the-stack | train |
b1b266f5c2b8814417066c8c | train | class | class PrivateLinkResourcesListResult(Model):
"""A list of private link resources.
:param value: The collection value.
:type value:
list[~azure.mgmt.containerservice.v2020_12_01.models.PrivateLinkResource]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[PrivateLinkResource]'... | class PrivateLinkResourcesListResult(Model):
| """A list of private link resources.
:param value: The collection value.
:type value:
list[~azure.mgmt.containerservice.v2020_12_01.models.PrivateLinkResource]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[PrivateLinkResource]'},
}
def __init__(self, *, value=Non... | super(PrivateLinkResource, self).__init__(**kwargs)
self.id = id
self.name = name
self.type = type
self.group_id = group_id
self.required_members = required_members
self.private_link_service_id = None
class PrivateLinkResourcesListResult(Model):
| 64 | 64 | 121 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PrivateLinkResourcesListResult | PrivateLinkResourcesListResult | 2,754 | 2,768 | 2,754 | 2,754 | 3e96781dca43a741a96d90205209ce3ebd6cb3e0 | bigcode/the-stack | train |
c6842e32864c8891da6c470d | train | class | class ManagedClusterPropertiesAutoScalerProfile(Model):
"""Parameters to be applied to the cluster-autoscaler when enabled.
:param balance_similar_node_groups:
:type balance_similar_node_groups: str
:param expander: Possible values include: 'least-waste', 'most-pods',
'priority', 'random'
:typ... | class ManagedClusterPropertiesAutoScalerProfile(Model):
| """Parameters to be applied to the cluster-autoscaler when enabled.
:param balance_similar_node_groups:
:type balance_similar_node_groups: str
:param expander: Possible values include: 'least-waste', 'most-pods',
'priority', 'random'
:type expander: str or
~azure.mgmt.containerservice.v20... | os_type="Linux", upgrades=None, **kwargs) -> None:
super(ManagedClusterPoolUpgradeProfile, self).__init__(**kwargs)
self.kubernetes_version = kubernetes_version
self.name = name
self.os_type = os_type
self.upgrades = upgrades
class ManagedClusterPoolUpgradeProfileUpgradesItem(... | 256 | 256 | 1,231 | 9 | 246 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPropertiesAutoScalerProfile | ManagedClusterPropertiesAutoScalerProfile | 2,306 | 2,385 | 2,306 | 2,306 | 712d54afe9ee8e268a020f9b858909f478337f05 | bigcode/the-stack | train |
83eda652c22aa0701c94324d | train | class | class ManagedClusterLoadBalancerProfileOutboundIPPrefixes(Model):
"""Desired outbound IP Prefix resources for the cluster load balancer.
:param public_ip_prefixes: A list of public IP prefix resources.
:type public_ip_prefixes:
list[~azure.mgmt.containerservice.v2020_12_01.models.ResourceReference]
... | class ManagedClusterLoadBalancerProfileOutboundIPPrefixes(Model):
| """Desired outbound IP Prefix resources for the cluster load balancer.
:param public_ip_prefixes: A list of public IP prefix resources.
:type public_ip_prefixes:
list[~azure.mgmt.containerservice.v2020_12_01.models.ResourceReference]
"""
_attribute_map = {
'public_ip_prefixes': {'key'... | 'type': 'int'},
}
def __init__(self, *, count: int=1, **kwargs) -> None:
super(ManagedClusterLoadBalancerProfileManagedOutboundIPs, self).__init__(**kwargs)
self.count = count
class ManagedClusterLoadBalancerProfileOutboundIPPrefixes(Model):
| 64 | 64 | 154 | 11 | 52 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterLoadBalancerProfileOutboundIPPrefixes | ManagedClusterLoadBalancerProfileOutboundIPPrefixes | 2,086 | 2,100 | 2,086 | 2,086 | 5d24f9d7b728a00db64f1a810fbbd2bb09653a29 | bigcode/the-stack | train |
414a8b633821114bdb95e8bc | train | class | class MaintenanceConfiguration(SubResource):
"""maintenance configuration.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource ID.
:vartype id: str
:ivar name: The name of the resource that is unique within a resource
group. This name... | class MaintenanceConfiguration(SubResource):
| """maintenance configuration.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource ID.
:vartype id: str
:ivar name: The name of the resource that is unique within a resource
group. This name can be used to access the resource.
:var... | _size_mb': {'key': 'swapFileSizeMB', 'type': 'int'},
}
def __init__(self, *, sysctls=None, transparent_huge_page_enabled: str=None, transparent_huge_page_defrag: str=None, swap_file_size_mb: int=None, **kwargs) -> None:
super(LinuxOSConfig, self).__init__(**kwargs)
self.sysctls = sysctls
... | 138 | 138 | 463 | 6 | 131 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | MaintenanceConfiguration | MaintenanceConfiguration | 1,003 | 1,047 | 1,003 | 1,003 | 742e4bc3370bca430e8da607505be7a371d4b350 | bigcode/the-stack | train |
5ec20cf30e84e5bb98324b31 | train | class | class ManagedClusterLoadBalancerProfileOutboundIPs(Model):
"""Desired outbound IP resources for the cluster load balancer.
:param public_ips: A list of public IP resources.
:type public_ips:
list[~azure.mgmt.containerservice.v2020_12_01.models.ResourceReference]
"""
_attribute_map = {
... | class ManagedClusterLoadBalancerProfileOutboundIPs(Model):
| """Desired outbound IP resources for the cluster load balancer.
:param public_ips: A list of public IP resources.
:type public_ips:
list[~azure.mgmt.containerservice.v2020_12_01.models.ResourceReference]
"""
_attribute_map = {
'public_ips': {'key': 'publicIPs', 'type': '[ResourceRefer... | '},
}
def __init__(self, *, public_ip_prefixes=None, **kwargs) -> None:
super(ManagedClusterLoadBalancerProfileOutboundIPPrefixes, self).__init__(**kwargs)
self.public_ip_prefixes = public_ip_prefixes
class ManagedClusterLoadBalancerProfileOutboundIPs(Model):
| 64 | 64 | 137 | 10 | 53 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterLoadBalancerProfileOutboundIPs | ManagedClusterLoadBalancerProfileOutboundIPs | 2,103 | 2,117 | 2,103 | 2,103 | 8fdd4511c9593f36ae4fe7695d18191b318b15e8 | bigcode/the-stack | train |
958240ecd0684d6503fbb2e1 | train | class | class AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem(Model):
"""AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.
:param default: Whether this version is the default agent pool version.
:type default: bool
:param kubernetes_version: Kubernetes version (major, minor, patch).
:typ... | class AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem(Model):
| """AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.
:param default: Whether this version is the default agent pool version.
:type default: bool
:param kubernetes_version: Kubernetes version (major, minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes vers... | init__(self, *, agent_pool_versions=None, **kwargs) -> None:
super(AgentPoolAvailableVersions, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.agent_pool_versions = agent_pool_versions
class AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem(... | 71 | 71 | 237 | 12 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem | AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem | 341 | 362 | 341 | 341 | 87f47021caaa0a6e176c48553c2aa62cabfef7fd | bigcode/the-stack | train |
8a8cc346270551f53fbe3ebd | train | class | class PrivateEndpointConnectionListResult(Model):
"""A list of private endpoint connections.
:param value: The collection value.
:type value:
list[~azure.mgmt.containerservice.v2020_12_01.models.PrivateEndpointConnection]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[Priv... | class PrivateEndpointConnectionListResult(Model):
| """A list of private endpoint connections.
:param value: The collection value.
:type value:
list[~azure.mgmt.containerservice.v2020_12_01.models.PrivateEndpointConnection]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'},
}
def __init__(... | self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.provisioning_state = None
self.private_endpoint = private_endpoint
self.private_link_service_connection_state = private_link_service_connection_state
class PrivateEndpointConnectionListResult(... | 64 | 64 | 121 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PrivateEndpointConnectionListResult | PrivateEndpointConnectionListResult | 2,693 | 2,707 | 2,693 | 2,693 | 3793f5ea93935e3d99fa4927c65bb1930689d3c6 | bigcode/the-stack | train |
925e3e59c870525b893293bb | train | class | class TagsObject(Model):
"""Tags object for patch operations.
:param tags: Resource tags.
:type tags: dict[str, str]
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, *, tags=None, **kwargs) -> None:
super(TagsObject, self).__init__(**kw... | class TagsObject(Model):
| """Tags object for patch operations.
:param tags: Resource tags.
:type tags: dict[str, str]
"""
_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, *, tags=None, **kwargs) -> None:
super(TagsObject, self).__init__(**kwargs)
self.tags =... | )
self.created_by = created_by
self.created_by_type = created_by_type
self.created_at = created_at
self.last_modified_by = last_modified_by
self.last_modified_by_type = last_modified_by_type
self.last_modified_at = last_modified_at
class TagsObject(Model):
| 64 | 64 | 94 | 5 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | TagsObject | TagsObject | 2,988 | 3,001 | 2,988 | 2,988 | 46e6c461999764d4f0c0d41cc3c9a703047bde4e | bigcode/the-stack | train |
a48dfd121431fae4732be2a1 | train | class | class ManagedClusterServicePrincipalProfile(Model):
"""Information about a service principal identity for the cluster to use for
manipulating Azure APIs.
All required parameters must be populated in order to send to Azure.
:param client_id: Required. The ID for the service principal.
:type client_... | class ManagedClusterServicePrincipalProfile(Model):
| """Information about a service principal identity for the cluster to use for
manipulating Azure APIs.
All required parameters must be populated in order to send to Azure.
:param client_id: Required. The ID for the service principal.
:type client_id: str
:param secret: The secret password assoc... | str=None, client_id: str=None, object_id: str=None, **kwargs) -> None:
super(ManagedClusterPropertiesIdentityProfileValue, self).__init__(resource_id=resource_id, client_id=client_id, object_id=object_id, **kwargs)
class ManagedClusterServicePrincipalProfile(Model):
| 64 | 64 | 206 | 8 | 56 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterServicePrincipalProfile | ManagedClusterServicePrincipalProfile | 2,409 | 2,434 | 2,409 | 2,409 | a3e8c76843c39d2be54bf8d2529ec2b55a8dbcca | bigcode/the-stack | train |
ffb383826e9f18144f36e2a7 | train | class | class OperationValue(Model):
"""Describes the properties of a Compute Operation value.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar origin: The origin of the compute operation.
:vartype origin: str
:ivar name: The name of the compute operation.
... | class OperationValue(Model):
| """Describes the properties of a Compute Operation value.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar origin: The origin of the compute operation.
:vartype origin: str
:ivar name: The name of the compute operation.
:vartype name: str
:i... | type': 'str'},
'admin_password': {'key': 'adminPassword', 'type': 'str'},
'license_type': {'key': 'licenseType', 'type': 'str'},
}
def __init__(self, *, admin_username: str, admin_password: str=None, license_type=None, **kwargs) -> None:
super(ManagedClusterWindowsProfile, self).__init_... | 117 | 117 | 393 | 5 | 111 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | OperationValue | OperationValue | 2,557 | 2,602 | 2,557 | 2,557 | 871ba687b1e9f6d75186b56a1aea5281014c7434 | bigcode/the-stack | train |
d1ffcfd49b05c24c2b005d8d | train | class | class ManagedClusterWindowsProfile(Model):
"""Profile for Windows VMs in the container service cluster.
All required parameters must be populated in order to send to Azure.
:param admin_username: Required. Specifies the name of the administrator
account. <br><br> **restriction:** Cannot end in "." <b... | class ManagedClusterWindowsProfile(Model):
| """Profile for Windows VMs in the container service cluster.
All required parameters must be populated in order to send to Azure.
:param admin_username: Required. Specifies the name of the administrator
account. <br><br> **restriction:** Cannot end in "." <br><br> **Disallowed
values:** "adminis... | _attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'control_plane_profile': {'key': 'properties.controlPlaneProfile', 'type': 'ManagedClusterPoolUpgradeProfile'},
'agent_pool_profiles': {'key'... | 189 | 189 | 630 | 7 | 181 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterWindowsProfile | ManagedClusterWindowsProfile | 2,510 | 2,554 | 2,510 | 2,510 | 39834a64bf4bb61d0a9b6813b0148c83752ae1a8 | bigcode/the-stack | train |
c244fc43caa19f8e0b16b280 | train | class | class SystemData(Model):
"""Metadata pertaining to creation and last modification of the resource.
:param created_by: The identity that created the resource.
:type created_by: str
:param created_by_type: The type of identity that created the resource.
Possible values include: 'User', 'Application'... | class SystemData(Model):
| """Metadata pertaining to creation and last modification of the resource.
:param created_by: The identity that created the resource.
:type created_by: str
:param created_by_type: The type of identity that created the resource.
Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key... | 4_neigh_default_gc_thresh3
self.net_netfilter_nf_conntrack_max = net_netfilter_nf_conntrack_max
self.net_netfilter_nf_conntrack_buckets = net_netfilter_nf_conntrack_buckets
self.fs_inotify_max_user_watches = fs_inotify_max_user_watches
self.fs_file_max = fs_file_max
self.fs_aio_m... | 149 | 149 | 497 | 5 | 143 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | SystemData | SystemData | 2,946 | 2,985 | 2,946 | 2,946 | c8cd0c0cd33e84ff3d2b83dcf18ba45fa27f9b09 | bigcode/the-stack | train |
3d9ae0c7c9ad5b6a49bae869 | train | class | class UserAssignedIdentity(Model):
"""UserAssignedIdentity.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str
:param object_id: The object id of the user assigned identity... | class UserAssignedIdentity(Model):
| """UserAssignedIdentity.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str
:param object_id: The object id of the user assigned identity.
:type object_id: str
"""
... | Identity'},
}
def __init__(self, *, enabled: bool, config=None, **kwargs) -> None:
super(ManagedClusterAddonProfile, self).__init__(**kwargs)
self.enabled = enabled
self.config = config
self.identity = None
class UserAssignedIdentity(Model):
| 64 | 64 | 214 | 6 | 57 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | UserAssignedIdentity | UserAssignedIdentity | 1,387 | 1,408 | 1,387 | 1,387 | 993548ffe545e83638f5fe7b6cece296ea9d30ac | bigcode/the-stack | train |
ffb680f2637da31a3475ecb0 | train | class | class CredentialResults(Model):
"""The list of credential result response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar kubeconfigs: Base64-encoded Kubernetes configuration file.
:vartype kubeconfigs:
list[~azure.mgmt.containerservice.v2020_12_... | class CredentialResults(Model):
| """The list of credential result response.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar kubeconfigs: Base64-encoded Kubernetes configuration file.
:vartype kubeconfigs:
list[~azure.mgmt.containerservice.v2020_12_01.models.CredentialResult]
... | '},
'value': {'key': 'value', 'type': 'bytearray'},
}
def __init__(self, **kwargs) -> None:
super(CredentialResult, self).__init__(**kwargs)
self.name = None
self.value = None
class CredentialResults(Model):
| 64 | 64 | 163 | 5 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | CredentialResults | CredentialResults | 880 | 901 | 880 | 880 | a0c702a58341e72f9726b7bcccbffd35899a10c2 | bigcode/the-stack | train |
6f6d1df9cdeb83c38b5122b2 | train | class | class ManagedClusterAADProfile(Model):
"""AADProfile specifies attributes for Azure Active Directory integration.
:param managed: Whether to enable managed AAD.
:type managed: bool
:param enable_azure_rbac: Whether to enable Azure RBAC for Kubernetes
authorization.
:type enable_azure_rbac: boo... | class ManagedClusterAADProfile(Model):
| """AADProfile specifies attributes for Azure Active Directory integration.
:param managed: Whether to enable managed AAD.
:type managed: bool
:param enable_azure_rbac: Whether to enable Azure RBAC for Kubernetes
authorization.
:type enable_azure_rbac: bool
:param admin_group_object_ids: AA... | = service_principal_profile
self.addon_profiles = addon_profiles
self.pod_identity_profile = pod_identity_profile
self.node_resource_group = node_resource_group
self.enable_rbac = enable_rbac
self.enable_pod_security_policy = enable_pod_security_policy
self.network_profi... | 153 | 153 | 511 | 7 | 145 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAADProfile | ManagedClusterAADProfile | 1,266 | 1,306 | 1,266 | 1,266 | 94ed085b2f07f4dadf925f51df8bc1219cd4bc88 | bigcode/the-stack | train |
ee9c9471a3adc89d70cdfb64 | train | class | class ContainerServiceNetworkProfile(Model):
"""Profile of network configuration.
:param network_plugin: Network plugin used for building Kubernetes
network. Possible values include: 'azure', 'kubenet'. Default value:
"kubenet" .
:type network_plugin: str or
~azure.mgmt.containerservice.v202... | class ContainerServiceNetworkProfile(Model):
| """Profile of network configuration.
:param network_plugin: Network plugin used for building Kubernetes
network. Possible values include: 'azure', 'kubenet'. Default value:
"kubenet" .
:type network_plugin: str or
~azure.mgmt.containerservice.v2020_12_01.models.NetworkPlugin
:param netwo... | 'int'},
'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'},
'first_consecutive_static_ip': {'key': 'firstConsecutiveStaticIP', 'type': 'str'},
'storage_profile': {'key': 'storageProfile', 'type': 'str'},
'fqdn': {'key': 'fqdn', 'type': 'str'},
}
def __init__(self, *, dns_... | 256 | 256 | 1,297 | 7 | 248 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceNetworkProfile | ContainerServiceNetworkProfile | 693 | 769 | 693 | 693 | e82acf9030ea99d0e680286aa97a5dc21b39c5c8 | bigcode/the-stack | train |
29a86e8f773519f0ba73f491 | train | class | class ManagedClusterAccessProfile(Resource):
"""Managed cluster Access Profile.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource Id
:vartype id: str
:ivar name: R... | class ManagedClusterAccessProfile(Resource):
| """Managed cluster Access Profile.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar... | _secret: str=None, tenant_id: str=None, **kwargs) -> None:
super(ManagedClusterAADProfile, self).__init__(**kwargs)
self.managed = managed
self.enable_azure_rbac = enable_azure_rbac
self.admin_group_object_ids = admin_group_object_ids
self.client_app_id = client_app_id
se... | 111 | 111 | 370 | 7 | 103 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAccessProfile | ManagedClusterAccessProfile | 1,309 | 1,349 | 1,309 | 1,309 | 33516e0fcd05a846db428898da52fd8d90ef87cb | bigcode/the-stack | train |
c9079154f7c4bd8ef9127952 | train | class | class PowerState(Model):
"""Describes the Power State of the cluster.
:param code: Tells whether the cluster is Running or Stopped. Possible
values include: 'Running', 'Stopped'
:type code: str or ~azure.mgmt.containerservice.v2020_12_01.models.Code
"""
_attribute_map = {
'code': {'ke... | class PowerState(Model):
| """Describes the Power State of the cluster.
:param code: Tells whether the cluster is Running or Stopped. Possible
values include: 'Running', 'Stopped'
:type code: str or ~azure.mgmt.containerservice.v2020_12_01.models.Code
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'... | __init__(self, **kwargs) -> None:
super(OperationValue, self).__init__(**kwargs)
self.origin = None
self.name = None
self.operation = None
self.resource = None
self.description = None
self.provider = None
class PowerState(Model):
| 64 | 64 | 130 | 5 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PowerState | PowerState | 2,605 | 2,619 | 2,605 | 2,605 | e2f6520cb4dde1cd7363be5b8fd5e2de9678584d | bigcode/the-stack | train |
59524a35d670e64b5395b997 | train | class | class ManagedClusterAgentPoolProfile(ManagedClusterAgentPoolProfileProperties):
"""Profile for the container service agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param coun... | class ManagedClusterAgentPoolProfile(ManagedClusterAgentPoolProfileProperties):
| """Profile for the container service agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param count: Number of agents (VMs) to host docker containers. Allowed
values must be... | _id = pod_subnet_id
self.max_pods = max_pods
self.os_type = os_type
self.max_count = max_count
self.min_count = min_count
self.enable_auto_scaling = enable_auto_scaling
self.type = type
self.mode = mode
self.orchestrator_version = orchestrator_version
... | 256 | 256 | 3,946 | 14 | 241 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAgentPoolProfile | ManagedClusterAgentPoolProfile | 1,672 | 1,886 | 1,672 | 1,672 | a8f4f23a737cc0b03f7d9c3db2b547e1a3a8d967 | bigcode/the-stack | train |
d570fa7ee834e4e25c8d7fcf | train | class | class ManagedClusterIdentity(Model):
"""Identity for the managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of the system assigned identity which
is used by master components.
:vartype principal_id: str... | class ManagedClusterIdentity(Model):
| """Identity for the managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar principal_id: The principal id of the system assigned identity which
is used by master components.
:vartype principal_id: str
:ivar tenant_id: The tenant id o... | = private_dns_zone
class ManagedClusterAutoUpgradeProfile(Model):
"""Auto upgrade profile for a managed cluster.
:param upgrade_channel: upgrade channel for auto upgrade. Possible values
include: 'rapid', 'stable', 'patch', 'none'
:type upgrade_channel: str or
~azure.mgmt.containerservice.v202... | 159 | 159 | 532 | 6 | 152 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterIdentity | ManagedClusterIdentity | 1,933 | 1,979 | 1,933 | 1,933 | f1368e66c56a0fb15c8e34d4397fd12422e8782a | bigcode/the-stack | train |
f68b907c551fe6a4adce37c6 | train | class | class ManagedClusterPodIdentityProvisioningInfo(Model):
"""ManagedClusterPodIdentityProvisioningInfo.
:param error: Pod identity assignment error (if any).
:type error: ~azure.mgmt.containerservice.v2020_12_01.models.CloudError
"""
_attribute_map = {
'error': {'key': 'error', 'type': 'Clou... | class ManagedClusterPodIdentityProvisioningInfo(Model):
| """ManagedClusterPodIdentityProvisioningInfo.
:param error: Pod identity assignment error (if any).
:type error: ~azure.mgmt.containerservice.v2020_12_01.models.CloudError
"""
_attribute_map = {
'error': {'key': 'error', 'type': 'CloudError'},
}
def __init__(self, *, error=None, *... | None:
super(ManagedClusterPodIdentityProfile, self).__init__(**kwargs)
self.enabled = enabled
self.user_assigned_identities = user_assigned_identities
self.user_assigned_identity_exceptions = user_assigned_identity_exceptions
class ManagedClusterPodIdentityProvisioningInfo(Model):
| 64 | 64 | 124 | 10 | 53 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPodIdentityProvisioningInfo | ManagedClusterPodIdentityProvisioningInfo | 2,229 | 2,242 | 2,229 | 2,229 | 2b7b308500d74f35fbae9a8e293b1551c107d2fd | bigcode/the-stack | train |
f4e72e2062537074ad06f21d | train | class | class ManagedClusterPoolUpgradeProfileUpgradesItem(Model):
"""ManagedClusterPoolUpgradeProfileUpgradesItem.
:param kubernetes_version: Kubernetes version (major, minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes version is currently in preview.
:type is_preview: boo... | class ManagedClusterPoolUpgradeProfileUpgradesItem(Model):
| """ManagedClusterPoolUpgradeProfileUpgradesItem.
:param kubernetes_version: Kubernetes version (major, minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes version is currently in preview.
:type is_preview: bool
"""
_attribute_map = {
'kubernetes_versi... | kwargs) -> None:
super(ManagedClusterPoolUpgradeProfile, self).__init__(**kwargs)
self.kubernetes_version = kubernetes_version
self.name = name
self.os_type = os_type
self.upgrades = upgrades
class ManagedClusterPoolUpgradeProfileUpgradesItem(Model):
| 64 | 64 | 185 | 11 | 52 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPoolUpgradeProfileUpgradesItem | ManagedClusterPoolUpgradeProfileUpgradesItem | 2,286 | 2,303 | 2,286 | 2,286 | 881500c386031fb600551379f02bebee938b19a9 | bigcode/the-stack | train |
bf96110baf44fd503fce6a40 | train | class | class PrivateLinkResource(Model):
"""A private link resource.
Variables are only populated by the server, and will be ignored when
sending a request.
:param id: The ID of the private link resource.
:type id: str
:param name: The name of the private link resource.
:type name: str
:param... | class PrivateLinkResource(Model):
| """A private link resource.
Variables are only populated by the server, and will be ignored when
sending a request.
:param id: The ID of the private link resource.
:type id: str
:param name: The name of the private link resource.
:type name: str
:param type: The resource type.
:typ... | ):
"""A list of private endpoint connections.
:param value: The collection value.
:type value:
list[~azure.mgmt.containerservice.v2020_12_01.models.PrivateEndpointConnection]
"""
_attribute_map = {
'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'},
}
def __init... | 120 | 120 | 403 | 6 | 113 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PrivateLinkResource | PrivateLinkResource | 2,710 | 2,751 | 2,710 | 2,710 | 4c441a733f3f21c2f82bab8fe5ca3a3376d90acb | bigcode/the-stack | train |
4c15ceb36a720d4ea5234628 | train | class | class TimeInWeek(Model):
"""Time in a week.
:param day: A day in a week. Possible values include: 'Sunday', 'Monday',
'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
:type day: str or ~azure.mgmt.containerservice.v2020_12_01.models.WeekDay
:param hour_slots: hour slots in a day.
:type... | class TimeInWeek(Model):
| """Time in a week.
:param day: A day in a week. Possible values include: 'Sunday', 'Monday',
'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
:type day: str or ~azure.mgmt.containerservice.v2020_12_01.models.WeekDay
:param hour_slots: hour slots in a day.
:type hour_slots: list[int]
... | _map = {
'tags': {'key': 'tags', 'type': '{str}'},
}
def __init__(self, *, tags=None, **kwargs) -> None:
super(TagsObject, self).__init__(**kwargs)
self.tags = tags
class TimeInWeek(Model):
| 64 | 64 | 190 | 6 | 57 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | TimeInWeek | TimeInWeek | 3,004 | 3,022 | 3,004 | 3,004 | b576aef826bb340c0e704d40d87da2150d3a2df9 | bigcode/the-stack | train |
69eb096dde82cc555344f53d | train | class | class ManagedClusterPropertiesIdentityProfileValue(UserAssignedIdentity):
"""ManagedClusterPropertiesIdentityProfileValue.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str
... | class ManagedClusterPropertiesIdentityProfileValue(UserAssignedIdentity):
| """ManagedClusterPropertiesIdentityProfileValue.
:param resource_id: The resource id of the user assigned identity.
:type resource_id: str
:param client_id: The client id of the user assigned identity.
:type client_id: str
:param object_id: The object id of the user assigned identity.
:type... | _down_unready_time = scale_down_unready_time
self.scale_down_utilization_threshold = scale_down_utilization_threshold
self.skip_nodes_with_local_storage = skip_nodes_with_local_storage
self.skip_nodes_with_system_pods = skip_nodes_with_system_pods
class ManagedClusterPropertiesIdentityProfileVal... | 66 | 66 | 220 | 11 | 54 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPropertiesIdentityProfileValue | ManagedClusterPropertiesIdentityProfileValue | 2,388 | 2,406 | 2,388 | 2,388 | 4e44ce0b98e5c209283fea6a9db291acf2db0c01 | bigcode/the-stack | train |
3efeb909fa4d1c2a534918c7 | train | class | class ManagedClusterAddonProfile(Model):
"""A Kubernetes add-on profile for a managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param enabled: Required. Whether the add-on ... | class ManagedClusterAddonProfile(Model):
| """A Kubernetes add-on profile for a managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param enabled: Required. Whether the add-on is enabled or not.
:type enabled: boo... | {'key': 'properties.kubeConfig', 'type': 'bytearray'},
}
def __init__(self, *, location: str, tags=None, kube_config: bytearray=None, **kwargs) -> None:
super(ManagedClusterAccessProfile, self).__init__(location=location, tags=tags, **kwargs)
self.kube_config = kube_config
class ManagedCluster... | 85 | 85 | 286 | 7 | 77 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAddonProfile | ManagedClusterAddonProfile | 1,352 | 1,384 | 1,352 | 1,352 | 99696ad13624a62d7be7f2853775c7d93e8801bc | bigcode/the-stack | train |
b6798f811afd76835ec1938d | train | class | class ContainerServiceLinuxProfile(Model):
"""Profile for Linux VMs in the container service cluster.
All required parameters must be populated in order to send to Azure.
:param admin_username: Required. The administrator username to use for
Linux VMs.
:type admin_username: str
:param ssh: Re... | class ContainerServiceLinuxProfile(Model):
| """Profile for Linux VMs in the container service cluster.
All required parameters must be populated in order to send to Azure.
:param admin_username: Required. The administrator username to use for
Linux VMs.
:type admin_username: str
:param ssh: Required. SSH configuration for Linux-based V... | {
'vm_diagnostics': {'key': 'vmDiagnostics', 'type': 'ContainerServiceVMDiagnostics'},
}
def __init__(self, *, vm_diagnostics, **kwargs) -> None:
super(ContainerServiceDiagnosticsProfile, self).__init__(**kwargs)
self.vm_diagnostics = vm_diagnostics
class ContainerServiceLinuxProfile(M... | 75 | 75 | 253 | 7 | 67 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceLinuxProfile | ContainerServiceLinuxProfile | 547 | 574 | 547 | 547 | f0675ac47e8dc68d5145aefb32a53aed2b2aa27e | bigcode/the-stack | train |
180361e8fcdda2147adaea8c | train | class | class AgentPoolUpgradeProfilePropertiesUpgradesItem(Model):
"""AgentPoolUpgradeProfilePropertiesUpgradesItem.
:param kubernetes_version: Kubernetes version (major, minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes version is currently in preview.
:type is_preview: b... | class AgentPoolUpgradeProfilePropertiesUpgradesItem(Model):
| """AgentPoolUpgradeProfilePropertiesUpgradesItem.
:param kubernetes_version: Kubernetes version (major, minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes version is currently in preview.
:type is_preview: bool
"""
_attribute_map = {
'kubernetes_vers... | = None
self.name = None
self.type = None
self.kubernetes_version = kubernetes_version
self.os_type = os_type
self.upgrades = upgrades
self.latest_node_image_version = latest_node_image_version
class AgentPoolUpgradeProfilePropertiesUpgradesItem(Model):
| 64 | 64 | 185 | 11 | 52 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | AgentPoolUpgradeProfilePropertiesUpgradesItem | AgentPoolUpgradeProfilePropertiesUpgradesItem | 425 | 442 | 425 | 425 | fc0ae2eb3e2503258bbbb45be70d40f3865e768d | bigcode/the-stack | train |
ac3ae3e71d2b5b37d02ca040 | train | class | class ManagedClusterPodIdentity(Model):
"""ManagedClusterPodIdentity.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. Name of the pod identity.
:type name: str
... | class ManagedClusterPodIdentity(Model):
| """ManagedClusterPodIdentity.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param name: Required. Name of the pod identity.
:type name: str
:param namespace: Required. Namespace... | ClusterLoadBalancerProfileOutboundIPs(Model):
"""Desired outbound IP resources for the cluster load balancer.
:param public_ips: A list of public IP resources.
:type public_ips:
list[~azure.mgmt.containerservice.v2020_12_01.models.ResourceReference]
"""
_attribute_map = {
'public_ips'... | 142 | 142 | 475 | 7 | 134 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPodIdentity | ManagedClusterPodIdentity | 2,120 | 2,167 | 2,120 | 2,120 | 34a25c1634d79629309017faab8e19493e40ba9c | bigcode/the-stack | train |
6f20584a851990630bffda2d | train | class | class SubResource(Model):
"""Reference to another subresource.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource ID.
:vartype id: str
:ivar name: The name of the resource that is unique within a resource
group. This name can be used... | class SubResource(Model):
| """Reference to another subresource.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Resource ID.
:vartype id: str
:ivar name: The name of the resource that is unique within a resource
group. This name can be used to access the resource.
... | License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serializat... | 71 | 71 | 238 | 5 | 65 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | SubResource | SubResource | 16 | 47 | 16 | 16 | a95c9477c13f5026d28ea41a08f7a800cd1c683e | bigcode/the-stack | train |
7b420b9a6be36375e873aafe | train | class | class AgentPoolAvailableVersions(Model):
"""The list of available versions for an agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Id of the agent pool available versions.
:vartype id: str
:ivar name: Name of the agent pool available... | class AgentPoolAvailableVersions(Model):
| """The list of available versions for an agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: Id of the agent pool available versions.
:vartype id: str
:ivar name: Name of the agent pool available versions.
:vartype name: str
:iv... | _policy = scale_set_eviction_policy
self.spot_max_price = spot_max_price
self.tags = tags
self.node_labels = node_labels
self.node_taints = node_taints
self.proximity_placement_group_id = proximity_placement_group_id
self.kubelet_config = kubelet_config
self.linux... | 101 | 101 | 337 | 7 | 93 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | AgentPoolAvailableVersions | AgentPoolAvailableVersions | 303 | 338 | 303 | 303 | 728cdb67c534e815b691144f2b882860e3f2c834 | bigcode/the-stack | train |
71c73dfdea438d6e5c3061e4 | train | class | class ContainerServiceSshPublicKey(Model):
"""Contains information about SSH certificate public key data.
All required parameters must be populated in order to send to Azure.
:param key_data: Required. Certificate public key used to authenticate
with VMs through SSH. The certificate must be in PEM fo... | class ContainerServiceSshPublicKey(Model):
| """Contains information about SSH certificate public key data.
All required parameters must be populated in order to send to Azure.
:param key_data: Required. Certificate public key used to authenticate
with VMs through SSH. The certificate must be in PEM format with or
without headers.
:typ... | ', 'type': '[ContainerServiceSshPublicKey]'},
}
def __init__(self, *, public_keys, **kwargs) -> None:
super(ContainerServiceSshConfiguration, self).__init__(**kwargs)
self.public_keys = public_keys
class ContainerServiceSshPublicKey(Model):
| 64 | 64 | 166 | 9 | 54 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceSshPublicKey | ContainerServiceSshPublicKey | 796 | 817 | 796 | 796 | 50c9111a47379bd4dcf74d2efe55755f5fd3d1c0 | bigcode/the-stack | train |
0990babe2a598c382340c823 | train | class | class ContainerServiceVMDiagnostics(Model):
"""Profile for diagnostics on the container service VMs.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param enabled: Required. Whether the V... | class ContainerServiceVMDiagnostics(Model):
| """Profile for diagnostics on the container service VMs.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param enabled: Required. Whether the VM diagnostic agent is provisioned
on th... | ': {'key': 'keyData', 'type': 'str'},
}
def __init__(self, *, key_data: str, **kwargs) -> None:
super(ContainerServiceSshPublicKey, self).__init__(**kwargs)
self.key_data = key_data
class ContainerServiceVMDiagnostics(Model):
| 67 | 67 | 226 | 8 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceVMDiagnostics | ContainerServiceVMDiagnostics | 820 | 849 | 820 | 820 | 650f890a4f6cd22212579e8f3b34ccb6ae48c36f | bigcode/the-stack | train |
c571d1a84f789a6aaea15db1 | train | class | class ManagedClusterLoadBalancerProfileManagedOutboundIPs(Model):
"""Desired managed outbound IPs for the cluster load balancer.
:param count: Desired number of outbound IP created/managed by Azure for
the cluster load balancer. Allowed values must be in the range of 1 to 100
(inclusive). The default... | class ManagedClusterLoadBalancerProfileManagedOutboundIPs(Model):
| """Desired managed outbound IPs for the cluster load balancer.
:param count: Desired number of outbound IP created/managed by Azure for
the cluster load balancer. Allowed values must be in the range of 1 to 100
(inclusive). The default value is 1. . Default value: 1 .
:type count: int
"""
... | outbound_ip_prefixes
self.outbound_ips = outbound_ips
self.effective_outbound_ips = effective_outbound_ips
self.allocated_outbound_ports = allocated_outbound_ports
self.idle_timeout_in_minutes = idle_timeout_in_minutes
class ManagedClusterLoadBalancerProfileManagedOutboundIPs(Model):
| 64 | 64 | 182 | 11 | 52 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterLoadBalancerProfileManagedOutboundIPs | ManagedClusterLoadBalancerProfileManagedOutboundIPs | 2,064 | 2,083 | 2,064 | 2,064 | 413e188f01c895810361110d2b77cecec3569009 | bigcode/the-stack | train |
b1a668bab7524e4391284c0d | train | class | class PrivateLinkServiceConnectionState(Model):
"""The state of a private link service connection.
:param status: The private link service connection status. Possible values
include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
:type status: str or
~azure.mgmt.containerservice.v2020_12_01.mo... | class PrivateLinkServiceConnectionState(Model):
| """The state of a private link service connection.
:param status: The private link service connection status. Possible values
include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
:type status: str or
~azure.mgmt.containerservice.v2020_12_01.models.ConnectionStatus
:param description: Th... | {'key': 'value', 'type': '[PrivateLinkResource]'},
}
def __init__(self, *, value=None, **kwargs) -> None:
super(PrivateLinkResourcesListResult, self).__init__(**kwargs)
self.value = value
class PrivateLinkServiceConnectionState(Model):
| 64 | 64 | 187 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PrivateLinkServiceConnectionState | PrivateLinkServiceConnectionState | 2,771 | 2,790 | 2,771 | 2,771 | 4ebad29b1482b7da8997223f765a9ab0960cf44a | bigcode/the-stack | train |
a203d54a13100f86386e60ef | train | class | class KubeletConfig(Model):
"""Kubelet configurations of agent nodes.
:param cpu_manager_policy: CPU Manager policy to use.
:type cpu_manager_policy: str
:param cpu_cfs_quota: Enable CPU CFS quota enforcement for containers that
specify CPU limits.
:type cpu_cfs_quota: bool
:param cpu_cfs_... | class KubeletConfig(Model):
| """Kubelet configurations of agent nodes.
:param cpu_manager_policy: CPU Manager policy to use.
:type cpu_manager_policy: str
:param cpu_cfs_quota: Enable CPU CFS quota enforcement for containers that
specify CPU limits.
:type cpu_cfs_quota: bool
:param cpu_cfs_quota_period: Sets CPU CFS q... | readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'value': {'key': 'value', 'type': 'bytearray'},
}
def __init__(self, **kwargs) -> None:
super(CredentialResult, self).__init__(**kwargs)
self.name = None
self.value = None
class Cre... | 256 | 256 | 925 | 7 | 248 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | KubeletConfig | KubeletConfig | 904 | 968 | 904 | 904 | ca70a99a76b42eb11992d3dea49c3ea724faee23 | bigcode/the-stack | train |
f585721ffe928dd9a6ae3775 | train | class | class ManagedClusterAgentPoolProfileProperties(Model):
"""Properties for the container service agent pool profile.
Variables are only populated by the server, and will be ignored when
sending a request.
:param count: Number of agents (VMs) to host docker containers. Allowed
values must be in the ... | class ManagedClusterAgentPoolProfileProperties(Model):
| """Properties for the container service agent pool profile.
Variables are only populated by the server, and will be ignored when
sending a request.
:param count: Number of agents (VMs) to host docker containers. Allowed
values must be in the range of 0 to 100 (inclusive) for user pools and in
... | )
self.resource_id = resource_id
self.client_id = client_id
self.object_id = object_id
class ManagedClusterAddonProfileIdentity(UserAssignedIdentity):
"""Information of user assigned identity used by this add-on.
:param resource_id: The resource id of the user assigned identity.
:... | 256 | 256 | 3,938 | 9 | 247 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAgentPoolProfileProperties | ManagedClusterAgentPoolProfileProperties | 1,432 | 1,669 | 1,432 | 1,432 | 8289dfc96d783c26f69883dc40135b9586fa5dc3 | bigcode/the-stack | train |
8e037c6ab770ab7c4bf002ae | train | class | class ContainerServiceDiagnosticsProfile(Model):
"""Profile for diagnostics on the container service cluster.
All required parameters must be populated in order to send to Azure.
:param vm_diagnostics: Required. Profile for diagnostics on the container
service VMs.
:type vm_diagnostics:
~azu... | class ContainerServiceDiagnosticsProfile(Model):
| """Profile for diagnostics on the container service cluster.
All required parameters must be populated in order to send to Azure.
:param vm_diagnostics: Required. Profile for diagnostics on the container
service VMs.
:type vm_diagnostics:
~azure.mgmt.containerservice.v2020_12_01.models.Conta... | message: str=None, target: str=None, details=None, **kwargs) -> None:
super(CloudErrorBody, self).__init__(**kwargs)
self.code = code
self.message = message
self.target = target
self.details = details
class ContainerServiceDiagnosticsProfile(Model):
| 64 | 64 | 175 | 7 | 56 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceDiagnosticsProfile | ContainerServiceDiagnosticsProfile | 523 | 544 | 523 | 523 | cdfe23cd9eb70c62b649516426c85fe7304aeae7 | bigcode/the-stack | train |
f25fa22f55d364cf45afbe4a | train | class | class ContainerServiceSshConfiguration(Model):
"""SSH configuration for Linux-based VMs running on Azure.
All required parameters must be populated in order to send to Azure.
:param public_keys: Required. The list of SSH public keys used to
authenticate with Linux-based VMs. Only expect one key speci... | class ContainerServiceSshConfiguration(Model):
| """SSH configuration for Linux-based VMs running on Azure.
All required parameters must be populated in order to send to Azure.
:param public_keys: Required. The list of SSH public keys used to
authenticate with Linux-based VMs. Only expect one key specified.
:type public_keys:
list[~azure.m... | ns_service_ip = dns_service_ip
self.docker_bridge_cidr = docker_bridge_cidr
self.outbound_type = outbound_type
self.load_balancer_sku = load_balancer_sku
self.load_balancer_profile = load_balancer_profile
class ContainerServiceSshConfiguration(Model):
| 64 | 64 | 188 | 8 | 55 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceSshConfiguration | ContainerServiceSshConfiguration | 772 | 793 | 772 | 772 | 03bf45406fb635d3dfa140885171b730766946d8 | bigcode/the-stack | train |
ed12e47b5a1558b683be3b5e | train | class | class ManagedClusterPoolUpgradeProfile(Model):
"""The list of available upgrade versions.
All required parameters must be populated in order to send to Azure.
:param kubernetes_version: Required. Kubernetes version (major, minor,
patch).
:type kubernetes_version: str
:param name: Pool name.
... | class ManagedClusterPoolUpgradeProfile(Model):
| """The list of available upgrade versions.
All required parameters must be populated in order to send to Azure.
:param kubernetes_version: Required. Kubernetes version (major, minor,
patch).
:type kubernetes_version: str
:param name: Pool name.
:type name: str
:param os_type: Required... | ManagedClusterPodIdentityProvisioningInfo.
:param error: Pod identity assignment error (if any).
:type error: ~azure.mgmt.containerservice.v2020_12_01.models.CloudError
"""
_attribute_map = {
'error': {'key': 'error', 'type': 'CloudError'},
}
def __init__(self, *, error=None, **kwargs... | 120 | 120 | 403 | 8 | 111 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterPoolUpgradeProfile | ManagedClusterPoolUpgradeProfile | 2,245 | 2,283 | 2,245 | 2,245 | 06a7d49ff862f15b4afae6a2183f8896f5dc664d | bigcode/the-stack | train |
b395abfa6fed862de6bc917a | train | class | class ContainerServiceMasterProfile(Model):
"""Profile for the container service master.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param count: Number of masters (VMs) in the contai... | class ContainerServiceMasterProfile(Model):
| """Profile for the container service master.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:param count: Number of masters (VMs) in the container service cluster.
Allowed values are... | Profile(Model):
"""Profile for Linux VMs in the container service cluster.
All required parameters must be populated in order to send to Azure.
:param admin_username: Required. The administrator username to use for
Linux VMs.
:type admin_username: str
:param ssh: Required. SSH configuration f... | 256 | 256 | 2,069 | 7 | 248 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ContainerServiceMasterProfile | ContainerServiceMasterProfile | 577 | 690 | 577 | 577 | 0ec005cc23704cecfc99a9dcf0fbf3ab03874375 | bigcode/the-stack | train |
f3614313e00a53aeb8a57cd0 | train | class | class PrivateEndpointConnection(Model):
"""A private endpoint connection.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: The ID of the private endpoint connection.
:vartype ... | class PrivateEndpointConnection(Model):
| """A private endpoint connection.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: The ID of the private endpoint connection.
:vartype id: str
:ivar name: The name of the ... | attribute_map = {
'code': {'key': 'code', 'type': 'str'},
}
def __init__(self, *, code=None, **kwargs) -> None:
super(PowerState, self).__init__(**kwargs)
self.code = code
class PrivateEndpoint(Model):
"""Private endpoint which a connection belongs to.
:param id: The resource... | 162 | 162 | 543 | 6 | 155 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | PrivateEndpointConnection | PrivateEndpointConnection | 2,638 | 2,690 | 2,638 | 2,638 | 15406fb4694104f312526ace85af2fa14e4070dd | bigcode/the-stack | train |
a43116101f3c1592b9894fa6 | train | class | class ManagedClusterSKU(Model):
"""ManagedClusterSKU.
:param name: Name of a managed cluster SKU. Possible values include:
'Basic'
:type name: str or
~azure.mgmt.containerservice.v2020_12_01.models.ManagedClusterSKUName
:param tier: Tier of a managed cluster SKU. Possible values include:
... | class ManagedClusterSKU(Model):
| """ManagedClusterSKU.
:param name: Name of a managed cluster SKU. Possible values include:
'Basic'
:type name: str or
~azure.mgmt.containerservice.v2020_12_01.models.ManagedClusterSKUName
:param tier: Tier of a managed cluster SKU. Possible values include:
'Paid', 'Free'
:type tier: ... | str'},
}
def __init__(self, *, client_id: str, secret: str=None, **kwargs) -> None:
super(ManagedClusterServicePrincipalProfile, self).__init__(**kwargs)
self.client_id = client_id
self.secret = secret
class ManagedClusterSKU(Model):
| 64 | 64 | 203 | 6 | 57 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterSKU | ManagedClusterSKU | 2,437 | 2,458 | 2,437 | 2,437 | 47c704ace56fc5df113c836c5b787c1c9f206769 | bigcode/the-stack | train |
2ef7610126d4c6cb53757a25 | train | class | class CloudError(Model):
"""An error response from the Container service.
:param error: Details about the error.
:type error:
~azure.mgmt.containerservice.v2020_12_01.models.CloudErrorBody
"""
_attribute_map = {
'error': {'key': 'error', 'type': 'CloudErrorBody'},
}
def __ini... | class CloudError(Model):
| """An error response from the Container service.
:param error: Details about the error.
:type error:
~azure.mgmt.containerservice.v2020_12_01.models.CloudErrorBody
"""
_attribute_map = {
'error': {'key': 'error', 'type': 'CloudErrorBody'},
}
def __init__(self, *, error=None, ... | 'maxSurge', 'type': 'str'},
}
def __init__(self, *, max_surge: str=None, **kwargs) -> None:
super(AgentPoolUpgradeSettings, self).__init__(**kwargs)
self.max_surge = max_surge
class CloudError(Model):
| 64 | 64 | 114 | 5 | 58 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | CloudError | CloudError | 462 | 476 | 462 | 462 | 22f9651b793c1c149a44f3276d4599c40e66e4f6 | bigcode/the-stack | train |
de881e82eda8e498bd12246c | train | class | class ManagedCluster(Resource):
"""Managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype na... | class ManagedCluster(Resource):
| """Managed cluster.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource... | name: str
:ivar type: Resource type
:vartype type: str
:param location: Required. Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
"""
_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'read... | 256 | 256 | 2,268 | 5 | 250 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedCluster | ManagedCluster | 1,094 | 1,263 | 1,094 | 1,094 | 128c7c632a10038453e3e4a32360df3b00822246 | bigcode/the-stack | train |
253f94ee96475b527be2a56a | train | class | class CloudErrorBody(Model):
"""An error response from the Container service.
:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in ... | class CloudErrorBody(Model):
| """An error response from the Container service.
:param code: An identifier for the error. Codes are invariant and are
intended to be consumed programmatically.
:type code: str
:param message: A message describing the error, intended to be suitable
for display in a user interface.
:type m... | error
class CloudErrorException(HttpOperationError):
"""Server responsed with exception of type: 'CloudError'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""
def __init__(self, deserialize, response, *args):
super(CloudErrorException, self).... | 89 | 89 | 299 | 6 | 83 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | CloudErrorBody | CloudErrorBody | 491 | 520 | 491 | 491 | 96bf67994d8673c74fdac74503cc5a821470f74f | bigcode/the-stack | train |
f4591e9526763b81888145cc | train | class | class AgentPoolUpgradeSettings(Model):
"""Settings for upgrading an agentpool.
:param max_surge: Count or percentage of additional nodes to be added
during upgrade. If empty uses AKS default
:type max_surge: str
"""
_attribute_map = {
'max_surge': {'key': 'maxSurge', 'type': 'str'},
... | class AgentPoolUpgradeSettings(Model):
| """Settings for upgrading an agentpool.
:param max_surge: Count or percentage of additional nodes to be added
during upgrade. If empty uses AKS default
:type max_surge: str
"""
_attribute_map = {
'max_surge': {'key': 'maxSurge', 'type': 'str'},
}
def __init__(self, *, max_sur... | ernetes_version: str=None, is_preview: bool=None, **kwargs) -> None:
super(AgentPoolUpgradeProfilePropertiesUpgradesItem, self).__init__(**kwargs)
self.kubernetes_version = kubernetes_version
self.is_preview = is_preview
class AgentPoolUpgradeSettings(Model):
| 64 | 64 | 129 | 7 | 56 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | AgentPoolUpgradeSettings | AgentPoolUpgradeSettings | 445 | 459 | 445 | 445 | 6b8424d451d7e31c034e7409cbb27f03b5e699df | bigcode/the-stack | train |
6401c31e25145b7eed6bf75f | train | class | class ManagedClusterAPIServerAccessProfile(Model):
"""Access profile for managed cluster API server.
:param authorized_ip_ranges: Authorized IP Ranges to kubernetes API
server.
:type authorized_ip_ranges: list[str]
:param enable_private_cluster: Whether to create the cluster as a private
clus... | class ManagedClusterAPIServerAccessProfile(Model):
| """Access profile for managed cluster API server.
:param authorized_ip_ranges: Authorized IP Ranges to kubernetes API
server.
:type authorized_ip_ranges: list[str]
:param enable_private_cluster: Whether to create the cluster as a private
cluster or not.
:type enable_private_cluster: bool
... | , tags=tags, node_labels=node_labels, node_taints=node_taints, proximity_placement_group_id=proximity_placement_group_id, kubelet_config=kubelet_config, linux_os_config=linux_os_config, enable_encryption_at_host=enable_encryption_at_host, **kwargs)
self.name = name
class ManagedClusterAPIServerAccessProfile(Mod... | 77 | 77 | 257 | 10 | 66 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterAPIServerAccessProfile | ManagedClusterAPIServerAccessProfile | 1,889 | 1,912 | 1,889 | 1,889 | 454db0bdaf261c088f2cf07da45622d4035e97e2 | bigcode/the-stack | train |
567fe65def3db2588162c2e7 | train | class | class AgentPoolUpgradeProfile(Model):
"""The list of available upgrades for an agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Id of the agent pool upgrade profile.
... | class AgentPoolUpgradeProfile(Model):
| """The list of available upgrades for an agent pool.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Id of the agent pool upgrade profile.
:vartype id: str
:ivar name: Na... | minor, patch).
:type kubernetes_version: str
:param is_preview: Whether Kubernetes version is currently in preview.
:type is_preview: bool
"""
_attribute_map = {
'default': {'key': 'default', 'type': 'bool'},
'kubernetes_version': {'key': 'kubernetesVersion', 'type': 'str'},
... | 185 | 185 | 618 | 7 | 177 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | AgentPoolUpgradeProfile | AgentPoolUpgradeProfile | 365 | 422 | 365 | 365 | 10a1f01925da6a98dd940564a1648a2fc7f9172c | bigcode/the-stack | train |
8290e6bfccfdebd803a3abba | train | class | class ManagedClusterUpgradeProfile(Model):
"""The list of available upgrades for compute pools.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Id of upgrade profile.
:vartyp... | class ManagedClusterUpgradeProfile(Model):
| """The list of available upgrades for compute pools.
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Id of upgrade profile.
:vartype id: str
:ivar name: Name of upgrade p... | :
'Paid', 'Free'
:type tier: str or
~azure.mgmt.containerservice.v2020_12_01.models.ManagedClusterSKUTier
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'tier': {'key': 'tier', 'type': 'str'},
}
def __init__(self, *, name=None, tier=None, **kwargs) -> None... | 134 | 134 | 449 | 7 | 126 | Mannan2812/azure-cli-extensions | src/aks-preview/azext_aks_preview/vendored_sdks/azure_mgmt_preview_aks/v2020_12_01/models/_models_py3.py | Python | ManagedClusterUpgradeProfile | ManagedClusterUpgradeProfile | 2,461 | 2,507 | 2,461 | 2,461 | 938d35fbf16f564ddb7cdad375210441e15e3811 | bigcode/the-stack | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.