function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def _supports_encryption(self): # NOTE(dgenin): Kernel, ramdisk and disk.config are fetched using # the Raw backend regardless of which backend is configured for # ephemeral storage. Encryption for the Raw backend is not yet # implemented so this loophole is necessary to allow other ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def create_image(self, prepare_template, base, size, *args, **kwargs): filename = self._get_lock_name(base) @utils.synchronized(filename, external=True, lock_path=self.lock_path) def copy_raw_image(base, target, size): libvirt_utils.copy_image(base, target) if size: ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def snapshot_extract(self, target, out_format): images.convert_image(self.path, target, self.driver_format, out_format)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def is_file_in_instance_path(): return True
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def __init__(self, instance=None, disk_name=None, path=None): super(Qcow2, self).__init__("file", "qcow2", is_block_dev=False) self.path = (path or os.path.join(libvirt_utils.get_instance_path(instance), disk_name)) self.preallocate = ( ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def copy_qcow2_image(base, target, size): # TODO(pbrady): Consider copying the cow image here # with preallocation=metadata set for performance reasons. # This would be keyed on a 'preallocate_images' setting. libvirt_utils.create_cow_image(base, target) if si...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def resize_image(self, size): image = imgmodel.LocalFileImage(self.path, imgmodel.FORMAT_QCOW2) disk.extend(image, size)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def is_file_in_instance_path(): return True
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def escape(filename): return filename.replace('_', '__')
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def _supports_encryption(self): return True
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def create_image(self, prepare_template, base, size, *args, **kwargs): def encrypt_lvm_image(): dmcrypt.create_volume(self.path.rpartition('/')[2], self.lv_path, CONF.ephemeral_storage_encryption.cipher, ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def resize_image(self, size): pass
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def remove_volume_on_error(self, path): try: yield except Exception: with excutils.save_and_reraise_exception(): if self.ephemeral_key_uuid is None: lvm.remove_volumes([path]) else: dmcrypt.delete_volume(path...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def get_model(self, connection): return imgmodel.LocalBlockImage(self.path)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def __init__(self, instance=None, disk_name=None, path=None, **kwargs): super(Rbd, self).__init__("block", "rbd", is_block_dev=False) if path: try: self.rbd_name = path.split('/')[1] except IndexError: raise exception.InvalidDevicePath(path=path) ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def _can_fallocate(self): return False
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def get_disk_size(self, name): """Returns the size of the virtual disk in bytes. The name argument is ignored since this backend already knows its name, and callers may pass a non-existent local file path. """ return self.driver.size(self.rbd_name)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def resize_image(self, size): self.driver.resize(self.rbd_name, size)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def is_shared_block_storage(): return True
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def get_model(self, connection): secret = None if CONF.libvirt.rbd_secret_uuid: secretobj = connection.secretLookupByUUIDString( CONF.libvirt.rbd_secret_uuid) secret = base64.b64encode(secretobj.value()) hosts, ports = self.driver.get_mon_addrs() ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def create_snap(self, name): return self.driver.create_snap(self.rbd_name, name)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def rollback_to_snap(self, name): return self.driver.rollback_to_snap(self.rbd_name, name)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def direct_snapshot(self, context, snapshot_name, image_format, image_id, base_image_id): """Creates an RBD snapshot directly. """ fsid = self.driver.get_fsid() # NOTE(nic): Nova has zero comprehension of how Glance's image store # is configured, but we ca...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def __init__(self, instance=None, disk_name=None, path=None): super(Ploop, self).__init__("file", "ploop", is_block_dev=False) self.path = (path or os.path.join(libvirt_utils.get_instance_path(instance), disk_name)) self.resolve_driver_form...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def create_ploop_image(base, target, size): image_path = os.path.join(target, "root.hds") libvirt_utils.copy_image(base, image_path) utils.execute('ploop', 'restore-descriptor', '-f', self.pcs_format, target, image_path) if size: ...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def resize_image(self, size): dd_path = os.path.join(self.path, "DiskDescriptor.xml") utils.execute('ploop', 'grow', '-s', '%dK' % (size >> 10), dd_path, run_as_root=True)
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def __init__(self, use_cow): self.BACKEND = { 'raw': Raw, 'qcow2': Qcow2, 'lvm': Lvm, 'rbd': Rbd, 'ploop': Ploop, 'default': Qcow2 if use_cow else Raw }
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def image(self, instance, disk_name, image_type=None): """Constructs image for selected backend :instance: Instance name. :name: Image name. :image_type: Image type. Optional, is CONF.libvirt.images_type by default. """ backend = self.backend(image_t...
cernops/nova
[ 5, 2, 5, 2, 1418819480 ]
def setUp(self): super(BuilderTest, self).setUp() self.builder = permissions.Builder('rev') self.permission = self.builder.permission self.include = self.builder.include self.role = self.builder.role
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_empty(self): self.check([], {})
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_bad_permission_name(self): with self.assertRaises(ValueError): self.permission('luci.dev') with self.assertRaises(ValueError): self.permission('luci.dev.something.something')
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_complex_role(self): self.role('role/dev.a', [ self.permission('luci.dev.p1'), self.permission('luci.dev.p2'), ]) self.role('role/dev.b', [ self.permission('luci.dev.p2'), self.permission('luci.dev.p3'), self.include('role/dev.a'), ]) self.check( ...
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_bad_role_name(self): with self.assertRaises(ValueError): self.role('zzz/role', [])
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_non_idempotent_perm(self): self.permission('luci.dev.p1') self.permission('luci.dev.p1') with self.assertRaises(ValueError): self.permission('luci.dev.p1', internal=True)
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def test_can_be_built(self): db = permissions.db() for b in db.implicit_root_bindings('proj'): self.assertIsInstance(b, realms_config_pb2.Binding)
luci/luci-py
[ 70, 40, 70, 82, 1427740754 ]
def __init__(self): self.result = set() super(OptimizableComprehension, self).__init__(Identifiers)
serge-sans-paille/pythran
[ 1865, 184, 1865, 122, 1338278534 ]
def visit_ListComp(self, node): if (self.check_comprehension(node.generators)): self.result.add(node)
serge-sans-paille/pythran
[ 1865, 184, 1865, 122, 1338278534 ]
def cmake_args(self): args = [] spec = self.spec args.append(self.define_from_variant('ENABLE_SHARED', 'shared')) args.append(self.define_from_variant('USE_OPENMP', 'openmp')) args.append(self.define_from_variant('USE_READLINE', 'readline')) args.append(self.define_from_...
LLNL/spack
[ 3244, 1839, 3244, 2847, 1389172932 ]
def round_state(func): """Round state.""" def _decorator(self): res = func(self) if isinstance(res, float): return round(res) return res return _decorator
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def __init__(self, coordinator, name, unique_id): """Initialize.""" self.coordinator = coordinator self._name = name self._unique_id = unique_id self._icon = "mdi:blur"
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def name(self): """Return the name.""" return self._name
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def should_poll(self): """Return the polling requirement of the entity.""" return False
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def icon(self): """Return the icon.""" return self._icon
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def air_quality_index(self): """Return the air quality index.""" return self.coordinator.data[ATTR_API_CAQI]
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def particulate_matter_2_5(self): """Return the particulate matter 2.5 level.""" return self.coordinator.data[ATTR_API_PM25]
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def particulate_matter_10(self): """Return the particulate matter 10 level.""" return self.coordinator.data[ATTR_API_PM10]
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def attribution(self): """Return the attribution.""" return ATTRIBUTION
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def unique_id(self): """Return a unique_id for this entity.""" return self._unique_id
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def available(self): """Return True if entity is available.""" return self.coordinator.last_update_success
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def device_state_attributes(self): """Return the state attributes.""" return { LABEL_AQI_DESCRIPTION: self.coordinator.data[ATTR_API_CAQI_DESCRIPTION], LABEL_ADVICE: self.coordinator.data[ATTR_API_ADVICE], LABEL_AQI_LEVEL: self.coordinator.data[ATTR_API_CAQI_LEVEL], ...
pschmitt/home-assistant
[ 1, 1, 1, 6, 1485261624 ]
def context_managers(self, kwargs): mode = kwargs.pop("mode", None) if mode is None: return [] elif mode == "eager": return [context.eager_mode()] elif mode == "graph": return [ops.Graph().as_default(), context.graph_mode()] else: raise ValueError( "Argument 'mode' ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def should_execute_combination(self, kwargs): tf_api_version = kwargs.pop("tf_api_version", None) if tf_api_version == 1 and tf2.enabled(): return (False, "Skipping a TF1.x test when TF2 is enabled.") elif tf_api_version == 2 and not tf2.enabled(): return (False, "Skipping a TF2 test when TF2 is...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def TemporaryDirectoryResource(): temporary = tempfile.mkdtemp() try: yield temporary finally: shutil.rmtree(temporary)
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def __init__(self): # TODO(aselle): make this work in the open source version with better # path. paths_to_try = [ "../../../../flatbuffers/flatc", # not bazel "../../../../external/flatbuffers/flatc" # bazel ] for p in paths_to_try: self._flatc_path = resource_loader.get_pat...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def _Write(self, data, output_file): """Output a json or bin version of the flatbuffer model. Args: data: Dict representing the TensorFlow Lite model to write. output_file: filename to write the converted flatbuffer to. (json, tflite, or bin extension is required). Raises: ValueEr...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def _Upgrade1To2(self, data): """Upgrade data from Version 1 to Version 2. Changes: Rename operators to Conform to NN API. Args: data: Dictionary representing the TensorFlow lite data to be upgraded. This will be modified in-place to be an upgraded version. Raises: ValueError: Thro...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def _PerformUpgrade(self, data): """Manipulate the `data` (parsed JSON) based on changes in format. This incrementally will upgrade from version to version within data. Args: data: Dictionary representing the TensorFlow data. This will be upgraded in place. """ while data["version"] ...
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def main(argv): del argv Converter().Convert(FLAGS.input, FLAGS.output)
tensorflow/tensorflow
[ 171949, 87931, 171949, 2300, 1446859160 ]
def __init__(self, hass, config_entry): """Initialize global Met data updater.""" self._unsub_track_home = None self.weather = MetWeatherData( hass, config_entry.data, hass.config.units.is_metric ) self.weather.init_data() update_interval = timedelta(minutes=...
tchellomello/home-assistant
[ 7, 1, 7, 6, 1467778429 ]
def track_home(self): """Start tracking changes to HA home setting.""" if self._unsub_track_home: return async def _async_update_weather_data(_event=None): """Update weather data.""" self.weather.init_data() await self.async_refresh() sel...
tchellomello/home-assistant
[ 7, 1, 7, 6, 1467778429 ]
def __init__(self, hass, config, is_metric): """Initialise the weather entity data.""" self.hass = hass self._config = config self._is_metric = is_metric self._weather_data = None self.current_weather_data = {} self.daily_forecast = None self.hourly_foreca...
tchellomello/home-assistant
[ 7, 1, 7, 6, 1467778429 ]
def forwards(self, orm):
awemulya/fieldsight-kobocat
[ 45, 7, 45, 26, 1481100851 ]
def backwards(self, orm):
awemulya/fieldsight-kobocat
[ 45, 7, 45, 26, 1481100851 ]
def _int64_feature(value): return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def main(): """Main converter function.""" # Celeb A with open(FLAGS.partition_fn, "r") as infile: img_fn_list = infile.readlines() img_fn_list = [elem.strip().split() for elem in img_fn_list] img_fn_list = [elem[0] for elem in img_fn_list if elem[1] == FLAGS.set] fn_root = FLAGS.fn_root...
unnikrishnankgs/va
[ 1, 5, 1, 10, 1496432585 ]
def __init__(self, code, **exception_kwargs): self.code = code # represents all identifiers which are assigned to at some point in # the code self.declared_identifiers = set() # represents all identifiers which are referenced before their # assignment, if any se...
nwjs/chromium.src
[ 136, 133, 136, 45, 1453904223 ]
def __init__(self, code, **exception_kwargs): self.codeargs = [] self.args = [] self.declared_identifiers = set() self.undeclared_identifiers = set() if isinstance(code, compat.string_types): if re.match(r"\S", code) and not re.match(r",\s*$", code): #...
nwjs/chromium.src
[ 136, 133, 136, 45, 1453904223 ]
def __init__(self, code, **exception_kwargs): m = re.match(r"^(\w+)(?:\s+(.*?))?:\s*(#|$)", code.strip(), re.S) if not m: raise exceptions.CompileException( "Fragment '%s' is not a partial control statement" % code, **exception_kwargs ) if ...
nwjs/chromium.src
[ 136, 133, 136, 45, 1453904223 ]
def __init__(self, code, allow_kwargs=True, **exception_kwargs): self.code = code expr = pyparser.parse(code, "exec", **exception_kwargs) f = pyparser.ParseFunc(self, **exception_kwargs) f.visit(expr) if not hasattr(self, "funcname"): raise exceptions.CompileExceptio...
nwjs/chromium.src
[ 136, 133, 136, 45, 1453904223 ]
def allargnames(self): return tuple(self.argnames) + tuple(self.kwargnames)
nwjs/chromium.src
[ 136, 133, 136, 45, 1453904223 ]
def setup(self): """setup the test """ pass
eoyilmaz/anima
[ 119, 27, 119, 3, 1392807749 ]
def test_arnold_b85_encode_packs_zeros_properly(self): """testing if arnold_b85_encode is packing zeros properly """ raw_data = [ struct.pack('f', 0.0), struct.pack('ffff', 0.0, 0.0, 3.484236717224121, 0.0) ] encoded_data = [ 'z', ...
eoyilmaz/anima
[ 119, 27, 119, 3, 1392807749 ]
def test_arnold_b85_decode_is_working_properly(self): """testing if arnold_b85_decode is working properly """ raw_data = [ struct.pack('f', 2), struct.pack('f', 3.484236717224121), ] encoded_data = [ '8TFfd', '8^RH(', ] ...
eoyilmaz/anima
[ 119, 27, 119, 3, 1392807749 ]
def test_arnold_b85_decode_unpacks_ones_properly(self): """testing if arnold_b85_decode is unpacking zeros properly """ raw_data = [ struct.pack('f', 1.0), struct.pack('ffff', 1.0, 1.0, 3.484236717224121, 1.0) ] encoded_data = [ 'y', ...
eoyilmaz/anima
[ 119, 27, 119, 3, 1392807749 ]
def send_file(ip_addr, src_ip_addr="127.0.0.1", file_path="", max_packetsize=512, SLEEP=0.1): """ send_file will send a file to the ip_addr given. A file path is required to send the file. Max packet size can be determined automatically. :param ip_addr: IP Address to send the file to. :param src_ip_addr: IP Addre...
ytisf/PyExfil
[ 668, 140, 668, 1, 1417115184 ]
def main(): import csv, os os.makedirs('headerRemoved', exist_ok=True) # Loop through every file in the current working directory. for csvFilename in os.listdir('.'): if not csvFilename.endswith(".csv"): continue # skip non-csv files print("Removing header from " + csvFil...
JoseALermaIII/python-tutorials
[ 2, 3, 2, 10, 1475898535 ]
def upgrade(): op.create_table('service_callback_api_history', sa.Column('id', postgresql.UUID(as_uuid=True), nullable=False), sa.Column('service_id', postgresql.UUID(as_uuid=True), nullable=False), sa.Column('url', sa.String(), nullable=False), sa.Column('bearer_token', sa.String(), nullable=False)...
alphagov/notifications-api
[ 56, 23, 56, 6, 1447855037 ]
def __init__(self, client, config, serializer, deserializer) -> None: self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list_by_subscription_id( self, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_by_subs...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list_by_resource_group( self, resource_group_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL url = self.list_by_reso...
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def setUp(self): super(FileDiffTests, self).setUp() diff = ( b'diff --git a/README b/README\n' b'index 3d2b777..48272a3 100644\n' b'--- README\n' b'+++ README\n' b'@@ -2 +2,2 @@\n' b'-blah blah\n' b'+blah!\n' ...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_set_line_counts(self): """Testing FileDiff.set_line_counts""" self.filediff.set_line_counts( raw_insert_count=1, raw_delete_count=2, insert_count=3, delete_count=4, replace_count=5, equal_count=6, total_line_cou...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_diff_hashes(self): """Testing FileDiff with multiple entries and same diff data deduplicates data """ data = ( b'diff -rcN orig_src/foo.c new_src/foo.c\n' b'*** orig_src/foo.c\t2007-01-24 02:11:31.000000000 -0800\n' b'--- new_src/foo.c\t2007-0...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_get_base_filediff_without_commit(self): """Testing FileDiff.get_base_filediff without associated commit""" filediff = self.create_filediff(self.diffset) self.assertIsNone(filediff.get_base_filediff(base_commit=None))
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_is_symlink_with_false(self): """Testing FileDiff.is_symlink with False""" filediff = self.create_filediff(self.diffset) filediff.extra_data['is_symlink'] = True filediff.is_symlink = False # Explicitly test against the booleans, to avoid truthiness tests. self.a...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_new_symlink_target(self): """Testing FileDiff.new_symlink_target""" filediff = self.create_filediff(self.diffset) filediff.new_symlink_target = 'new/path' self.assertEqual(filediff.new_symlink_target, 'new/path') self.assertEqual(filediff.extra_data.get('new_symlink_tar...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_new_unix_mode(self): """Testing FileDiff.new_unix_mode""" filediff = self.create_filediff(self.diffset) filediff.new_unix_mode = '0100750' self.assertEqual(filediff.new_unix_mode, '0100750') self.assertEqual(filediff.extra_data.get('new_unix_mode'), '0100750')
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def setUp(self): super(FileDiffAncestorTests, self).setUp() self.set_up_filediffs()
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_get_ancestors_full(self): """Testing FileDiff.get_ancestors with minimal=False""" ancestors = {} with self.assertNumQueries(len(self.filediffs)): for filediff in self.filediffs: ancestors[filediff] = filediff.get_ancestors( minimal=False,...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_get_ancestors_no_update(self): """Testing FileDiff.get_ancestors without caching""" ancestors = {} for filediff in self.filediffs: with self.assertNumQueries(0): ancestors[filediff] = filediff.get_ancestors( minimal=True, ...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def test_get_ancestors_cached_no_filediffs(self): """Testing FileDiff.get_ancestors with cached results when no FileDiffs are provided """ ancestors = {} for filediff in self.filediffs: filediff.get_ancestors(minimal=True, filediffs...
reviewboard/reviewboard
[ 1464, 419, 1464, 1, 1250977189 ]
def build_list_request( subscription_id: str, resource_group_name: str, account_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_get_request( subscription_id: str, resource_group_name: str, account_name: str, backup_policy_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_create_request_initial( subscription_id: str, resource_group_name: str, account_name: str, backup_policy_name: str, *, json: JSONType = None, content: Any = None, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_update_request_initial( subscription_id: str, resource_group_name: str, account_name: str, backup_policy_name: str, *, json: JSONType = None, content: Any = None, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def build_delete_request_initial( subscription_id: str, resource_group_name: str, account_name: str, backup_policy_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self._config = config
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]
def list( self, resource_group_name: str, account_name: str, **kwargs: Any
Azure/azure-sdk-for-python
[ 3526, 2256, 3526, 986, 1335285972 ]