body stringlengths 26 98.2k | body_hash int64 -9,222,864,604,528,158,000 9,221,803,474B | docstring stringlengths 1 16.8k | path stringlengths 5 230 | name stringlengths 1 96 | repository_name stringlengths 7 89 | lang stringclasses 1
value | body_without_docstring stringlengths 20 98.2k |
|---|---|---|---|---|---|---|---|
def mouseReleaseEvent(self, event):
'\n Safe Feed\n '
pass | 2,897,160,408,821,979,600 | Safe Feed | classes/jogwidget.py | mouseReleaseEvent | comgram/gerbil_gui | python | def mouseReleaseEvent(self, event):
'\n \n '
pass |
def run(seed=543, data_path='/tmp/cifar10', output_path='/tmp/output-cifar10/', model='resnet18', batch_size=512, momentum=0.9, weight_decay=0.0001, num_workers=12, num_epochs=24, learning_rate=0.4, num_warmup_epochs=4, validate_every=3, checkpoint_every=200, backend=None, resume_from=None, log_every_iters=15, nproc_pe... | -2,428,794,729,123,700,000 | Main entry to train an model on CIFAR10 dataset.
Args:
seed (int): random state seed to set. Default, 543.
data_path (str): input dataset path. Default, "/tmp/cifar10".
output_path (str): output path. Default, "/tmp/output-cifar10".
model (str): model name (from torchvision) to setup model to train. De... | examples/contrib/cifar10/main.py | run | HelioStrike/ignite | python | def run(seed=543, data_path='/tmp/cifar10', output_path='/tmp/output-cifar10/', model='resnet18', batch_size=512, momentum=0.9, weight_decay=0.0001, num_workers=12, num_epochs=24, learning_rate=0.4, num_warmup_epochs=4, validate_every=3, checkpoint_every=200, backend=None, resume_from=None, log_every_iters=15, nproc_pe... |
def test_lump_init(ctx_factory):
'\n Simple test to check that Lump initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
dim = 2
nel_1d = 4
from meshmode.mesh.generation import generate_regul... | -774,467,605,370,207,400 | Simple test to check that Lump initializer
creates the expected solution field. | test/test_init.py | test_lump_init | anderson2981/mirgecom | python | def test_lump_init(ctx_factory):
'\n Simple test to check that Lump initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
dim = 2
nel_1d = 4
from meshmode.mesh.generation import generate_regul... |
def test_vortex_init(ctx_factory):
'\n Simple test to check that Vortex2D initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
dim = 2
nel_1d = 4
from meshmode.mesh.generation import generate... | 5,725,629,722,062,752,000 | Simple test to check that Vortex2D initializer
creates the expected solution field. | test/test_init.py | test_vortex_init | anderson2981/mirgecom | python | def test_vortex_init(ctx_factory):
'\n Simple test to check that Vortex2D initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
dim = 2
nel_1d = 4
from meshmode.mesh.generation import generate... |
def test_shock_init(ctx_factory):
'\n Simple test to check that Shock1D initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 10
dim = 2
from meshmode.mesh.generation import generate_... | -983,791,910,415,503,500 | Simple test to check that Shock1D initializer
creates the expected solution field. | test/test_init.py | test_shock_init | anderson2981/mirgecom | python | def test_shock_init(ctx_factory):
'\n Simple test to check that Shock1D initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 10
dim = 2
from meshmode.mesh.generation import generate_... |
@pytest.mark.parametrize('dim', [1, 2, 3])
def test_uniform(ctx_factory, dim):
'\n Simple test to check that Uniform initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 2
from meshmode.... | 7,036,261,238,489,417,000 | Simple test to check that Uniform initializer
creates the expected solution field. | test/test_init.py | test_uniform | anderson2981/mirgecom | python | @pytest.mark.parametrize('dim', [1, 2, 3])
def test_uniform(ctx_factory, dim):
'\n Simple test to check that Uniform initializer\n creates the expected solution field.\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 2
from meshmode.... |
@pytest.mark.parametrize('dim', [1, 2, 3])
def test_pulse(ctx_factory, dim):
'\n Test of Gaussian pulse generator.\n If it looks, walks, and quacks like a duck, then ...\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 10
from meshmo... | 852,771,810,507,177,200 | Test of Gaussian pulse generator.
If it looks, walks, and quacks like a duck, then ... | test/test_init.py | test_pulse | anderson2981/mirgecom | python | @pytest.mark.parametrize('dim', [1, 2, 3])
def test_pulse(ctx_factory, dim):
'\n Test of Gaussian pulse generator.\n If it looks, walks, and quacks like a duck, then ...\n '
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(queue)
nel_1d = 10
from meshmo... |
def _to_container(cfg):
'\n mmdet will assert the type of dict/list.\n So convert omegaconf objects to dict/list.\n '
if isinstance(cfg, DictConfig):
cfg = OmegaConf.to_container(cfg, resolve=True)
from mmcv.utils import ConfigDict
return ConfigDict(cfg) | 5,467,841,335,562,911,000 | mmdet will assert the type of dict/list.
So convert omegaconf objects to dict/list. | detectron2/modeling/mmdet_wrapper.py | _to_container | KnightOfTheMoonlight/visdom4detectron2 | python | def _to_container(cfg):
'\n mmdet will assert the type of dict/list.\n So convert omegaconf objects to dict/list.\n '
if isinstance(cfg, DictConfig):
cfg = OmegaConf.to_container(cfg, resolve=True)
from mmcv.utils import ConfigDict
return ConfigDict(cfg) |
def __init__(self, backbone: Union[(nn.Module, Mapping)], neck: Union[(nn.Module, Mapping, None)]=None, *, pretrained_backbone: Optional[str]=None, output_shapes: List[ShapeSpec], output_names: Optional[List[str]]=None):
'\n Args:\n backbone: either a backbone module or a mmdet config dict that de... | 1,076,643,239,655,832,400 | Args:
backbone: either a backbone module or a mmdet config dict that defines a
backbone. The backbone takes a 4D image tensor and returns a
sequence of tensors.
neck: either a backbone module or a mmdet config dict that defines a
neck. The neck takes outputs of backbone and returns a
... | detectron2/modeling/mmdet_wrapper.py | __init__ | KnightOfTheMoonlight/visdom4detectron2 | python | def __init__(self, backbone: Union[(nn.Module, Mapping)], neck: Union[(nn.Module, Mapping, None)]=None, *, pretrained_backbone: Optional[str]=None, output_shapes: List[ShapeSpec], output_names: Optional[List[str]]=None):
'\n Args:\n backbone: either a backbone module or a mmdet config dict that de... |
def __init__(self, detector: Union[(nn.Module, Mapping)], *, size_divisibility=32, pixel_mean: Tuple[float], pixel_std: Tuple[float]):
'\n Args:\n detector: a mmdet detector, or a mmdet config dict that defines a detector.\n size_divisibility: pad input images to multiple of this number... | 8,680,013,071,488,949,000 | Args:
detector: a mmdet detector, or a mmdet config dict that defines a detector.
size_divisibility: pad input images to multiple of this number
pixel_mean: per-channel mean to normalize input image
pixel_std: per-channel stddev to normalize input image | detectron2/modeling/mmdet_wrapper.py | __init__ | KnightOfTheMoonlight/visdom4detectron2 | python | def __init__(self, detector: Union[(nn.Module, Mapping)], *, size_divisibility=32, pixel_mean: Tuple[float], pixel_std: Tuple[float]):
'\n Args:\n detector: a mmdet detector, or a mmdet config dict that defines a detector.\n size_divisibility: pad input images to multiple of this number... |
def handle_message(self, message):
'Respond to the user message by retriving documents from the knowledge base. \n \n Args:\n message ([type]): [description]\n '
query = message.text
(candidates, similarities) = self.vector_index.retrieve(query, self.topk)
selected = [candida... | 4,608,976,265,523,703,000 | Respond to the user message by retriving documents from the knowledge base.
Args:
message ([type]): [description] | Broca/faq_engine/agent.py | handle_message | lawRossi/Broca | python | def handle_message(self, message):
'Respond to the user message by retriving documents from the knowledge base. \n \n Args:\n message ([type]): [description]\n '
query = message.text
(candidates, similarities) = self.vector_index.retrieve(query, self.topk)
selected = [candida... |
def _deep_update_type_hint(node: Node, type_hint: Any) -> None:
'Ensure node is compatible with type_hint, mutating if necessary.'
from omegaconf import DictConfig, ListConfig
from ._utils import get_dict_key_value_types, get_list_element_type
if (type_hint is Any):
return
_shallow_validate_... | 7,486,164,471,862,268,000 | Ensure node is compatible with type_hint, mutating if necessary. | omegaconf/basecontainer.py | _deep_update_type_hint | gwenzek/omegaconf | python | def _deep_update_type_hint(node: Node, type_hint: Any) -> None:
from omegaconf import DictConfig, ListConfig
from ._utils import get_dict_key_value_types, get_list_element_type
if (type_hint is Any):
return
_shallow_validate_type_hint(node, type_hint)
(new_is_optional, new_ref_type) = _... |
def _deep_update_subnode(node: BaseContainer, key: Any, value_type_hint: Any) -> None:
'Get node[key] and ensure it is compatible with value_type_hint, mutating if necessary.'
subnode = node._get_node(key)
assert isinstance(subnode, Node)
if _is_special(subnode):
node._wrap_value_and_set(key, su... | 3,256,522,286,330,759,700 | Get node[key] and ensure it is compatible with value_type_hint, mutating if necessary. | omegaconf/basecontainer.py | _deep_update_subnode | gwenzek/omegaconf | python | def _deep_update_subnode(node: BaseContainer, key: Any, value_type_hint: Any) -> None:
subnode = node._get_node(key)
assert isinstance(subnode, Node)
if _is_special(subnode):
node._wrap_value_and_set(key, subnode._value(), value_type_hint)
subnode = node._get_node(key)
assert is... |
def _shallow_validate_type_hint(node: Node, type_hint: Any) -> None:
"Error if node's type, content and metadata are not compatible with type_hint."
from omegaconf import DictConfig, ListConfig, ValueNode
(is_optional, ref_type) = _resolve_optional(type_hint)
vk = get_value_kind(node)
if node._is_no... | -2,014,395,401,024,706,800 | Error if node's type, content and metadata are not compatible with type_hint. | omegaconf/basecontainer.py | _shallow_validate_type_hint | gwenzek/omegaconf | python | def _shallow_validate_type_hint(node: Node, type_hint: Any) -> None:
from omegaconf import DictConfig, ListConfig, ValueNode
(is_optional, ref_type) = _resolve_optional(type_hint)
vk = get_value_kind(node)
if node._is_none():
if (not is_optional):
value = _get_value(node)
... |
def _resolve_with_default(self, key: Union[(DictKeyType, int)], value: Node, default_value: Any=_DEFAULT_MARKER_) -> Any:
"returns the value with the specified key, like obj.key and obj['key']"
if _is_missing_value(value):
if (default_value is not _DEFAULT_MARKER_):
return default_value
... | -344,718,408,022,932,300 | returns the value with the specified key, like obj.key and obj['key'] | omegaconf/basecontainer.py | _resolve_with_default | gwenzek/omegaconf | python | def _resolve_with_default(self, key: Union[(DictKeyType, int)], value: Node, default_value: Any=_DEFAULT_MARKER_) -> Any:
if _is_missing_value(value):
if (default_value is not _DEFAULT_MARKER_):
return default_value
raise MissingMandatoryValue('Missing mandatory value: $FULL_KEY')
... |
def is_empty(self) -> bool:
'return true if config is empty'
return (len(self.__dict__['_content']) == 0) | 8,758,070,016,679,801,000 | return true if config is empty | omegaconf/basecontainer.py | is_empty | gwenzek/omegaconf | python | def is_empty(self) -> bool:
return (len(self.__dict__['_content']) == 0) |
@staticmethod
def _map_merge(dest: 'BaseContainer', src: 'BaseContainer') -> None:
'merge src into dest and return a new copy, does not modified input'
from omegaconf import AnyNode, DictConfig, ValueNode
assert isinstance(dest, DictConfig)
assert isinstance(src, DictConfig)
src_type = src._metadata... | -7,220,556,726,557,930,000 | merge src into dest and return a new copy, does not modified input | omegaconf/basecontainer.py | _map_merge | gwenzek/omegaconf | python | @staticmethod
def _map_merge(dest: 'BaseContainer', src: 'BaseContainer') -> None:
from omegaconf import AnyNode, DictConfig, ValueNode
assert isinstance(dest, DictConfig)
assert isinstance(src, DictConfig)
src_type = src._metadata.object_type
src_ref_type = get_ref_type(src)
assert (src_re... |
def _set_item_impl(self, key: Any, value: Any) -> None:
"\n Changes the value of the node key with the desired value. If the node key doesn't\n exist it creates a new one.\n "
from .nodes import AnyNode, ValueNode
if isinstance(value, Node):
do_deepcopy = (not self._get_flag('no... | 5,195,672,649,291,748,000 | Changes the value of the node key with the desired value. If the node key doesn't
exist it creates a new one. | omegaconf/basecontainer.py | _set_item_impl | gwenzek/omegaconf | python | def _set_item_impl(self, key: Any, value: Any) -> None:
"\n Changes the value of the node key with the desired value. If the node key doesn't\n exist it creates a new one.\n "
from .nodes import AnyNode, ValueNode
if isinstance(value, Node):
do_deepcopy = (not self._get_flag('no... |
def profile_config_file(binary_path: PathLike, config_path: PathLike, output_config_path: PathLike, progress_bar: bool=True, profile_filename: str='profile_info.txt', qos_filename: str='final_accuracy') -> None:
'Profile an HPVM configuration file with an HPVM binary,\n and write the updated configuration file t... | -4,053,751,064,055,455,000 | Profile an HPVM configuration file with an HPVM binary,
and write the updated configuration file to a given location.
The configuration file must have the baseline as the first configuration.
:param binary_path: Path to binary to be executed in profiling.
:param config_path: Path to config file (HPVM configuration for... | hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py | profile_config_file | vzyrianov/hpvm-autograd | python | def profile_config_file(binary_path: PathLike, config_path: PathLike, output_config_path: PathLike, progress_bar: bool=True, profile_filename: str='profile_info.txt', qos_filename: str='final_accuracy') -> None:
'Profile an HPVM configuration file with an HPVM binary,\n and write the updated configuration file t... |
def profile_configs(binary_path: PathLike, configs: Iterable['Config'], baseline_config: 'Config', progress_bar: bool=True, profile_filename: str='profile_info.txt', qos_filename: str='final_accuracy') -> None:
'Profile a sequence of HPVM configs.\n This function modifies argument `configs` in place.'
from t... | 7,706,032,283,908,009,000 | Profile a sequence of HPVM configs.
This function modifies argument `configs` in place. | hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py | profile_configs | vzyrianov/hpvm-autograd | python | def profile_configs(binary_path: PathLike, configs: Iterable['Config'], baseline_config: 'Config', progress_bar: bool=True, profile_filename: str='profile_info.txt', qos_filename: str='final_accuracy') -> None:
'Profile a sequence of HPVM configs.\n This function modifies argument `configs` in place.'
from t... |
def plot_hpvm_configs(config_path: PathLike, save_to: PathLike=None, show_qos_loss: bool=True, **fig_kwargs) -> plt.Figure:
"\n Plot the QoS-speedup information in an HPVM configuration file.\n It is recommended to profile the config file first (using `profile_configs`)\n to obtain real speedup numbers.\n ... | -218,414,508,651,769,120 | Plot the QoS-speedup information in an HPVM configuration file.
It is recommended to profile the config file first (using `profile_configs`)
to obtain real speedup numbers.
This function creates a `matplotlib.pyplot.Figure`, plots on it, and returns it.
:param config_path: Path to the config file (HPVM configuration f... | hpvm/projects/hpvm-profiler/hpvm_profiler/__init__.py | plot_hpvm_configs | vzyrianov/hpvm-autograd | python | def plot_hpvm_configs(config_path: PathLike, save_to: PathLike=None, show_qos_loss: bool=True, **fig_kwargs) -> plt.Figure:
"\n Plot the QoS-speedup information in an HPVM configuration file.\n It is recommended to profile the config file first (using `profile_configs`)\n to obtain real speedup numbers.\n ... |
def make_test_file(path: str, file_size=(- 1), file_name='') -> RetVal:
'Generate a test file containing nothing but zeroes. If the file size is negative, a random \n\tsize between 1 and 10 Kb will be chosen. If the file name is empty, a random one will be \n\tgenerated.\n\n\tReturns:\n\t\tname: (str) name of the t... | -5,435,547,621,792,436,000 | Generate a test file containing nothing but zeroes. If the file size is negative, a random
size between 1 and 10 Kb will be chosen. If the file name is empty, a random one will be
generated.
Returns:
name: (str) name of the test file generated
size: (int) size of the test file generated | tests/integration/test_fscmds.py | make_test_file | mensago/mensagod | python | def make_test_file(path: str, file_size=(- 1), file_name=) -> RetVal:
'Generate a test file containing nothing but zeroes. If the file size is negative, a random \n\tsize between 1 and 10 Kb will be chosen. If the file name is empty, a random one will be \n\tgenerated.\n\n\tReturns:\n\t\tname: (str) name of the tes... |
def setup_testdir(name) -> str:
'Creates a test folder for holding files'
topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'testfiles')
if (not os.path.exists(topdir)):
os.mkdir(topdir)
testdir = os.path.join(topdir, name)
while os.path.exists(testdir):
try:
... | 1,744,735,025,659,953,700 | Creates a test folder for holding files | tests/integration/test_fscmds.py | setup_testdir | mensago/mensagod | python | def setup_testdir(name) -> str:
topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'testfiles')
if (not os.path.exists(topdir)):
os.mkdir(topdir)
testdir = os.path.join(topdir, name)
while os.path.exists(testdir):
try:
shutil.rmtree(testdir)
excep... |
def test_copy():
'Tests the COPY command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA... | 5,179,860,775,048,239,000 | Tests the COPY command | tests/integration/test_fscmds.py | test_copy | mensago/mensagod | python | def test_copy():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65... |
def test_delete():
'Test the DELETE command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257Dm... | -3,826,681,085,504,762,400 | Test the DELETE command | tests/integration/test_fscmds.py | test_delete | mensago/mensagod | python | def test_delete():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok... |
def test_download():
'This tests the command DOWNLOAD'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z... | 5,452,001,439,904,321,000 | This tests the command DOWNLOAD | tests/integration/test_fscmds.py | test_download | mensago/mensagod | python | def test_download():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJL... |
def test_getquotainfo():
'This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the \n\tdisk usage'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
... | -2,799,457,588,750,778,400 | This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the
disk usage | tests/integration/test_fscmds.py | test_getquotainfo | mensago/mensagod | python | def test_getquotainfo():
'This tests the command GETQUOTAINFO, which gets both the quota for the workspace and the \n\tdisk usage'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
... |
def test_list():
'Tests the LIST command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA... | -1,777,570,973,949,736,200 | Tests the LIST command | tests/integration/test_fscmds.py | test_list | mensago/mensagod | python | def test_list():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65... |
def test_listdirs():
'Tests the LISTDIRS command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+... | 2,690,979,932,043,363,000 | Tests the LISTDIRS command | tests/integration/test_fscmds.py | test_listdirs | mensago/mensagod | python | def test_listdirs():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJL... |
def test_mkdir():
'Tests the MKDIR command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257Dmn... | 6,503,906,916,795,076,000 | Tests the MKDIR command | tests/integration/test_fscmds.py | test_mkdir | mensago/mensagod | python | def test_mkdir():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok6... |
def test_move():
'Tests the MOVE command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA... | -5,694,254,815,847,446,000 | Tests the MOVE command | tests/integration/test_fscmds.py | test_move | mensago/mensagod | python | def test_move():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65... |
def test_replace():
'Test the REPLACE command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257... | 7,099,241,659,638,598,000 | Test the REPLACE command | tests/integration/test_fscmds.py | test_replace | mensago/mensagod | python | def test_replace():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLo... |
def test_rmdir():
'Tests the RMDIR command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257Dmn... | -1,072,886,822,630,401,800 | Tests the RMDIR command | tests/integration/test_fscmds.py | test_rmdir | mensago/mensagod | python | def test_rmdir():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok6... |
def test_select():
'Tests the SELECT command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257D... | 4,892,010,180,817,249,000 | Tests the SELECT command | tests/integration/test_fscmds.py | test_select | mensago/mensagod | python | def test_select():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok... |
def test_setquota():
'Tests the SETQUOTA command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYk... | 6,664,158,948,814,282,000 | Tests the SETQUOTA command | tests/integration/test_fscmds.py | test_setquota | mensago/mensagod | python | def test_setquota():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok65qussSyhN5TTZP+OTgzEI'
... |
def test_upload():
'Tests the UPLOAD command'
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257D... | -4,006,653,102,645,890,000 | Tests the UPLOAD command | tests/integration/test_fscmds.py | test_upload | mensago/mensagod | python | def test_upload():
dbconn = setup_test()
dbdata = init_server(dbconn)
conn = ServerConnection()
assert conn.connect('localhost', 2001), 'Connection to server at localhost:2001 failed'
reset_top_dir(dbdata)
pwhash = '$argon2id$v=19$m=65536,t=2,p=1$ew5lqHA5z38za+257DmnTA$0LWVrI2r7XCqdcCYkJLok... |
def __init__(self, messageHandler, **kwargs):
'\n A constructor that will appropriately intialize a supervised learning object\n @ In, messageHandler, MessageHandler object, it is in charge of raising errors, and printing messages\n @ In, kwargs, dict, an arbitrary list of kwargs\n @ Out, None\n... | 1,728,743,759,327,529,700 | A constructor that will appropriately intialize a supervised learning object
@ In, messageHandler, MessageHandler object, it is in charge of raising errors, and printing messages
@ In, kwargs, dict, an arbitrary list of kwargs
@ Out, None | framework/SupervisedLearning/pickledROM.py | __init__ | alptezbasaran/raven | python | def __init__(self, messageHandler, **kwargs):
'\n A constructor that will appropriately intialize a supervised learning object\n @ In, messageHandler, MessageHandler object, it is in charge of raising errors, and printing messages\n @ In, kwargs, dict, an arbitrary list of kwargs\n @ Out, None\n... |
def __confidenceLocal__(self, featureVals):
'\n This should return an estimation of the quality of the prediction.\n @ In, featureVals, 2-D numpy array, [n_samples,n_features]\n @ Out, confidence, float, the confidence\n '
pass | -5,770,154,723,567,822,000 | This should return an estimation of the quality of the prediction.
@ In, featureVals, 2-D numpy array, [n_samples,n_features]
@ Out, confidence, float, the confidence | framework/SupervisedLearning/pickledROM.py | __confidenceLocal__ | alptezbasaran/raven | python | def __confidenceLocal__(self, featureVals):
'\n This should return an estimation of the quality of the prediction.\n @ In, featureVals, 2-D numpy array, [n_samples,n_features]\n @ Out, confidence, float, the confidence\n '
pass |
def __resetLocal__(self):
'\n Reset ROM. After this method the ROM should be described only by the initial parameter settings\n @ In, None\n @ Out, None\n '
pass | 3,285,244,487,013,803,000 | Reset ROM. After this method the ROM should be described only by the initial parameter settings
@ In, None
@ Out, None | framework/SupervisedLearning/pickledROM.py | __resetLocal__ | alptezbasaran/raven | python | def __resetLocal__(self):
'\n Reset ROM. After this method the ROM should be described only by the initial parameter settings\n @ In, None\n @ Out, None\n '
pass |
def __returnCurrentSettingLocal__(self):
'\n Returns a dictionary with the parameters and their current values\n @ In, None\n @ Out, params, dict, dictionary of parameter names and current values\n '
pass | -7,267,784,236,939,705,000 | Returns a dictionary with the parameters and their current values
@ In, None
@ Out, params, dict, dictionary of parameter names and current values | framework/SupervisedLearning/pickledROM.py | __returnCurrentSettingLocal__ | alptezbasaran/raven | python | def __returnCurrentSettingLocal__(self):
'\n Returns a dictionary with the parameters and their current values\n @ In, None\n @ Out, params, dict, dictionary of parameter names and current values\n '
pass |
def __returnInitialParametersLocal__(self):
'\n Returns a dictionary with the parameters and their initial values\n @ In, None\n @ Out, params, dict, dictionary of parameter names and initial values\n '
params = {}
return params | -1,226,478,902,455,152,400 | Returns a dictionary with the parameters and their initial values
@ In, None
@ Out, params, dict, dictionary of parameter names and initial values | framework/SupervisedLearning/pickledROM.py | __returnInitialParametersLocal__ | alptezbasaran/raven | python | def __returnInitialParametersLocal__(self):
'\n Returns a dictionary with the parameters and their initial values\n @ In, None\n @ Out, params, dict, dictionary of parameter names and initial values\n '
params = {}
return params |
def __evaluateLocal__(self, featureVals):
'\n Evaluates a point.\n @ In, featureVals, list, of values at which to evaluate the ROM\n @ Out, returnDict, dict, the evaluated point for each target\n '
self.raiseAnError(RuntimeError, 'PickledROM has not been loaded from file yet! An IO step is re... | 4,563,226,393,383,996,000 | Evaluates a point.
@ In, featureVals, list, of values at which to evaluate the ROM
@ Out, returnDict, dict, the evaluated point for each target | framework/SupervisedLearning/pickledROM.py | __evaluateLocal__ | alptezbasaran/raven | python | def __evaluateLocal__(self, featureVals):
'\n Evaluates a point.\n @ In, featureVals, list, of values at which to evaluate the ROM\n @ Out, returnDict, dict, the evaluated point for each target\n '
self.raiseAnError(RuntimeError, 'PickledROM has not been loaded from file yet! An IO step is re... |
def __trainLocal__(self, featureVals, targetVals):
'\n Trains ROM.\n @ In, featureVals, np.ndarray, feature values\n @ In, targetVals, np.ndarray, target values\n '
self.raiseAnError(RuntimeError, 'PickledROM has not been loaded from file yet! An IO step is required to perform this action.') | 9,086,658,020,351,408,000 | Trains ROM.
@ In, featureVals, np.ndarray, feature values
@ In, targetVals, np.ndarray, target values | framework/SupervisedLearning/pickledROM.py | __trainLocal__ | alptezbasaran/raven | python | def __trainLocal__(self, featureVals, targetVals):
'\n Trains ROM.\n @ In, featureVals, np.ndarray, feature values\n @ In, targetVals, np.ndarray, target values\n '
self.raiseAnError(RuntimeError, 'PickledROM has not been loaded from file yet! An IO step is required to perform this action.') |
def seed(seed=None):
"\n Seed the internal random number generator used in this ID package.\n\n The generator is a lagged Fibonacci method with 55-element internal state.\n\n Parameters\n ----------\n seed : int, sequence, 'default', optional\n If 'default', the random seed is reset to a defau... | -4,237,625,835,096,189,000 | Seed the internal random number generator used in this ID package.
The generator is a lagged Fibonacci method with 55-element internal state.
Parameters
----------
seed : int, sequence, 'default', optional
If 'default', the random seed is reset to a default value.
If `seed` is a sequence containing 55 floati... | scipy/linalg/interpolative.py | seed | AtsushiSakai/scipy | python | def seed(seed=None):
"\n Seed the internal random number generator used in this ID package.\n\n The generator is a lagged Fibonacci method with 55-element internal state.\n\n Parameters\n ----------\n seed : int, sequence, 'default', optional\n If 'default', the random seed is reset to a defau... |
def rand(*shape):
'\n Generate standard uniform pseudorandom numbers via a very efficient lagged\n Fibonacci method.\n\n This routine is used for all random number generation in this package and\n can affect ID and SVD results.\n\n Parameters\n ----------\n *shape\n Shape of output array... | -4,954,254,495,813,813,000 | Generate standard uniform pseudorandom numbers via a very efficient lagged
Fibonacci method.
This routine is used for all random number generation in this package and
can affect ID and SVD results.
Parameters
----------
*shape
Shape of output array | scipy/linalg/interpolative.py | rand | AtsushiSakai/scipy | python | def rand(*shape):
'\n Generate standard uniform pseudorandom numbers via a very efficient lagged\n Fibonacci method.\n\n This routine is used for all random number generation in this package and\n can affect ID and SVD results.\n\n Parameters\n ----------\n *shape\n Shape of output array... |
def interp_decomp(A, eps_or_k, rand=True):
'\n Compute ID of a matrix.\n\n An ID of a matrix `A` is a factorization defined by a rank `k`, a column\n index array `idx`, and interpolation coefficients `proj` such that::\n\n numpy.dot(A[:,idx[:k]], proj) = A[:,idx[k:]]\n\n The original matrix can t... | -2,603,866,810,322,402,000 | Compute ID of a matrix.
An ID of a matrix `A` is a factorization defined by a rank `k`, a column
index array `idx`, and interpolation coefficients `proj` such that::
numpy.dot(A[:,idx[:k]], proj) = A[:,idx[k:]]
The original matrix can then be reconstructed as::
numpy.hstack([A[:,idx[:k]],
... | scipy/linalg/interpolative.py | interp_decomp | AtsushiSakai/scipy | python | def interp_decomp(A, eps_or_k, rand=True):
'\n Compute ID of a matrix.\n\n An ID of a matrix `A` is a factorization defined by a rank `k`, a column\n index array `idx`, and interpolation coefficients `proj` such that::\n\n numpy.dot(A[:,idx[:k]], proj) = A[:,idx[k:]]\n\n The original matrix can t... |
def reconstruct_matrix_from_id(B, idx, proj):
'\n Reconstruct matrix from its ID.\n\n A matrix `A` with skeleton matrix `B` and ID indices and coefficients `idx`\n and `proj`, respectively, can be reconstructed as::\n\n numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]\n\n See also :fun... | 468,255,064,324,423,800 | Reconstruct matrix from its ID.
A matrix `A` with skeleton matrix `B` and ID indices and coefficients `idx`
and `proj`, respectively, can be reconstructed as::
numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]
See also :func:`reconstruct_interp_matrix` and
:func:`reconstruct_skel_matrix`.
.. This fun... | scipy/linalg/interpolative.py | reconstruct_matrix_from_id | AtsushiSakai/scipy | python | def reconstruct_matrix_from_id(B, idx, proj):
'\n Reconstruct matrix from its ID.\n\n A matrix `A` with skeleton matrix `B` and ID indices and coefficients `idx`\n and `proj`, respectively, can be reconstructed as::\n\n numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]\n\n See also :fun... |
def reconstruct_interp_matrix(idx, proj):
'\n Reconstruct interpolation matrix from ID.\n\n The interpolation matrix can be reconstructed from the ID indices and\n coefficients `idx` and `proj`, respectively, as::\n\n P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]\n\n Th... | -7,668,722,547,010,333,000 | Reconstruct interpolation matrix from ID.
The interpolation matrix can be reconstructed from the ID indices and
coefficients `idx` and `proj`, respectively, as::
P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]
The original matrix can then be reconstructed from its skeleton matrix `B`
via... | scipy/linalg/interpolative.py | reconstruct_interp_matrix | AtsushiSakai/scipy | python | def reconstruct_interp_matrix(idx, proj):
'\n Reconstruct interpolation matrix from ID.\n\n The interpolation matrix can be reconstructed from the ID indices and\n coefficients `idx` and `proj`, respectively, as::\n\n P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]\n\n Th... |
def reconstruct_skel_matrix(A, k, idx):
'\n Reconstruct skeleton matrix from ID.\n\n The skeleton matrix can be reconstructed from the original matrix `A` and its\n ID rank and indices `k` and `idx`, respectively, as::\n\n B = A[:,idx[:k]]\n\n The original matrix can then be reconstructed via::\n... | 8,174,668,372,000,422,000 | Reconstruct skeleton matrix from ID.
The skeleton matrix can be reconstructed from the original matrix `A` and its
ID rank and indices `k` and `idx`, respectively, as::
B = A[:,idx[:k]]
The original matrix can then be reconstructed via::
numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]
See also ... | scipy/linalg/interpolative.py | reconstruct_skel_matrix | AtsushiSakai/scipy | python | def reconstruct_skel_matrix(A, k, idx):
'\n Reconstruct skeleton matrix from ID.\n\n The skeleton matrix can be reconstructed from the original matrix `A` and its\n ID rank and indices `k` and `idx`, respectively, as::\n\n B = A[:,idx[:k]]\n\n The original matrix can then be reconstructed via::\n... |
def id_to_svd(B, idx, proj):
'\n Convert ID to SVD.\n\n The SVD reconstruction of a matrix with skeleton matrix `B` and ID indices and\n coefficients `idx` and `proj`, respectively, is::\n\n U, S, V = id_to_svd(B, idx, proj)\n A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))\n\n See ... | -5,234,185,594,294,006,000 | Convert ID to SVD.
The SVD reconstruction of a matrix with skeleton matrix `B` and ID indices and
coefficients `idx` and `proj`, respectively, is::
U, S, V = id_to_svd(B, idx, proj)
A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))
See also :func:`svd`.
.. This function automatically detects the matri... | scipy/linalg/interpolative.py | id_to_svd | AtsushiSakai/scipy | python | def id_to_svd(B, idx, proj):
'\n Convert ID to SVD.\n\n The SVD reconstruction of a matrix with skeleton matrix `B` and ID indices and\n coefficients `idx` and `proj`, respectively, is::\n\n U, S, V = id_to_svd(B, idx, proj)\n A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))\n\n See ... |
def estimate_spectral_norm(A, its=20):
'\n Estimate spectral norm of a matrix by the randomized power method.\n\n .. This function automatically detects the matrix data type and calls the\n appropriate backend. For details, see :func:`_backend.idd_snorm` and\n :func:`_backend.idz_snorm`.\n\n ... | -5,031,942,864,439,588,000 | Estimate spectral norm of a matrix by the randomized power method.
.. This function automatically detects the matrix data type and calls the
appropriate backend. For details, see :func:`_backend.idd_snorm` and
:func:`_backend.idz_snorm`.
Parameters
----------
A : :class:`scipy.sparse.linalg.LinearOperator`
... | scipy/linalg/interpolative.py | estimate_spectral_norm | AtsushiSakai/scipy | python | def estimate_spectral_norm(A, its=20):
'\n Estimate spectral norm of a matrix by the randomized power method.\n\n .. This function automatically detects the matrix data type and calls the\n appropriate backend. For details, see :func:`_backend.idd_snorm` and\n :func:`_backend.idz_snorm`.\n\n ... |
def estimate_spectral_norm_diff(A, B, its=20):
'\n Estimate spectral norm of the difference of two matrices by the randomized\n power method.\n\n .. This function automatically detects the matrix data type and calls the\n appropriate backend. For details, see :func:`_backend.idd_diffsnorm` and\n ... | -2,420,848,259,595,438,000 | Estimate spectral norm of the difference of two matrices by the randomized
power method.
.. This function automatically detects the matrix data type and calls the
appropriate backend. For details, see :func:`_backend.idd_diffsnorm` and
:func:`_backend.idz_diffsnorm`.
Parameters
----------
A : :class:`scipy.s... | scipy/linalg/interpolative.py | estimate_spectral_norm_diff | AtsushiSakai/scipy | python | def estimate_spectral_norm_diff(A, B, its=20):
'\n Estimate spectral norm of the difference of two matrices by the randomized\n power method.\n\n .. This function automatically detects the matrix data type and calls the\n appropriate backend. For details, see :func:`_backend.idd_diffsnorm` and\n ... |
def svd(A, eps_or_k, rand=True):
'\n Compute SVD of a matrix via an ID.\n\n An SVD of a matrix `A` is a factorization::\n\n A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))\n\n where `U` and `V` have orthonormal columns and `S` is nonnegative.\n\n The SVD can be computed to any relative pre... | -8,320,704,618,652,077,000 | Compute SVD of a matrix via an ID.
An SVD of a matrix `A` is a factorization::
A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))
where `U` and `V` have orthonormal columns and `S` is nonnegative.
The SVD can be computed to any relative precision or rank (depending on the
value of `eps_or_k`).
See also :fu... | scipy/linalg/interpolative.py | svd | AtsushiSakai/scipy | python | def svd(A, eps_or_k, rand=True):
'\n Compute SVD of a matrix via an ID.\n\n An SVD of a matrix `A` is a factorization::\n\n A = numpy.dot(U, numpy.dot(numpy.diag(S), V.conj().T))\n\n where `U` and `V` have orthonormal columns and `S` is nonnegative.\n\n The SVD can be computed to any relative pre... |
def estimate_rank(A, eps):
'\n Estimate matrix rank to a specified relative precision using randomized\n methods.\n\n The matrix `A` can be given as either a :class:`numpy.ndarray` or a\n :class:`scipy.sparse.linalg.LinearOperator`, with different algorithms used\n for each case. If `A` is of type :c... | -146,156,896,877,322,050 | Estimate matrix rank to a specified relative precision using randomized
methods.
The matrix `A` can be given as either a :class:`numpy.ndarray` or a
:class:`scipy.sparse.linalg.LinearOperator`, with different algorithms used
for each case. If `A` is of type :class:`numpy.ndarray`, then the output
rank is typically abo... | scipy/linalg/interpolative.py | estimate_rank | AtsushiSakai/scipy | python | def estimate_rank(A, eps):
'\n Estimate matrix rank to a specified relative precision using randomized\n methods.\n\n The matrix `A` can be given as either a :class:`numpy.ndarray` or a\n :class:`scipy.sparse.linalg.LinearOperator`, with different algorithms used\n for each case. If `A` is of type :c... |
def __init__(__self__, *, resource_group_name: pulumi.Input[str], boot_strap_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, cloud_init_configuration: Optional[pulumi.Input[str]]=None, cloud_init_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, id: Optional[p... | 6,667,925,869,452,050,000 | The set of arguments for constructing a NetworkVirtualAppliance resource.
:param pulumi.Input[str] resource_group_name: The name of the resource group.
:param pulumi.Input[Sequence[pulumi.Input[str]]] boot_strap_configuration_blobs: BootStrapConfigurationBlobs storage URLs.
:param pulumi.Input[str] cloud_init_configura... | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | __init__ | polivbr/pulumi-azure-native | python | def __init__(__self__, *, resource_group_name: pulumi.Input[str], boot_strap_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, cloud_init_configuration: Optional[pulumi.Input[str]]=None, cloud_init_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, id: Optional[p... |
@property
@pulumi.getter(name='resourceGroupName')
def resource_group_name(self) -> pulumi.Input[str]:
'\n The name of the resource group.\n '
return pulumi.get(self, 'resource_group_name') | 5,898,586,357,340,442,000 | The name of the resource group. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | resource_group_name | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='resourceGroupName')
def resource_group_name(self) -> pulumi.Input[str]:
'\n \n '
return pulumi.get(self, 'resource_group_name') |
@property
@pulumi.getter(name='bootStrapConfigurationBlobs')
def boot_strap_configuration_blobs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n BootStrapConfigurationBlobs storage URLs.\n '
return pulumi.get(self, 'boot_strap_configuration_blobs') | 6,968,465,771,750,487,000 | BootStrapConfigurationBlobs storage URLs. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | boot_strap_configuration_blobs | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='bootStrapConfigurationBlobs')
def boot_strap_configuration_blobs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n \n '
return pulumi.get(self, 'boot_strap_configuration_blobs') |
@property
@pulumi.getter(name='cloudInitConfiguration')
def cloud_init_configuration(self) -> Optional[pulumi.Input[str]]:
'\n CloudInitConfiguration string in plain text.\n '
return pulumi.get(self, 'cloud_init_configuration') | -2,064,485,249,122,486,300 | CloudInitConfiguration string in plain text. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | cloud_init_configuration | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='cloudInitConfiguration')
def cloud_init_configuration(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'cloud_init_configuration') |
@property
@pulumi.getter(name='cloudInitConfigurationBlobs')
def cloud_init_configuration_blobs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n CloudInitConfigurationBlob storage URLs.\n '
return pulumi.get(self, 'cloud_init_configuration_blobs') | -4,878,935,036,091,921,000 | CloudInitConfigurationBlob storage URLs. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | cloud_init_configuration_blobs | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='cloudInitConfigurationBlobs')
def cloud_init_configuration_blobs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
'\n \n '
return pulumi.get(self, 'cloud_init_configuration_blobs') |
@property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
'\n Resource ID.\n '
return pulumi.get(self, 'id') | 4,003,078,074,025,280,500 | Resource ID. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | id | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def id(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'id') |
@property
@pulumi.getter
def identity(self) -> Optional[pulumi.Input['ManagedServiceIdentityArgs']]:
'\n The service principal that has read access to cloud-init and config blob.\n '
return pulumi.get(self, 'identity') | 2,198,703,279,660,608,300 | The service principal that has read access to cloud-init and config blob. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | identity | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def identity(self) -> Optional[pulumi.Input['ManagedServiceIdentityArgs']]:
'\n \n '
return pulumi.get(self, 'identity') |
@property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
'\n Resource location.\n '
return pulumi.get(self, 'location') | 5,685,883,695,381,965,000 | Resource location. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | location | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def location(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'location') |
@property
@pulumi.getter(name='networkVirtualApplianceName')
def network_virtual_appliance_name(self) -> Optional[pulumi.Input[str]]:
'\n The name of Network Virtual Appliance.\n '
return pulumi.get(self, 'network_virtual_appliance_name') | -1,706,490,319,131,603,700 | The name of Network Virtual Appliance. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | network_virtual_appliance_name | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='networkVirtualApplianceName')
def network_virtual_appliance_name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'network_virtual_appliance_name') |
@property
@pulumi.getter(name='nvaSku')
def nva_sku(self) -> Optional[pulumi.Input['VirtualApplianceSkuPropertiesArgs']]:
'\n Network Virtual Appliance SKU.\n '
return pulumi.get(self, 'nva_sku') | 2,661,550,094,163,592,000 | Network Virtual Appliance SKU. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | nva_sku | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='nvaSku')
def nva_sku(self) -> Optional[pulumi.Input['VirtualApplianceSkuPropertiesArgs']]:
'\n \n '
return pulumi.get(self, 'nva_sku') |
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n Resource tags.\n '
return pulumi.get(self, 'tags') | -2,047,115,851,061,118,500 | Resource tags. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | tags | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'tags') |
@property
@pulumi.getter(name='virtualApplianceAsn')
def virtual_appliance_asn(self) -> Optional[pulumi.Input[float]]:
'\n VirtualAppliance ASN.\n '
return pulumi.get(self, 'virtual_appliance_asn') | -2,730,813,289,843,636,000 | VirtualAppliance ASN. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_appliance_asn | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualApplianceAsn')
def virtual_appliance_asn(self) -> Optional[pulumi.Input[float]]:
'\n \n '
return pulumi.get(self, 'virtual_appliance_asn') |
@property
@pulumi.getter(name='virtualHub')
def virtual_hub(self) -> Optional[pulumi.Input['SubResourceArgs']]:
'\n The Virtual Hub where Network Virtual Appliance is being deployed.\n '
return pulumi.get(self, 'virtual_hub') | 2,946,246,246,132,601,000 | The Virtual Hub where Network Virtual Appliance is being deployed. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_hub | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualHub')
def virtual_hub(self) -> Optional[pulumi.Input['SubResourceArgs']]:
'\n \n '
return pulumi.get(self, 'virtual_hub') |
@overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, boot_strap_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, cloud_init_configuration: Optional[pulumi.Input[str]]=None, cloud_init_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.In... | 1,037,797,180,704,716,400 | NetworkVirtualAppliance Resource.
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[Sequence[pulumi.Input[str]]] boot_strap_configuration_blobs: BootStrapConfigurationBlobs storage URLs.
:param pulumi.Input[str] cloud_init_configuratio... | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | __init__ | polivbr/pulumi-azure-native | python | @overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, boot_strap_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, cloud_init_configuration: Optional[pulumi.Input[str]]=None, cloud_init_configuration_blobs: Optional[pulumi.Input[Sequence[pulumi.In... |
@overload
def __init__(__self__, resource_name: str, args: NetworkVirtualApplianceArgs, opts: Optional[pulumi.ResourceOptions]=None):
"\n NetworkVirtualAppliance Resource.\n\n :param str resource_name: The name of the resource.\n :param NetworkVirtualApplianceArgs args: The arguments to use to ... | 2,114,617,597,250,460,700 | NetworkVirtualAppliance Resource.
:param str resource_name: The name of the resource.
:param NetworkVirtualApplianceArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | __init__ | polivbr/pulumi-azure-native | python | @overload
def __init__(__self__, resource_name: str, args: NetworkVirtualApplianceArgs, opts: Optional[pulumi.ResourceOptions]=None):
"\n NetworkVirtualAppliance Resource.\n\n :param str resource_name: The name of the resource.\n :param NetworkVirtualApplianceArgs args: The arguments to use to ... |
@staticmethod
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> 'NetworkVirtualAppliance':
"\n Get an existing NetworkVirtualAppliance resource's state with the given name, id, and optional extra\n properties used to qualify the lookup.\n\n :para... | -323,794,455,604,124,540 | Get an existing NetworkVirtualAppliance resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions o... | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | get | polivbr/pulumi-azure-native | python | @staticmethod
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> 'NetworkVirtualAppliance':
"\n Get an existing NetworkVirtualAppliance resource's state with the given name, id, and optional extra\n properties used to qualify the lookup.\n\n :para... |
@property
@pulumi.getter(name='addressPrefix')
def address_prefix(self) -> pulumi.Output[str]:
'\n Address Prefix.\n '
return pulumi.get(self, 'address_prefix') | 5,824,578,746,486,711,000 | Address Prefix. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | address_prefix | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='addressPrefix')
def address_prefix(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'address_prefix') |
@property
@pulumi.getter(name='bootStrapConfigurationBlobs')
def boot_strap_configuration_blobs(self) -> pulumi.Output[Optional[Sequence[str]]]:
'\n BootStrapConfigurationBlobs storage URLs.\n '
return pulumi.get(self, 'boot_strap_configuration_blobs') | 7,936,631,049,014,074,000 | BootStrapConfigurationBlobs storage URLs. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | boot_strap_configuration_blobs | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='bootStrapConfigurationBlobs')
def boot_strap_configuration_blobs(self) -> pulumi.Output[Optional[Sequence[str]]]:
'\n \n '
return pulumi.get(self, 'boot_strap_configuration_blobs') |
@property
@pulumi.getter(name='cloudInitConfiguration')
def cloud_init_configuration(self) -> pulumi.Output[Optional[str]]:
'\n CloudInitConfiguration string in plain text.\n '
return pulumi.get(self, 'cloud_init_configuration') | 749,338,380,051,062,900 | CloudInitConfiguration string in plain text. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | cloud_init_configuration | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='cloudInitConfiguration')
def cloud_init_configuration(self) -> pulumi.Output[Optional[str]]:
'\n \n '
return pulumi.get(self, 'cloud_init_configuration') |
@property
@pulumi.getter(name='cloudInitConfigurationBlobs')
def cloud_init_configuration_blobs(self) -> pulumi.Output[Optional[Sequence[str]]]:
'\n CloudInitConfigurationBlob storage URLs.\n '
return pulumi.get(self, 'cloud_init_configuration_blobs') | 1,871,157,752,575,486,200 | CloudInitConfigurationBlob storage URLs. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | cloud_init_configuration_blobs | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='cloudInitConfigurationBlobs')
def cloud_init_configuration_blobs(self) -> pulumi.Output[Optional[Sequence[str]]]:
'\n \n '
return pulumi.get(self, 'cloud_init_configuration_blobs') |
@property
@pulumi.getter
def etag(self) -> pulumi.Output[str]:
'\n A unique read-only string that changes whenever the resource is updated.\n '
return pulumi.get(self, 'etag') | 5,960,741,373,667,297,000 | A unique read-only string that changes whenever the resource is updated. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | etag | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def etag(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'etag') |
@property
@pulumi.getter
def identity(self) -> pulumi.Output[Optional['outputs.ManagedServiceIdentityResponse']]:
'\n The service principal that has read access to cloud-init and config blob.\n '
return pulumi.get(self, 'identity') | 4,552,885,376,458,106,400 | The service principal that has read access to cloud-init and config blob. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | identity | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def identity(self) -> pulumi.Output[Optional['outputs.ManagedServiceIdentityResponse']]:
'\n \n '
return pulumi.get(self, 'identity') |
@property
@pulumi.getter(name='inboundSecurityRules')
def inbound_security_rules(self) -> pulumi.Output[Sequence['outputs.SubResourceResponse']]:
'\n List of references to InboundSecurityRules.\n '
return pulumi.get(self, 'inbound_security_rules') | 4,518,341,234,215,433,000 | List of references to InboundSecurityRules. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | inbound_security_rules | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='inboundSecurityRules')
def inbound_security_rules(self) -> pulumi.Output[Sequence['outputs.SubResourceResponse']]:
'\n \n '
return pulumi.get(self, 'inbound_security_rules') |
@property
@pulumi.getter
def location(self) -> pulumi.Output[Optional[str]]:
'\n Resource location.\n '
return pulumi.get(self, 'location') | -6,585,394,763,848,456,000 | Resource location. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | location | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def location(self) -> pulumi.Output[Optional[str]]:
'\n \n '
return pulumi.get(self, 'location') |
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
'\n Resource name.\n '
return pulumi.get(self, 'name') | 4,695,236,134,441,039,000 | Resource name. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | name | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'name') |
@property
@pulumi.getter(name='nvaSku')
def nva_sku(self) -> pulumi.Output[Optional['outputs.VirtualApplianceSkuPropertiesResponse']]:
'\n Network Virtual Appliance SKU.\n '
return pulumi.get(self, 'nva_sku') | 4,007,323,048,391,256,000 | Network Virtual Appliance SKU. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | nva_sku | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='nvaSku')
def nva_sku(self) -> pulumi.Output[Optional['outputs.VirtualApplianceSkuPropertiesResponse']]:
'\n \n '
return pulumi.get(self, 'nva_sku') |
@property
@pulumi.getter(name='provisioningState')
def provisioning_state(self) -> pulumi.Output[str]:
'\n The provisioning state of the resource.\n '
return pulumi.get(self, 'provisioning_state') | -7,441,910,698,213,024,000 | The provisioning state of the resource. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | provisioning_state | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='provisioningState')
def provisioning_state(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'provisioning_state') |
@property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]:
'\n Resource tags.\n '
return pulumi.get(self, 'tags') | -2,929,197,049,816,896,000 | Resource tags. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | tags | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]:
'\n \n '
return pulumi.get(self, 'tags') |
@property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
'\n Resource type.\n '
return pulumi.get(self, 'type') | 2,132,950,812,122,862,800 | Resource type. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | type | polivbr/pulumi-azure-native | python | @property
@pulumi.getter
def type(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'type') |
@property
@pulumi.getter(name='virtualApplianceAsn')
def virtual_appliance_asn(self) -> pulumi.Output[Optional[float]]:
'\n VirtualAppliance ASN.\n '
return pulumi.get(self, 'virtual_appliance_asn') | -9,037,999,107,382,466,000 | VirtualAppliance ASN. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_appliance_asn | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualApplianceAsn')
def virtual_appliance_asn(self) -> pulumi.Output[Optional[float]]:
'\n \n '
return pulumi.get(self, 'virtual_appliance_asn') |
@property
@pulumi.getter(name='virtualApplianceNics')
def virtual_appliance_nics(self) -> pulumi.Output[Sequence['outputs.VirtualApplianceNicPropertiesResponse']]:
'\n List of Virtual Appliance Network Interfaces.\n '
return pulumi.get(self, 'virtual_appliance_nics') | -572,032,662,944,750,140 | List of Virtual Appliance Network Interfaces. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_appliance_nics | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualApplianceNics')
def virtual_appliance_nics(self) -> pulumi.Output[Sequence['outputs.VirtualApplianceNicPropertiesResponse']]:
'\n \n '
return pulumi.get(self, 'virtual_appliance_nics') |
@property
@pulumi.getter(name='virtualApplianceSites')
def virtual_appliance_sites(self) -> pulumi.Output[Sequence['outputs.SubResourceResponse']]:
'\n List of references to VirtualApplianceSite.\n '
return pulumi.get(self, 'virtual_appliance_sites') | -8,492,447,354,014,992,000 | List of references to VirtualApplianceSite. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_appliance_sites | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualApplianceSites')
def virtual_appliance_sites(self) -> pulumi.Output[Sequence['outputs.SubResourceResponse']]:
'\n \n '
return pulumi.get(self, 'virtual_appliance_sites') |
@property
@pulumi.getter(name='virtualHub')
def virtual_hub(self) -> pulumi.Output[Optional['outputs.SubResourceResponse']]:
'\n The Virtual Hub where Network Virtual Appliance is being deployed.\n '
return pulumi.get(self, 'virtual_hub') | 6,378,258,943,083,094,000 | The Virtual Hub where Network Virtual Appliance is being deployed. | sdk/python/pulumi_azure_native/network/v20201101/network_virtual_appliance.py | virtual_hub | polivbr/pulumi-azure-native | python | @property
@pulumi.getter(name='virtualHub')
def virtual_hub(self) -> pulumi.Output[Optional['outputs.SubResourceResponse']]:
'\n \n '
return pulumi.get(self, 'virtual_hub') |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_vm_no_startvm(self):
'Test Deploy Virtual Machine with no startVM parameter\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.s... | 6,292,790,326,233,804,000 | Test Deploy Virtual Machine with no startVM parameter | test/integration/component/test_stopped_vm.py | test_01_deploy_vm_no_startvm | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_vm_no_startvm(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.account.na... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_02_deploy_vm_startvm_true(self):
'Test Deploy Virtual Machine with startVM=true parameter\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, se... | 2,796,998,086,058,335,000 | Test Deploy Virtual Machine with startVM=true parameter | test/integration/component/test_stopped_vm.py | test_02_deploy_vm_startvm_true | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_02_deploy_vm_startvm_true(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.account.... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_03_deploy_vm_startvm_false(self):
'Test Deploy Virtual Machine with startVM=false parameter\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, ... | 2,372,317,937,518,507,500 | Test Deploy Virtual Machine with startVM=false parameter | test/integration/component/test_stopped_vm.py | test_03_deploy_vm_startvm_false | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_03_deploy_vm_startvm_false(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.account... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_04_deploy_startvm_false_attach_volume(self):
'Test Deploy Virtual Machine with startVM=false and attach volume\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.crea... | -1,168,590,315,586,303,200 | Test Deploy Virtual Machine with startVM=false and attach volume | test/integration/component/test_stopped_vm.py | test_04_deploy_startvm_false_attach_volume | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_04_deploy_startvm_false_attach_volume(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=s... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_05_deploy_startvm_false_change_so(self):
'Test Deploy Virtual Machine with startVM=false and change service offering\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachin... | 5,525,013,060,685,405,000 | Test Deploy Virtual Machine with startVM=false and change service offering | test/integration/component/test_stopped_vm.py | test_05_deploy_startvm_false_change_so | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_05_deploy_startvm_false_change_so(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_06_deploy_startvm_attach_detach(self):
'Test Deploy Virtual Machine with startVM=false and\n attach detach volumes\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = Virt... | -2,799,671,439,109,223,400 | Test Deploy Virtual Machine with startVM=false and
attach detach volumes | test/integration/component/test_stopped_vm.py | test_06_deploy_startvm_attach_detach | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_06_deploy_startvm_attach_detach(self):
'Test Deploy Virtual Machine with startVM=false and\n attach detach volumes\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = Virt... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_07_deploy_startvm_attach_iso(self):
'Test Deploy Virtual Machine with startVM=false and attach ISO\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apic... | -8,296,429,924,960,855,000 | Test Deploy Virtual Machine with startVM=false and attach ISO | test/integration/component/test_stopped_vm.py | test_07_deploy_startvm_attach_iso | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_07_deploy_startvm_attach_iso(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.accou... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_08_deploy_attached_volume(self):
'Test Deploy Virtual Machine with startVM=false and attach volume already attached to different machine\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_mac... | -1,117,870,452,740,422,900 | Test Deploy Virtual Machine with startVM=false and attach volume already attached to different machine | test/integration/component/test_stopped_vm.py | test_08_deploy_attached_volume | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_08_deploy_attached_volume(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine_1 = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.accoun... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_09_stop_vm_migrate_vol(self):
"Test Stopped Virtual Machine's ROOT volume migration\n "
clusters = Cluster.list(self.apiclient, zoneid=self.zone.id)
self.assertEqual(isinstance(clusters, list), True, 'Check list response returns a ... | 587,181,880,230,539,300 | Test Stopped Virtual Machine's ROOT volume migration | test/integration/component/test_stopped_vm.py | test_09_stop_vm_migrate_vol | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_09_stop_vm_migrate_vol(self):
"\n "
clusters = Cluster.list(self.apiclient, zoneid=self.zone.id)
self.assertEqual(isinstance(clusters, list), True, 'Check list response returns a valid list')
i = 0
for cluster in clusters:
... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_ha_vm_startvm_false(self):
'Test Deploy HA enabled Virtual Machine with startvm=false\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclie... | -6,801,253,598,527,564,000 | Test Deploy HA enabled Virtual Machine with startvm=false | test/integration/component/test_stopped_vm.py | test_01_deploy_ha_vm_startvm_false | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_ha_vm_startvm_false(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.acco... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_02_deploy_ha_vm_from_iso(self):
'Test Deploy HA enabled Virtual Machine from ISO\n '
self.iso = Iso.create(self.apiclient, self.services['iso'], account=self.account.name, domainid=self.account.domainid)
try:
self.iso.downl... | 1,370,290,039,441,946,000 | Test Deploy HA enabled Virtual Machine from ISO | test/integration/component/test_stopped_vm.py | test_02_deploy_ha_vm_from_iso | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_02_deploy_ha_vm_from_iso(self):
'\n '
self.iso = Iso.create(self.apiclient, self.services['iso'], account=self.account.name, domainid=self.account.domainid)
try:
self.iso.download(self.apiclient)
self.cleanup.append... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_03_deploy_ha_vm_iso_startvm_false(self):
'Test Deploy HA enabled Virtual Machine from ISO with startvm=false\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create... | -4,505,269,079,852,825,600 | Test Deploy HA enabled Virtual Machine from ISO with startvm=false | test/integration/component/test_stopped_vm.py | test_03_deploy_ha_vm_iso_startvm_false | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_03_deploy_ha_vm_iso_startvm_false(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.... |
@attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_vm_no_startvm(self):
'Test Deploy Virtual Machine with no startVM parameter\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine_1 = VirtualMachine.create(self.apiclient, self... | -6,827,778,610,811,940,000 | Test Deploy Virtual Machine with no startVM parameter | test/integration/component/test_stopped_vm.py | test_01_deploy_vm_no_startvm | ksowmya/cloudstack-1 | python | @attr(tags=['advanced', 'eip', 'advancedns', 'basic', 'sg'])
def test_01_deploy_vm_no_startvm(self):
'\n '
self.debug(('Deploying instance in the account: %s' % self.account.name))
self.virtual_machine_1 = VirtualMachine.create(self.apiclient, self.services['virtual_machine'], accountid=self.account.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.