partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
test
Message.defer
Defer the message. This message will remain in the queue but must be received specifically by its sequence number in order to be processed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servicebus.common.errors.MessageLo...
azure-servicebus/azure/servicebus/common/message.py
def defer(self): """Defer the message. This message will remain in the queue but must be received specifically by its sequence number in order to be processed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servic...
def defer(self): """Defer the message. This message will remain in the queue but must be received specifically by its sequence number in order to be processed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servic...
[ "Defer", "the", "message", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/common/message.py#L360-L375
[ "def", "defer", "(", "self", ")", ":", "self", ".", "_is_live", "(", "'defer'", ")", "try", ":", "self", ".", "message", ".", "modify", "(", "True", ",", "True", ")", "except", "Exception", "as", "e", ":", "raise", "MessageSettleFailed", "(", "\"defer\...
d7306fde32f60a293a7567678692bdad31e4b667
test
DeferredMessage.dead_letter
Move the message to the Dead Letter queue. The Dead Letter queue is a sub-queue that can be used to store messages that failed to process correctly, or otherwise require further inspection or processing. The queue can also be configured to send expired messages to the Dead Letter queue. ...
azure-servicebus/azure/servicebus/common/message.py
def dead_letter(self, description=None): """Move the message to the Dead Letter queue. The Dead Letter queue is a sub-queue that can be used to store messages that failed to process correctly, or otherwise require further inspection or processing. The queue can also be configured to sen...
def dead_letter(self, description=None): """Move the message to the Dead Letter queue. The Dead Letter queue is a sub-queue that can be used to store messages that failed to process correctly, or otherwise require further inspection or processing. The queue can also be configured to sen...
[ "Move", "the", "message", "to", "the", "Dead", "Letter", "queue", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/common/message.py#L495-L517
[ "def", "dead_letter", "(", "self", ",", "description", "=", "None", ")", ":", "self", ".", "_is_live", "(", "'dead-letter'", ")", "details", "=", "{", "'deadletter-reason'", ":", "str", "(", "description", ")", "if", "description", "else", "\"\"", ",", "'d...
d7306fde32f60a293a7567678692bdad31e4b667
test
DeferredMessage.abandon
Abandon the message. This message will be returned to the queue to be reprocessed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servicebus.common.errors.MessageLockExpired if message lock has already expired. :raises: ~...
azure-servicebus/azure/servicebus/common/message.py
def abandon(self): """Abandon the message. This message will be returned to the queue to be reprocessed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servicebus.common.errors.MessageLockExpired if message lock has alrea...
def abandon(self): """Abandon the message. This message will be returned to the queue to be reprocessed. :raises: ~azure.servicebus.common.errors.MessageAlreadySettled if the message has been settled. :raises: ~azure.servicebus.common.errors.MessageLockExpired if message lock has alrea...
[ "Abandon", "the", "message", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/common/message.py#L519-L531
[ "def", "abandon", "(", "self", ")", ":", "self", ".", "_is_live", "(", "'abandon'", ")", "self", ".", "_receiver", ".", "_settle_deferred", "(", "'abandoned'", ",", "[", "self", ".", "lock_token", "]", ")", "# pylint: disable=protected-access", "self", ".", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
VpnSitesConfigurationOperations.download
Gives the sas-url to download the configurations for vpn-sites in a resource group. :param resource_group_name: The resource group name. :type resource_group_name: str :param virtual_wan_name: The name of the VirtualWAN for which configuration of all vpn-sites is needed. ...
azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/vpn_sites_configuration_operations.py
def download( self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, polling=True, **operation_config): """Gives the sas-url to download the configurations for vpn-sites in a resource group. :param resource_group_name: ...
def download( self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, polling=True, **operation_config): """Gives the sas-url to download the configurations for vpn-sites in a resource group. :param resource_group_name: ...
[ "Gives", "the", "sas", "-", "url", "to", "download", "the", "configurations", "for", "vpn", "-", "sites", "in", "a", "resource", "group", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/vpn_sites_configuration_operations.py#L83-L133
[ "def", "download", "(", "self", ",", "resource_group_name", ",", "virtual_wan_name", ",", "vpn_sites", "=", "None", ",", "output_blob_sas_url", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.models
Module depends on the API version: * 2015-06-15: :mod:`v2015_06_15.models<azure.mgmt.compute.v2015_06_15.models>` * 2016-03-30: :mod:`v2016_03_30.models<azure.mgmt.compute.v2016_03_30.models>` * 2016-04-30-preview: :mod:`v2016_04_30_preview.models<azure.mgmt.compute.v2016_04_30_preview...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-06-15: :mod:`v2015_06_15.models<azure.mgmt.compute.v2015_06_15.models>` * 2016-03-30: :mod:`v2016_03_30.models<azure.mgmt.compute.v2016_03_30.models>` * 2016-04-30-preview: :mod:`v201...
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-06-15: :mod:`v2015_06_15.models<azure.mgmt.compute.v2015_06_15.models>` * 2016-03-30: :mod:`v2016_03_30.models<azure.mgmt.compute.v2016_03_30.models>` * 2016-04-30-preview: :mod:`v201...
[ "Module", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L111-L163
[ "def", "models", "(", "cls", ",", "api_version", "=", "DEFAULT_API_VERSION", ")", ":", "if", "api_version", "==", "'2015-06-15'", ":", "from", ".", "v2015_06_15", "import", "models", "return", "models", "elif", "api_version", "==", "'2016-03-30'", ":", "from", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.disks
Instance depends on the API version: * 2016-04-30-preview: :class:`DisksOperations<azure.mgmt.compute.v2016_04_30_preview.operations.DisksOperations>` * 2017-03-30: :class:`DisksOperations<azure.mgmt.compute.v2017_03_30.operations.DisksOperations>` * 2018-04-01: :class:`DisksOperations...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def disks(self): """Instance depends on the API version: * 2016-04-30-preview: :class:`DisksOperations<azure.mgmt.compute.v2016_04_30_preview.operations.DisksOperations>` * 2017-03-30: :class:`DisksOperations<azure.mgmt.compute.v2017_03_30.operations.DisksOperations>` * 2018-04...
def disks(self): """Instance depends on the API version: * 2016-04-30-preview: :class:`DisksOperations<azure.mgmt.compute.v2016_04_30_preview.operations.DisksOperations>` * 2017-03-30: :class:`DisksOperations<azure.mgmt.compute.v2017_03_30.operations.DisksOperations>` * 2018-04...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L203-L225
[ "def", "disks", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'disks'", ")", "if", "api_version", "==", "'2016-04-30-preview'", ":", "from", ".", "v2016_04_30_preview", ".", "operations", "import", "DisksOperations", "as", "Op...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.galleries
Instance depends on the API version: * 2018-06-01: :class:`GalleriesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleriesOperations>` * 2019-03-01: :class:`GalleriesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleriesOperations>`
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def galleries(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleriesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleriesOperations>` * 2019-03-01: :class:`GalleriesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleriesOperations>` """ ...
def galleries(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleriesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleriesOperations>` * 2019-03-01: :class:`GalleriesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleriesOperations>` """ ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L228-L241
[ "def", "galleries", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'galleries'", ")", "if", "api_version", "==", "'2018-06-01'", ":", "from", ".", "v2018_06_01", ".", "operations", "import", "GalleriesOperations", "as", "Operat...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.gallery_image_versions
Instance depends on the API version: * 2018-06-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImageVersionsOperations>` * 2019-03-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryImageVersionsOperations>`
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def gallery_image_versions(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImageVersionsOperations>` * 2019-03-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2019_03_01.ope...
def gallery_image_versions(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImageVersionsOperations>` * 2019-03-01: :class:`GalleryImageVersionsOperations<azure.mgmt.compute.v2019_03_01.ope...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L244-L257
[ "def", "gallery_image_versions", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'gallery_image_versions'", ")", "if", "api_version", "==", "'2018-06-01'", ":", "from", ".", "v2018_06_01", ".", "operations", "import", "GalleryImageV...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.gallery_images
Instance depends on the API version: * 2018-06-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImagesOperations>` * 2019-03-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryImagesOperations>`
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def gallery_images(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImagesOperations>` * 2019-03-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryImagesOperatio...
def gallery_images(self): """Instance depends on the API version: * 2018-06-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2018_06_01.operations.GalleryImagesOperations>` * 2019-03-01: :class:`GalleryImagesOperations<azure.mgmt.compute.v2019_03_01.operations.GalleryImagesOperatio...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L260-L273
[ "def", "gallery_images", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'gallery_images'", ")", "if", "api_version", "==", "'2018-06-01'", ":", "from", ".", "v2018_06_01", ".", "operations", "import", "GalleryImagesOperations", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.images
Instance depends on the API version: * 2016-04-30-preview: :class:`ImagesOperations<azure.mgmt.compute.v2016_04_30_preview.operations.ImagesOperations>` * 2017-03-30: :class:`ImagesOperations<azure.mgmt.compute.v2017_03_30.operations.ImagesOperations>` * 2017-12-01: :class:`ImagesOpera...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def images(self): """Instance depends on the API version: * 2016-04-30-preview: :class:`ImagesOperations<azure.mgmt.compute.v2016_04_30_preview.operations.ImagesOperations>` * 2017-03-30: :class:`ImagesOperations<azure.mgmt.compute.v2017_03_30.operations.ImagesOperations>` * 20...
def images(self): """Instance depends on the API version: * 2016-04-30-preview: :class:`ImagesOperations<azure.mgmt.compute.v2016_04_30_preview.operations.ImagesOperations>` * 2017-03-30: :class:`ImagesOperations<azure.mgmt.compute.v2017_03_30.operations.ImagesOperations>` * 20...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L276-L304
[ "def", "images", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'images'", ")", "if", "api_version", "==", "'2016-04-30-preview'", ":", "from", ".", "v2016_04_30_preview", ".", "operations", "import", "ImagesOperations", "as", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.log_analytics
Instance depends on the API version: * 2017-12-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2017_12_01.operations.LogAnalyticsOperations>` * 2018-04-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2018_04_01.operations.LogAnalyticsOperations>` * 2018-06-01: :class:`Log...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def log_analytics(self): """Instance depends on the API version: * 2017-12-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2017_12_01.operations.LogAnalyticsOperations>` * 2018-04-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2018_04_01.operations.LogAnalyticsOperations>` ...
def log_analytics(self): """Instance depends on the API version: * 2017-12-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2017_12_01.operations.LogAnalyticsOperations>` * 2018-04-01: :class:`LogAnalyticsOperations<azure.mgmt.compute.v2018_04_01.operations.LogAnalyticsOperations>` ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L307-L329
[ "def", "log_analytics", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'log_analytics'", ")", "if", "api_version", "==", "'2017-12-01'", ":", "from", ".", "v2017_12_01", ".", "operations", "import", "LogAnalyticsOperations", "as"...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.resource_skus
Instance depends on the API version: * 2017-03-30: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_03_30.operations.ResourceSkusOperations>` * 2017-09-01: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_09_01.operations.ResourceSkusOperations>` * 2019-04-01: :class:`Res...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def resource_skus(self): """Instance depends on the API version: * 2017-03-30: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_03_30.operations.ResourceSkusOperations>` * 2017-09-01: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_09_01.operations.ResourceSkusOperations>` ...
def resource_skus(self): """Instance depends on the API version: * 2017-03-30: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_03_30.operations.ResourceSkusOperations>` * 2017-09-01: :class:`ResourceSkusOperations<azure.mgmt.compute.v2017_09_01.operations.ResourceSkusOperations>` ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L379-L395
[ "def", "resource_skus", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'resource_skus'", ")", "if", "api_version", "==", "'2017-03-30'", ":", "from", ".", "v2017_03_30", ".", "operations", "import", "ResourceSkusOperations", "as"...
d7306fde32f60a293a7567678692bdad31e4b667
test
ComputeManagementClient.usage
Instance depends on the API version: * 2015-06-15: :class:`UsageOperations<azure.mgmt.compute.v2015_06_15.operations.UsageOperations>` * 2016-03-30: :class:`UsageOperations<azure.mgmt.compute.v2016_03_30.operations.UsageOperations>` * 2016-04-30-preview: :class:`UsageOperations<azure.m...
azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py
def usage(self): """Instance depends on the API version: * 2015-06-15: :class:`UsageOperations<azure.mgmt.compute.v2015_06_15.operations.UsageOperations>` * 2016-03-30: :class:`UsageOperations<azure.mgmt.compute.v2016_03_30.operations.UsageOperations>` * 2016-04-30-preview: :cl...
def usage(self): """Instance depends on the API version: * 2015-06-15: :class:`UsageOperations<azure.mgmt.compute.v2015_06_15.operations.UsageOperations>` * 2016-03-30: :class:`UsageOperations<azure.mgmt.compute.v2016_03_30.operations.UsageOperations>` * 2016-04-30-preview: :cl...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py#L423-L457
[ "def", "usage", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'usage'", ")", "if", "api_version", "==", "'2015-06-15'", ":", "from", ".", "v2015_06_15", ".", "operations", "import", "UsageOperations", "as", "OperationClass", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
guess_service_info_from_path
Guess Python Autorest options based on the spec path. Expected path: specification/compute/resource-manager/readme.md
scripts/build_sdk.py
def guess_service_info_from_path(spec_path): """Guess Python Autorest options based on the spec path. Expected path: specification/compute/resource-manager/readme.md """ spec_path = spec_path.lower() spec_path = spec_path[spec_path.index("specification"):] # Might raise and it's ok split_sp...
def guess_service_info_from_path(spec_path): """Guess Python Autorest options based on the spec path. Expected path: specification/compute/resource-manager/readme.md """ spec_path = spec_path.lower() spec_path = spec_path[spec_path.index("specification"):] # Might raise and it's ok split_sp...
[ "Guess", "Python", "Autorest", "options", "based", "on", "the", "spec", "path", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/scripts/build_sdk.py#L19-L35
[ "def", "guess_service_info_from_path", "(", "spec_path", ")", ":", "spec_path", "=", "spec_path", ".", "lower", "(", ")", "spec_path", "=", "spec_path", "[", "spec_path", ".", "index", "(", "\"specification\"", ")", ":", "]", "# Might raise and it's ok", "split_sp...
d7306fde32f60a293a7567678692bdad31e4b667
test
BaseHandler.open
Open handler connection and authenticate session. If the handler is already open, this operation will do nothing. A handler opened with this method must be explicitly closed. It is recommended to open a handler within a context manager as opposed to calling the method directly. ...
azure-servicebus/azure/servicebus/base_handler.py
def open(self): """Open handler connection and authenticate session. If the handler is already open, this operation will do nothing. A handler opened with this method must be explicitly closed. It is recommended to open a handler within a context manager as opposed to calling th...
def open(self): """Open handler connection and authenticate session. If the handler is already open, this operation will do nothing. A handler opened with this method must be explicitly closed. It is recommended to open a handler within a context manager as opposed to calling th...
[ "Open", "handler", "connection", "and", "authenticate", "session", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/base_handler.py#L139-L162
[ "def", "open", "(", "self", ")", ":", "if", "self", ".", "running", ":", "return", "self", ".", "running", "=", "True", "try", ":", "self", ".", "_handler", ".", "open", "(", "connection", "=", "self", ".", "connection", ")", "while", "not", "self", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
PowerShellOperations.update_command
Updates a running PowerShell command with more data. :param resource_group_name: The resource group name uniquely identifies the resource group within the user subscriptionId. :type resource_group_name: str :param node_name: The node name (256 characters maximum). :type node_na...
azure-mgmt-servermanager/azure/mgmt/servermanager/operations/power_shell_operations.py
def update_command( self, resource_group_name, node_name, session, pssession, custom_headers=None, raw=False, polling=True, **operation_config): """Updates a running PowerShell command with more data. :param resource_group_name: The resource group name uniquely identifies the resou...
def update_command( self, resource_group_name, node_name, session, pssession, custom_headers=None, raw=False, polling=True, **operation_config): """Updates a running PowerShell command with more data. :param resource_group_name: The resource group name uniquely identifies the resou...
[ "Updates", "a", "running", "PowerShell", "command", "with", "more", "data", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-servermanager/azure/mgmt/servermanager/operations/power_shell_operations.py#L328-L381
[ "def", "update_command", "(", "self", ",", "resource_group_name", ",", "node_name", ",", "session", ",", "pssession", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", "*", "operation_config", ")", ":", "r...
d7306fde32f60a293a7567678692bdad31e4b667
test
ApplicationDefinitionsOperations.delete_by_id
Deletes the managed application definition. :param application_definition_id: The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGroup...
azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py
def delete_by_id( self, application_definition_id, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes the managed application definition. :param application_definition_id: The fully qualified ID of the managed application definition, including the managed...
def delete_by_id( self, application_definition_id, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes the managed application definition. :param application_definition_id: The fully qualified ID of the managed application definition, including the managed...
[ "Deletes", "the", "managed", "application", "definition", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py#L452-L491
[ "def", "delete_by_id", "(", "self", ",", "application_definition_id", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", "*", "operation_config", ")", ":", "raw_result", "=", "self", ".", "_delete_by_id_initial...
d7306fde32f60a293a7567678692bdad31e4b667
test
ApplicationDefinitionsOperations.create_or_update_by_id
Creates a new managed application definition. :param application_definition_id: The fully qualified ID of the managed application definition, including the managed application name and the managed application definition resource type. Use the format, /subscriptions/{guid}/resourceGro...
azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py
def create_or_update_by_id( self, application_definition_id, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates a new managed application definition. :param application_definition_id: The fully qualified ID of the managed application definitio...
def create_or_update_by_id( self, application_definition_id, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates a new managed application definition. :param application_definition_id: The fully qualified ID of the managed application definitio...
[ "Creates", "a", "new", "managed", "application", "definition", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-resource/azure/mgmt/resource/managedapplications/operations/application_definitions_operations.py#L542-L592
[ "def", "create_or_update_by_id", "(", "self", ",", "application_definition_id", ",", "parameters", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", "*", "operation_config", ")", ":", "raw_result", "=", "self"...
d7306fde32f60a293a7567678692bdad31e4b667
test
DnsManagementClient.models
Module depends on the API version: * 2016-04-01: :mod:`v2016_04_01.models<azure.mgmt.dns.v2016_04_01.models>` * 2018-03-01-preview: :mod:`v2018_03_01_preview.models<azure.mgmt.dns.v2018_03_01_preview.models>` * 2018-05-01: :mod:`v2018_05_01.models<azure.mgmt.dns.v2018_05_01.models>`
azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2016-04-01: :mod:`v2016_04_01.models<azure.mgmt.dns.v2016_04_01.models>` * 2018-03-01-preview: :mod:`v2018_03_01_preview.models<azure.mgmt.dns.v2018_03_01_preview.models>` * 2018-05-01: :m...
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2016-04-01: :mod:`v2016_04_01.models<azure.mgmt.dns.v2016_04_01.models>` * 2018-03-01-preview: :mod:`v2018_03_01_preview.models<azure.mgmt.dns.v2018_03_01_preview.models>` * 2018-05-01: :m...
[ "Module", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py#L104-L120
[ "def", "models", "(", "cls", ",", "api_version", "=", "DEFAULT_API_VERSION", ")", ":", "if", "api_version", "==", "'2016-04-01'", ":", "from", ".", "v2016_04_01", "import", "models", "return", "models", "elif", "api_version", "==", "'2018-03-01-preview'", ":", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
DnsManagementClient.dns_resource_reference
Instance depends on the API version: * 2018-05-01: :class:`DnsResourceReferenceOperations<azure.mgmt.dns.v2018_05_01.operations.DnsResourceReferenceOperations>`
azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
def dns_resource_reference(self): """Instance depends on the API version: * 2018-05-01: :class:`DnsResourceReferenceOperations<azure.mgmt.dns.v2018_05_01.operations.DnsResourceReferenceOperations>` """ api_version = self._get_api_version('dns_resource_reference') if api_versi...
def dns_resource_reference(self): """Instance depends on the API version: * 2018-05-01: :class:`DnsResourceReferenceOperations<azure.mgmt.dns.v2018_05_01.operations.DnsResourceReferenceOperations>` """ api_version = self._get_api_version('dns_resource_reference') if api_versi...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py#L123-L133
[ "def", "dns_resource_reference", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'dns_resource_reference'", ")", "if", "api_version", "==", "'2018-05-01'", ":", "from", ".", "v2018_05_01", ".", "operations", "import", "DnsResourceRe...
d7306fde32f60a293a7567678692bdad31e4b667
test
DnsManagementClient.record_sets
Instance depends on the API version: * 2016-04-01: :class:`RecordSetsOperations<azure.mgmt.dns.v2016_04_01.operations.RecordSetsOperations>` * 2018-03-01-preview: :class:`RecordSetsOperations<azure.mgmt.dns.v2018_03_01_preview.operations.RecordSetsOperations>` * 2018-05-01: :class:`Rec...
azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
def record_sets(self): """Instance depends on the API version: * 2016-04-01: :class:`RecordSetsOperations<azure.mgmt.dns.v2016_04_01.operations.RecordSetsOperations>` * 2018-03-01-preview: :class:`RecordSetsOperations<azure.mgmt.dns.v2018_03_01_preview.operations.RecordSetsOperations>` ...
def record_sets(self): """Instance depends on the API version: * 2016-04-01: :class:`RecordSetsOperations<azure.mgmt.dns.v2016_04_01.operations.RecordSetsOperations>` * 2018-03-01-preview: :class:`RecordSetsOperations<azure.mgmt.dns.v2018_03_01_preview.operations.RecordSetsOperations>` ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py#L136-L152
[ "def", "record_sets", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'record_sets'", ")", "if", "api_version", "==", "'2016-04-01'", ":", "from", ".", "v2016_04_01", ".", "operations", "import", "RecordSetsOperations", "as", "O...
d7306fde32f60a293a7567678692bdad31e4b667
test
DnsManagementClient.zones
Instance depends on the API version: * 2016-04-01: :class:`ZonesOperations<azure.mgmt.dns.v2016_04_01.operations.ZonesOperations>` * 2018-03-01-preview: :class:`ZonesOperations<azure.mgmt.dns.v2018_03_01_preview.operations.ZonesOperations>` * 2018-05-01: :class:`ZonesOperations<azure.m...
azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
def zones(self): """Instance depends on the API version: * 2016-04-01: :class:`ZonesOperations<azure.mgmt.dns.v2016_04_01.operations.ZonesOperations>` * 2018-03-01-preview: :class:`ZonesOperations<azure.mgmt.dns.v2018_03_01_preview.operations.ZonesOperations>` * 2018-05-01: :cl...
def zones(self): """Instance depends on the API version: * 2016-04-01: :class:`ZonesOperations<azure.mgmt.dns.v2016_04_01.operations.ZonesOperations>` * 2018-03-01-preview: :class:`ZonesOperations<azure.mgmt.dns.v2018_03_01_preview.operations.ZonesOperations>` * 2018-05-01: :cl...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py#L155-L171
[ "def", "zones", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'zones'", ")", "if", "api_version", "==", "'2016-04-01'", ":", "from", ".", "v2016_04_01", ".", "operations", "import", "ZonesOperations", "as", "OperationClass", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
KeyVaultManagementClient.models
Module depends on the API version: * 2016-10-01: :mod:`v2016_10_01.models<azure.mgmt.keyvault.v2016_10_01.models>` * 2018-02-14: :mod:`v2018_02_14.models<azure.mgmt.keyvault.v2018_02_14.models>`
azure-mgmt-keyvault/azure/mgmt/keyvault/key_vault_management_client.py
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2016-10-01: :mod:`v2016_10_01.models<azure.mgmt.keyvault.v2016_10_01.models>` * 2018-02-14: :mod:`v2018_02_14.models<azure.mgmt.keyvault.v2018_02_14.models>` """ if api_version == '20...
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2016-10-01: :mod:`v2016_10_01.models<azure.mgmt.keyvault.v2016_10_01.models>` * 2018-02-14: :mod:`v2018_02_14.models<azure.mgmt.keyvault.v2018_02_14.models>` """ if api_version == '20...
[ "Module", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-keyvault/azure/mgmt/keyvault/key_vault_management_client.py#L100-L112
[ "def", "models", "(", "cls", ",", "api_version", "=", "DEFAULT_API_VERSION", ")", ":", "if", "api_version", "==", "'2016-10-01'", ":", "from", ".", "v2016_10_01", "import", "models", "return", "models", "elif", "api_version", "==", "'2018-02-14'", ":", "from", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
SpellCheckAPI.spell_checker
The Bing Spell Check API lets you perform contextual grammar and spell checking. Bing has developed a web-based spell-checker that leverages machine learning and statistical machine translation to dynamically train a constantly evolving and highly contextual algorithm. The spell-checker ...
azure-cognitiveservices-language-spellcheck/azure/cognitiveservices/language/spellcheck/spell_check_api.py
def spell_checker( self, text, accept_language=None, pragma=None, user_agent=None, client_id=None, client_ip=None, location=None, action_type=None, app_name=None, country_code=None, client_machine_name=None, doc_id=None, market=None, session_id=None, set_lang=None, user_id=None, mode=None, pre_context_text=...
def spell_checker( self, text, accept_language=None, pragma=None, user_agent=None, client_id=None, client_ip=None, location=None, action_type=None, app_name=None, country_code=None, client_machine_name=None, doc_id=None, market=None, session_id=None, set_lang=None, user_id=None, mode=None, pre_context_text=...
[ "The", "Bing", "Spell", "Check", "API", "lets", "you", "perform", "contextual", "grammar", "and", "spell", "checking", ".", "Bing", "has", "developed", "a", "web", "-", "based", "spell", "-", "checker", "that", "leverages", "machine", "learning", "and", "sta...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-language-spellcheck/azure/cognitiveservices/language/spellcheck/spell_check_api.py#L69-L371
[ "def", "spell_checker", "(", "self", ",", "text", ",", "accept_language", "=", "None", ",", "pragma", "=", "None", ",", "user_agent", "=", "None", ",", "client_id", "=", "None", ",", "client_ip", "=", "None", ",", "location", "=", "None", ",", "action_ty...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPClient.set_proxy
Sets the proxy server host and port for the HTTP CONNECT Tunnelling. host: Address of the proxy. Ex: '192.168.0.100' port: Port of the proxy. Ex: 6000 user: User for proxy authorization. password: Password for proxy authorization.
azure-servicebus/azure/servicebus/control_client/_http/httpclient.py
def set_proxy(self, host, port, user, password): ''' Sets the proxy server host and port for the HTTP CONNECT Tunnelling. host: Address of the proxy. Ex: '192.168.0.100' port: Port of the proxy. Ex: 6000 user: User for proxy authorization. ...
def set_proxy(self, host, port, user, password): ''' Sets the proxy server host and port for the HTTP CONNECT Tunnelling. host: Address of the proxy. Ex: '192.168.0.100' port: Port of the proxy. Ex: 6000 user: User for proxy authorization. ...
[ "Sets", "the", "proxy", "server", "host", "and", "port", "for", "the", "HTTP", "CONNECT", "Tunnelling", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/control_client/_http/httpclient.py#L64-L80
[ "def", "set_proxy", "(", "self", ",", "host", ",", "port", ",", "user", ",", "password", ")", ":", "self", ".", "proxy_host", "=", "host", "self", ".", "proxy_port", "=", "port", "self", ".", "proxy_user", "=", "user", "self", ".", "proxy_password", "=...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPClient.get_uri
Return the target uri for the request.
azure-servicebus/azure/servicebus/control_client/_http/httpclient.py
def get_uri(self, request): ''' Return the target uri for the request.''' protocol = request.protocol_override \ if request.protocol_override else self.protocol protocol = protocol.lower() port = HTTP_PORT if protocol == 'http' else HTTPS_PORT return protocol + '://' ...
def get_uri(self, request): ''' Return the target uri for the request.''' protocol = request.protocol_override \ if request.protocol_override else self.protocol protocol = protocol.lower() port = HTTP_PORT if protocol == 'http' else HTTPS_PORT return protocol + '://' ...
[ "Return", "the", "target", "uri", "for", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/control_client/_http/httpclient.py#L82-L88
[ "def", "get_uri", "(", "self", ",", "request", ")", ":", "protocol", "=", "request", ".", "protocol_override", "if", "request", ".", "protocol_override", "else", "self", ".", "protocol", "protocol", "=", "protocol", ".", "lower", "(", ")", "port", "=", "HT...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPClient.get_connection
Create connection for the request.
azure-servicebus/azure/servicebus/control_client/_http/httpclient.py
def get_connection(self, request): ''' Create connection for the request. ''' protocol = request.protocol_override \ if request.protocol_override else self.protocol protocol = protocol.lower() target_host = request.host # target_port = HTTP_PORT if protocol == 'http' ...
def get_connection(self, request): ''' Create connection for the request. ''' protocol = request.protocol_override \ if request.protocol_override else self.protocol protocol = protocol.lower() target_host = request.host # target_port = HTTP_PORT if protocol == 'http' ...
[ "Create", "connection", "for", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/control_client/_http/httpclient.py#L90-L110
[ "def", "get_connection", "(", "self", ",", "request", ")", ":", "protocol", "=", "request", ".", "protocol_override", "if", "request", ".", "protocol_override", "else", "self", ".", "protocol", "protocol", "=", "protocol", ".", "lower", "(", ")", "target_host"...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPClient.perform_request
Sends request to cloud service server and return the response.
azure-servicebus/azure/servicebus/control_client/_http/httpclient.py
def perform_request(self, request): ''' Sends request to cloud service server and return the response. ''' connection = self.get_connection(request) try: connection.putrequest(request.method, request.path) self.send_request_headers(connection, request.headers) ...
def perform_request(self, request): ''' Sends request to cloud service server and return the response. ''' connection = self.get_connection(request) try: connection.putrequest(request.method, request.path) self.send_request_headers(connection, request.headers) ...
[ "Sends", "request", "to", "cloud", "service", "server", "and", "return", "the", "response", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicebus/azure/servicebus/control_client/_http/httpclient.py#L164-L215
[ "def", "perform_request", "(", "self", ",", "request", ")", ":", "connection", "=", "self", ".", "get_connection", "(", "request", ")", "try", ":", "connection", ".", "putrequest", "(", "request", ".", "method", ",", "request", ".", "path", ")", "self", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
ClustersOperations.execute_script_actions
Executes script actions on the specified HDInsight cluster. :param resource_group_name: The name of the resource group. :type resource_group_name: str :param cluster_name: The name of the cluster. :type cluster_name: str :param persist_on_success: Gets or sets if the scripts nee...
azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py
def execute_script_actions( self, resource_group_name, cluster_name, persist_on_success, script_actions=None, custom_headers=None, raw=False, polling=True, **operation_config): """Executes script actions on the specified HDInsight cluster. :param resource_group_name: The name of the resourc...
def execute_script_actions( self, resource_group_name, cluster_name, persist_on_success, script_actions=None, custom_headers=None, raw=False, polling=True, **operation_config): """Executes script actions on the specified HDInsight cluster. :param resource_group_name: The name of the resourc...
[ "Executes", "script", "actions", "on", "the", "specified", "HDInsight", "cluster", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py#L844-L891
[ "def", "execute_script_actions", "(", "self", ",", "resource_group_name", ",", "cluster_name", ",", "persist_on_success", ",", "script_actions", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.models
Module depends on the API version: * 2015-08-01: :mod:`v2015_08_01.models<azure.mgmt.eventhub.v2015_08_01.models>` * 2017-04-01: :mod:`v2017_04_01.models<azure.mgmt.eventhub.v2017_04_01.models>` * 2018-01-01-preview: :mod:`v2018_01_01_preview.models<azure.mgmt.eventhub.v2018_01_01_prev...
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-08-01: :mod:`v2015_08_01.models<azure.mgmt.eventhub.v2015_08_01.models>` * 2017-04-01: :mod:`v2017_04_01.models<azure.mgmt.eventhub.v2017_04_01.models>` * 2018-01-01-preview: :mod:`v2...
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-08-01: :mod:`v2015_08_01.models<azure.mgmt.eventhub.v2015_08_01.models>` * 2017-04-01: :mod:`v2017_04_01.models<azure.mgmt.eventhub.v2017_04_01.models>` * 2018-01-01-preview: :mod:`v2...
[ "Module", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L109-L125
[ "def", "models", "(", "cls", ",", "api_version", "=", "DEFAULT_API_VERSION", ")", ":", "if", "api_version", "==", "'2015-08-01'", ":", "from", ".", "v2015_08_01", "import", "models", "return", "models", "elif", "api_version", "==", "'2017-04-01'", ":", "from", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.clusters
Instance depends on the API version: * 2018-01-01-preview: :class:`ClustersOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ClustersOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def clusters(self): """Instance depends on the API version: * 2018-01-01-preview: :class:`ClustersOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ClustersOperations>` """ api_version = self._get_api_version('clusters') if api_version == '2018-01-01-preview': ...
def clusters(self): """Instance depends on the API version: * 2018-01-01-preview: :class:`ClustersOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ClustersOperations>` """ api_version = self._get_api_version('clusters') if api_version == '2018-01-01-preview': ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L128-L138
[ "def", "clusters", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'clusters'", ")", "if", "api_version", "==", "'2018-01-01-preview'", ":", "from", ".", "v2018_01_01_preview", ".", "operations", "import", "ClustersOperations", "a...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.configuration
Instance depends on the API version: * 2018-01-01-preview: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConfigurationOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def configuration(self): """Instance depends on the API version: * 2018-01-01-preview: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConfigurationOperations>` """ api_version = self._get_api_version('configuration') if api_version == '2018...
def configuration(self): """Instance depends on the API version: * 2018-01-01-preview: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConfigurationOperations>` """ api_version = self._get_api_version('configuration') if api_version == '2018...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L141-L151
[ "def", "configuration", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'configuration'", ")", "if", "api_version", "==", "'2018-01-01-preview'", ":", "from", ".", "v2018_01_01_preview", ".", "operations", "import", "ConfigurationOp...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.consumer_groups
Instance depends on the API version: * 2015-08-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2015_08_01.operations.ConsumerGroupsOperations>` * 2017-04-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2017_04_01.operations.ConsumerGroupsOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def consumer_groups(self): """Instance depends on the API version: * 2015-08-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2015_08_01.operations.ConsumerGroupsOperations>` * 2017-04-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2017_04_01.operations.ConsumerGroupsO...
def consumer_groups(self): """Instance depends on the API version: * 2015-08-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2015_08_01.operations.ConsumerGroupsOperations>` * 2017-04-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2017_04_01.operations.ConsumerGroupsO...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L154-L167
[ "def", "consumer_groups", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'consumer_groups'", ")", "if", "api_version", "==", "'2015-08-01'", ":", "from", ".", "v2015_08_01", ".", "operations", "import", "ConsumerGroupsOperations", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.disaster_recovery_configs
Instance depends on the API version: * 2017-04-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2017_04_01.operations.DisasterRecoveryConfigsOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def disaster_recovery_configs(self): """Instance depends on the API version: * 2017-04-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2017_04_01.operations.DisasterRecoveryConfigsOperations>` """ api_version = self._get_api_version('disaster_recovery_configs') ...
def disaster_recovery_configs(self): """Instance depends on the API version: * 2017-04-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2017_04_01.operations.DisasterRecoveryConfigsOperations>` """ api_version = self._get_api_version('disaster_recovery_configs') ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L170-L180
[ "def", "disaster_recovery_configs", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'disaster_recovery_configs'", ")", "if", "api_version", "==", "'2017-04-01'", ":", "from", ".", "v2017_04_01", ".", "operations", "import", "Disaste...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.event_hubs
Instance depends on the API version: * 2015-08-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2015_08_01.operations.EventHubsOperations>` * 2017-04-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2017_04_01.operations.EventHubsOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def event_hubs(self): """Instance depends on the API version: * 2015-08-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2015_08_01.operations.EventHubsOperations>` * 2017-04-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2017_04_01.operations.EventHubsOperations>` """ ...
def event_hubs(self): """Instance depends on the API version: * 2015-08-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2015_08_01.operations.EventHubsOperations>` * 2017-04-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2017_04_01.operations.EventHubsOperations>` """ ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L183-L196
[ "def", "event_hubs", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'event_hubs'", ")", "if", "api_version", "==", "'2015-08-01'", ":", "from", ".", "v2015_08_01", ".", "operations", "import", "EventHubsOperations", "as", "Oper...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.namespaces
Instance depends on the API version: * 2015-08-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2015_08_01.operations.NamespacesOperations>` * 2017-04-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2017_04_01.operations.NamespacesOperations>` * 2018-01-01-preview: :class:`N...
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def namespaces(self): """Instance depends on the API version: * 2015-08-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2015_08_01.operations.NamespacesOperations>` * 2017-04-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2017_04_01.operations.NamespacesOperations>` ...
def namespaces(self): """Instance depends on the API version: * 2015-08-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2015_08_01.operations.NamespacesOperations>` * 2017-04-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2017_04_01.operations.NamespacesOperations>` ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L199-L215
[ "def", "namespaces", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'namespaces'", ")", "if", "api_version", "==", "'2015-08-01'", ":", "from", ".", "v2015_08_01", ".", "operations", "import", "NamespacesOperations", "as", "Ope...
d7306fde32f60a293a7567678692bdad31e4b667
test
EventHubManagementClient.regions
Instance depends on the API version: * 2017-04-01: :class:`RegionsOperations<azure.mgmt.eventhub.v2017_04_01.operations.RegionsOperations>`
azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py
def regions(self): """Instance depends on the API version: * 2017-04-01: :class:`RegionsOperations<azure.mgmt.eventhub.v2017_04_01.operations.RegionsOperations>` """ api_version = self._get_api_version('regions') if api_version == '2017-04-01': from .v2017_04_01.o...
def regions(self): """Instance depends on the API version: * 2017-04-01: :class:`RegionsOperations<azure.mgmt.eventhub.v2017_04_01.operations.RegionsOperations>` """ api_version = self._get_api_version('regions') if api_version == '2017-04-01': from .v2017_04_01.o...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py#L237-L247
[ "def", "regions", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'regions'", ")", "if", "api_version", "==", "'2017-04-01'", ":", "from", ".", "v2017_04_01", ".", "operations", "import", "RegionsOperations", "as", "OperationCla...
d7306fde32f60a293a7567678692bdad31e4b667
test
FrontDoorManagementClient.check_front_door_name_availability
Check the availability of a Front Door resource name. :param name: The resource name to validate. :type name: str :param type: The type of the resource whose name is to be validated. Possible values include: 'Microsoft.Network/frontDoors', 'Microsoft.Network/frontDoors/fronten...
azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py
def check_front_door_name_availability( self, name, type, custom_headers=None, raw=False, **operation_config): """Check the availability of a Front Door resource name. :param name: The resource name to validate. :type name: str :param type: The type of the resource whose nam...
def check_front_door_name_availability( self, name, type, custom_headers=None, raw=False, **operation_config): """Check the availability of a Front Door resource name. :param name: The resource name to validate. :type name: str :param type: The type of the resource whose nam...
[ "Check", "the", "availability", "of", "a", "Front", "Door", "resource", "name", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py#L126-L188
[ "def", "check_front_door_name_availability", "(", "self", ",", "name", ",", "type", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "check_front_door_name_availability_input", "=", "models", ".", "CheckNam...
d7306fde32f60a293a7567678692bdad31e4b667
test
VaultsOperations.purge_deleted
Permanently deletes the specified vault. aka Purges the deleted Azure key vault. :param vault_name: The name of the soft-deleted vault. :type vault_name: str :param location: The location of the soft-deleted vault. :type location: str :param dict custom_headers: headers ...
azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/operations/vaults_operations.py
def purge_deleted( self, vault_name, location, custom_headers=None, raw=False, polling=True, **operation_config): """Permanently deletes the specified vault. aka Purges the deleted Azure key vault. :param vault_name: The name of the soft-deleted vault. :type vault_name: str ...
def purge_deleted( self, vault_name, location, custom_headers=None, raw=False, polling=True, **operation_config): """Permanently deletes the specified vault. aka Purges the deleted Azure key vault. :param vault_name: The name of the soft-deleted vault. :type vault_name: str ...
[ "Permanently", "deletes", "the", "specified", "vault", ".", "aka", "Purges", "the", "deleted", "Azure", "key", "vault", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-keyvault/azure/mgmt/keyvault/v2016_10_01/operations/vaults_operations.py#L718-L757
[ "def", "purge_deleted", "(", "self", ",", "vault_name", ",", "location", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "polling", "=", "True", ",", "*", "*", "operation_config", ")", ":", "raw_result", "=", "self", ".", "_purge_deleted...
d7306fde32f60a293a7567678692bdad31e4b667
test
HttpChallenge.get_authorization_server
Returns the URI for the authorization server if present, otherwise empty string.
azure-keyvault/azure/keyvault/http_challenge.py
def get_authorization_server(self): """ Returns the URI for the authorization server if present, otherwise empty string. """ value = '' for key in ['authorization_uri', 'authorization']: value = self.get_value(key) or '' if value: break return valu...
def get_authorization_server(self): """ Returns the URI for the authorization server if present, otherwise empty string. """ value = '' for key in ['authorization_uri', 'authorization']: value = self.get_value(key) or '' if value: break return valu...
[ "Returns", "the", "URI", "for", "the", "authorization", "server", "if", "present", "otherwise", "empty", "string", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/http_challenge.py#L70-L77
[ "def", "get_authorization_server", "(", "self", ")", ":", "value", "=", "''", "for", "key", "in", "[", "'authorization_uri'", ",", "'authorization'", "]", ":", "value", "=", "self", ".", "get_value", "(", "key", ")", "or", "''", "if", "value", ":", "brea...
d7306fde32f60a293a7567678692bdad31e4b667
test
HttpChallenge._validate_request_uri
Extracts the host authority from the given URI.
azure-keyvault/azure/keyvault/http_challenge.py
def _validate_request_uri(self, uri): """ Extracts the host authority from the given URI. """ if not uri: raise ValueError('request_uri cannot be empty') uri = parse.urlparse(uri) if not uri.netloc: raise ValueError('request_uri must be an absolute URI') ...
def _validate_request_uri(self, uri): """ Extracts the host authority from the given URI. """ if not uri: raise ValueError('request_uri cannot be empty') uri = parse.urlparse(uri) if not uri.netloc: raise ValueError('request_uri must be an absolute URI') ...
[ "Extracts", "the", "host", "authority", "from", "the", "given", "URI", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/http_challenge.py#L103-L115
[ "def", "_validate_request_uri", "(", "self", ",", "uri", ")", ":", "if", "not", "uri", ":", "raise", "ValueError", "(", "'request_uri cannot be empty'", ")", "uri", "=", "parse", ".", "urlparse", "(", "uri", ")", "if", "not", "uri", ".", "netloc", ":", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
get_cli_profile
Return a CLI profile class. .. versionadded:: 1.1.6 :return: A CLI Profile :rtype: azure.cli.core._profile.Profile :raises: ImportError if azure-cli-core package is not available
azure-common/azure/common/credentials.py
def get_cli_profile(): """Return a CLI profile class. .. versionadded:: 1.1.6 :return: A CLI Profile :rtype: azure.cli.core._profile.Profile :raises: ImportError if azure-cli-core package is not available """ try: from azure.cli.core._profile import Profile from azure.cli....
def get_cli_profile(): """Return a CLI profile class. .. versionadded:: 1.1.6 :return: A CLI Profile :rtype: azure.cli.core._profile.Profile :raises: ImportError if azure-cli-core package is not available """ try: from azure.cli.core._profile import Profile from azure.cli....
[ "Return", "a", "CLI", "profile", "class", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-common/azure/common/credentials.py#L9-L29
[ "def", "get_cli_profile", "(", ")", ":", "try", ":", "from", "azure", ".", "cli", ".", "core", ".", "_profile", "import", "Profile", "from", "azure", ".", "cli", ".", "core", ".", "_session", "import", "ACCOUNT", "from", "azure", ".", "cli", ".", "core...
d7306fde32f60a293a7567678692bdad31e4b667
test
get_azure_cli_credentials
Return Credentials and default SubscriptionID of current loaded profile of the CLI. Credentials will be the "az login" command: https://docs.microsoft.com/cli/azure/authenticate-azure-cli Default subscription ID is either the only one you have, or you can define it: https://docs.microsoft.com/cli/azur...
azure-common/azure/common/credentials.py
def get_azure_cli_credentials(resource=None, with_tenant=False): """Return Credentials and default SubscriptionID of current loaded profile of the CLI. Credentials will be the "az login" command: https://docs.microsoft.com/cli/azure/authenticate-azure-cli Default subscription ID is either the only one...
def get_azure_cli_credentials(resource=None, with_tenant=False): """Return Credentials and default SubscriptionID of current loaded profile of the CLI. Credentials will be the "az login" command: https://docs.microsoft.com/cli/azure/authenticate-azure-cli Default subscription ID is either the only one...
[ "Return", "Credentials", "and", "default", "SubscriptionID", "of", "current", "loaded", "profile", "of", "the", "CLI", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-common/azure/common/credentials.py#L31-L52
[ "def", "get_azure_cli_credentials", "(", "resource", "=", "None", ",", "with_tenant", "=", "False", ")", ":", "profile", "=", "get_cli_profile", "(", ")", "cred", ",", "subscription_id", ",", "tenant_id", "=", "profile", ".", "get_login_credentials", "(", "resou...
d7306fde32f60a293a7567678692bdad31e4b667
test
AlertsOperations.get_all
List all the existing alerts, where the results can be selective by passing multiple filter parameters including time range and sorted on specific fields. . :param target_resource: Filter by target resource( which is full ARM ID) Default value is select all. :type target_resour...
azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py
def get_all( self, target_resource=None, target_resource_type=None, target_resource_group=None, monitor_service=None, monitor_condition=None, severity=None, alert_state=None, alert_rule=None, smart_group_id=None, include_context=None, include_egress_config=None, page_count=None, sort_by=None, sort_order=Non...
def get_all( self, target_resource=None, target_resource_type=None, target_resource_group=None, monitor_service=None, monitor_condition=None, severity=None, alert_state=None, alert_rule=None, smart_group_id=None, include_context=None, include_egress_config=None, page_count=None, sort_by=None, sort_order=Non...
[ "List", "all", "the", "existing", "alerts", "where", "the", "results", "can", "be", "selective", "by", "passing", "multiple", "filter", "parameters", "including", "time", "range", "and", "sorted", "on", "specific", "fields", ".", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py#L39-L210
[ "def", "get_all", "(", "self", ",", "target_resource", "=", "None", ",", "target_resource_type", "=", "None", ",", "target_resource_group", "=", "None", ",", "monitor_service", "=", "None", ",", "monitor_condition", "=", "None", ",", "severity", "=", "None", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
AlertsOperations.get_summary
Summary of alerts with the count each severity. :param groupby: This parameter allows the result set to be aggregated by input fields. For example, groupby=severity,alertstate. Possible values include: 'severity', 'alertState', 'monitorCondition', 'monitorService', 'signalType', 'ale...
azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py
def get_summary( self, groupby, include_smart_groups_count=None, target_resource=None, target_resource_type=None, target_resource_group=None, monitor_service=None, monitor_condition=None, severity=None, alert_state=None, alert_rule=None, time_range=None, custom_time_range=None, custom_headers=None, raw=Fals...
def get_summary( self, groupby, include_smart_groups_count=None, target_resource=None, target_resource_type=None, target_resource_group=None, monitor_service=None, monitor_condition=None, severity=None, alert_state=None, alert_rule=None, time_range=None, custom_time_range=None, custom_headers=None, raw=Fals...
[ "Summary", "of", "alerts", "with", "the", "count", "each", "severity", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-alertsmanagement/azure/mgmt/alertsmanagement/operations/alerts_operations.py#L393-L521
[ "def", "get_summary", "(", "self", ",", "groupby", ",", "include_smart_groups_count", "=", "None", ",", "target_resource", "=", "None", ",", "target_resource_type", "=", "None", ",", "target_resource_group", "=", "None", ",", "monitor_service", "=", "None", ",", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
SnapshotOperations.take
Submit an operation to take a snapshot of face list, large face list, person group or large person group, with user-specified snapshot type, source object id, apply scope and an optional user data.<br /> The snapshot interfaces are for users to backup and restore their face data from one...
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/snapshot_operations.py
def take( self, type, object_id, apply_scope, user_data=None, custom_headers=None, raw=False, **operation_config): """Submit an operation to take a snapshot of face list, large face list, person group or large person group, with user-specified snapshot type, source object id, apply s...
def take( self, type, object_id, apply_scope, user_data=None, custom_headers=None, raw=False, **operation_config): """Submit an operation to take a snapshot of face list, large face list, person group or large person group, with user-specified snapshot type, source object id, apply s...
[ "Submit", "an", "operation", "to", "take", "a", "snapshot", "of", "face", "list", "large", "face", "list", "person", "group", "or", "large", "person", "group", "with", "user", "-", "specified", "snapshot", "type", "source", "object", "id", "apply", "scope", ...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/snapshot_operations.py#L36-L134
[ "def", "take", "(", "self", ",", "type", ",", "object_id", ",", "apply_scope", ",", "user_data", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "body", "=", "models", ".", "TakeSn...
d7306fde32f60a293a7567678692bdad31e4b667
test
SnapshotOperations.apply
Submit an operation to apply a snapshot to current subscription. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it.<br /> The snapshot interfaces are for users to backup and restore their face data from one face subscription to another, insi...
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/snapshot_operations.py
def apply( self, snapshot_id, object_id, mode="CreateNew", custom_headers=None, raw=False, **operation_config): """Submit an operation to apply a snapshot to current subscription. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it.<br /> ...
def apply( self, snapshot_id, object_id, mode="CreateNew", custom_headers=None, raw=False, **operation_config): """Submit an operation to apply a snapshot to current subscription. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it.<br /> ...
[ "Submit", "an", "operation", "to", "apply", "a", "snapshot", "to", "current", "subscription", ".", "For", "each", "snapshot", "only", "subscriptions", "included", "in", "the", "applyScope", "of", "Snapshot", "-", "Take", "can", "apply", "it", ".", "<br", "/"...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/snapshot_operations.py#L366-L463
[ "def", "apply", "(", "self", ",", "snapshot_id", ",", "object_id", ",", "mode", "=", "\"CreateNew\"", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "body", "=", "models", ".", "ApplySnapshotReque...
d7306fde32f60a293a7567678692bdad31e4b667
test
PredictionOperations.resolve
Gets predictions for a given utterance, in the form of intents and entities. The current maximum query size is 500 characters. :param app_id: The LUIS application ID (Guid). :type app_id: str :param query: The utterance to predict. :type query: str :param timezone_offset...
azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/operations/prediction_operations.py
def resolve( self, app_id, query, timezone_offset=None, verbose=None, staging=None, spell_check=None, bing_spell_check_subscription_key=None, log=None, custom_headers=None, raw=False, **operation_config): """Gets predictions for a given utterance, in the form of intents and entities. The cur...
def resolve( self, app_id, query, timezone_offset=None, verbose=None, staging=None, spell_check=None, bing_spell_check_subscription_key=None, log=None, custom_headers=None, raw=False, **operation_config): """Gets predictions for a given utterance, in the form of intents and entities. The cur...
[ "Gets", "predictions", "for", "a", "given", "utterance", "in", "the", "form", "of", "intents", "and", "entities", ".", "The", "current", "maximum", "query", "size", "is", "500", "characters", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/operations/prediction_operations.py#L36-L121
[ "def", "resolve", "(", "self", ",", "app_id", ",", "query", ",", "timezone_offset", "=", "None", ",", "verbose", "=", "None", ",", "staging", "=", "None", ",", "spell_check", "=", "None", ",", "bing_spell_check_subscription_key", "=", "None", ",", "log", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
MixedRealityClient.check_name_availability_local
Check Name Availability for global uniqueness. :param location: The location in which uniqueness will be verified. :type location: str :param name: Resource Name To Verify :type name: str :param type: Fully qualified resource type which includes provider namespace ...
azure-mgmt-mixedreality/azure/mgmt/mixedreality/mixed_reality_client.py
def check_name_availability_local( self, location, name, type, custom_headers=None, raw=False, **operation_config): """Check Name Availability for global uniqueness. :param location: The location in which uniqueness will be verified. :type location: str :param name: Resource...
def check_name_availability_local( self, location, name, type, custom_headers=None, raw=False, **operation_config): """Check Name Availability for global uniqueness. :param location: The location in which uniqueness will be verified. :type location: str :param name: Resource...
[ "Check", "Name", "Availability", "for", "global", "uniqueness", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-mixedreality/azure/mgmt/mixedreality/mixed_reality_client.py#L90-L157
[ "def", "check_name_availability_local", "(", "self", ",", "location", ",", "name", ",", "type", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "check_name_availability", "=", "models", ".", "CheckName...
d7306fde32f60a293a7567678692bdad31e4b667
test
ImagesOperations.details
The Image Detail Search API lets you search on Bing and get back insights about an image, such as webpages that include the image. This section provides technical details about the query parameters and headers that you use to request insights of images and the JSON response objects that ...
azure-cognitiveservices-search-imagesearch/azure/cognitiveservices/search/imagesearch/operations/images_operations.py
def details( self, query, accept_language=None, content_type=None, user_agent=None, client_id=None, client_ip=None, location=None, crop_bottom=None, crop_left=None, crop_right=None, crop_top=None, crop_type=None, country_code=None, id=None, image_url=None, insights_token=None, modules=None, market=None, saf...
def details( self, query, accept_language=None, content_type=None, user_agent=None, client_id=None, client_ip=None, location=None, crop_bottom=None, crop_left=None, crop_right=None, crop_top=None, crop_type=None, country_code=None, id=None, image_url=None, insights_token=None, modules=None, market=None, saf...
[ "The", "Image", "Detail", "Search", "API", "lets", "you", "search", "on", "Bing", "and", "get", "back", "insights", "about", "an", "image", "such", "as", "webpages", "that", "include", "the", "image", ".", "This", "section", "provides", "technical", "details...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-search-imagesearch/azure/cognitiveservices/search/imagesearch/operations/images_operations.py#L499-L897
[ "def", "details", "(", "self", ",", "query", ",", "accept_language", "=", "None", ",", "content_type", "=", "None", ",", "user_agent", "=", "None", ",", "client_id", "=", "None", ",", "client_ip", "=", "None", ",", "location", "=", "None", ",", "crop_bot...
d7306fde32f60a293a7567678692bdad31e4b667
test
ImagesOperations.trending
The Image Trending Search API lets you search on Bing and get back a list of images that are trending based on search requests made by others. The images are broken out into different categories. For example, Popular People Searches. For a list of markets that support trending images, se...
azure-cognitiveservices-search-imagesearch/azure/cognitiveservices/search/imagesearch/operations/images_operations.py
def trending( self, accept_language=None, user_agent=None, client_id=None, client_ip=None, location=None, country_code=None, market=None, safe_search=None, set_lang=None, custom_headers=None, raw=False, **operation_config): """The Image Trending Search API lets you search on Bing and get back a ...
def trending( self, accept_language=None, user_agent=None, client_id=None, client_ip=None, location=None, country_code=None, market=None, safe_search=None, set_lang=None, custom_headers=None, raw=False, **operation_config): """The Image Trending Search API lets you search on Bing and get back a ...
[ "The", "Image", "Trending", "Search", "API", "lets", "you", "search", "on", "Bing", "and", "get", "back", "a", "list", "of", "images", "that", "are", "trending", "based", "on", "search", "requests", "made", "by", "others", ".", "The", "images", "are", "b...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-search-imagesearch/azure/cognitiveservices/search/imagesearch/operations/images_operations.py#L900-L1159
[ "def", "trending", "(", "self", ",", "accept_language", "=", "None", ",", "user_agent", "=", "None", ",", "client_id", "=", "None", ",", "client_ip", "=", "None", ",", "location", "=", "None", ",", "country_code", "=", "None", ",", "market", "=", "None",...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.open
Opens the request. method: the request VERB 'GET', 'POST', etc. url: the url to connect
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def open(self, method, url): ''' Opens the request. method: the request VERB 'GET', 'POST', etc. url: the url to connect ''' flag = VARIANT.create_bool_false() _method = BSTR(method) _url = BSTR(url) _WinHttpRequest._Open(s...
def open(self, method, url): ''' Opens the request. method: the request VERB 'GET', 'POST', etc. url: the url to connect ''' flag = VARIANT.create_bool_false() _method = BSTR(method) _url = BSTR(url) _WinHttpRequest._Open(s...
[ "Opens", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L265-L277
[ "def", "open", "(", "self", ",", "method", ",", "url", ")", ":", "flag", "=", "VARIANT", ".", "create_bool_false", "(", ")", "_method", "=", "BSTR", "(", "method", ")", "_url", "=", "BSTR", "(", "url", ")", "_WinHttpRequest", ".", "_Open", "(", "self...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.set_timeout
Sets up the timeout for the request.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def set_timeout(self, timeout_in_seconds): ''' Sets up the timeout for the request. ''' timeout_in_ms = int(timeout_in_seconds * 1000) _WinHttpRequest._SetTimeouts( self, 0, timeout_in_ms, timeout_in_ms, timeout_in_ms)
def set_timeout(self, timeout_in_seconds): ''' Sets up the timeout for the request. ''' timeout_in_ms = int(timeout_in_seconds * 1000) _WinHttpRequest._SetTimeouts( self, 0, timeout_in_ms, timeout_in_ms, timeout_in_ms)
[ "Sets", "up", "the", "timeout", "for", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L279-L283
[ "def", "set_timeout", "(", "self", ",", "timeout_in_seconds", ")", ":", "timeout_in_ms", "=", "int", "(", "timeout_in_seconds", "*", "1000", ")", "_WinHttpRequest", ".", "_SetTimeouts", "(", "self", ",", "0", ",", "timeout_in_ms", ",", "timeout_in_ms", ",", "t...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.set_request_header
Sets the request header.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def set_request_header(self, name, value): ''' Sets the request header. ''' _name = BSTR(name) _value = BSTR(value) _WinHttpRequest._SetRequestHeader(self, _name, _value)
def set_request_header(self, name, value): ''' Sets the request header. ''' _name = BSTR(name) _value = BSTR(value) _WinHttpRequest._SetRequestHeader(self, _name, _value)
[ "Sets", "the", "request", "header", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L285-L290
[ "def", "set_request_header", "(", "self", ",", "name", ",", "value", ")", ":", "_name", "=", "BSTR", "(", "name", ")", "_value", "=", "BSTR", "(", "value", ")", "_WinHttpRequest", ".", "_SetRequestHeader", "(", "self", ",", "_name", ",", "_value", ")" ]
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.get_all_response_headers
Gets back all response headers.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def get_all_response_headers(self): ''' Gets back all response headers. ''' bstr_headers = c_void_p() _WinHttpRequest._GetAllResponseHeaders(self, byref(bstr_headers)) bstr_headers = ctypes.cast(bstr_headers, c_wchar_p) headers = bstr_headers.value _SysFreeString(bstr_he...
def get_all_response_headers(self): ''' Gets back all response headers. ''' bstr_headers = c_void_p() _WinHttpRequest._GetAllResponseHeaders(self, byref(bstr_headers)) bstr_headers = ctypes.cast(bstr_headers, c_wchar_p) headers = bstr_headers.value _SysFreeString(bstr_he...
[ "Gets", "back", "all", "response", "headers", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L292-L300
[ "def", "get_all_response_headers", "(", "self", ")", ":", "bstr_headers", "=", "c_void_p", "(", ")", "_WinHttpRequest", ".", "_GetAllResponseHeaders", "(", "self", ",", "byref", "(", "bstr_headers", ")", ")", "bstr_headers", "=", "ctypes", ".", "cast", "(", "b...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.send
Sends the request body.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def send(self, request=None): ''' Sends the request body. ''' # Sends VT_EMPTY if it is GET, HEAD request. if request is None: var_empty = VARIANT.create_empty() _WinHttpRequest._Send(self, var_empty) else: # Sends request body as SAFEArray. _request...
def send(self, request=None): ''' Sends the request body. ''' # Sends VT_EMPTY if it is GET, HEAD request. if request is None: var_empty = VARIANT.create_empty() _WinHttpRequest._Send(self, var_empty) else: # Sends request body as SAFEArray. _request...
[ "Sends", "the", "request", "body", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L302-L311
[ "def", "send", "(", "self", ",", "request", "=", "None", ")", ":", "# Sends VT_EMPTY if it is GET, HEAD request.", "if", "request", "is", "None", ":", "var_empty", "=", "VARIANT", ".", "create_empty", "(", ")", "_WinHttpRequest", ".", "_Send", "(", "self", ","...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.status
Gets status of response.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def status(self): ''' Gets status of response. ''' status = c_long() _WinHttpRequest._Status(self, byref(status)) return int(status.value)
def status(self): ''' Gets status of response. ''' status = c_long() _WinHttpRequest._Status(self, byref(status)) return int(status.value)
[ "Gets", "status", "of", "response", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L313-L318
[ "def", "status", "(", "self", ")", ":", "status", "=", "c_long", "(", ")", "_WinHttpRequest", ".", "_Status", "(", "self", ",", "byref", "(", "status", ")", ")", "return", "int", "(", "status", ".", "value", ")" ]
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.status_text
Gets status text of response.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def status_text(self): ''' Gets status text of response. ''' bstr_status_text = c_void_p() _WinHttpRequest._StatusText(self, byref(bstr_status_text)) bstr_status_text = ctypes.cast(bstr_status_text, c_wchar_p) status_text = bstr_status_text.value _SysFreeString(bstr_stat...
def status_text(self): ''' Gets status text of response. ''' bstr_status_text = c_void_p() _WinHttpRequest._StatusText(self, byref(bstr_status_text)) bstr_status_text = ctypes.cast(bstr_status_text, c_wchar_p) status_text = bstr_status_text.value _SysFreeString(bstr_stat...
[ "Gets", "status", "text", "of", "response", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L320-L328
[ "def", "status_text", "(", "self", ")", ":", "bstr_status_text", "=", "c_void_p", "(", ")", "_WinHttpRequest", ".", "_StatusText", "(", "self", ",", "byref", "(", "bstr_status_text", ")", ")", "bstr_status_text", "=", "ctypes", ".", "cast", "(", "bstr_status_t...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.response_body
Gets response body as a SAFEARRAY and converts the SAFEARRAY to str.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def response_body(self): ''' Gets response body as a SAFEARRAY and converts the SAFEARRAY to str. ''' var_respbody = VARIANT() _WinHttpRequest._ResponseBody(self, byref(var_respbody)) if var_respbody.is_safearray_of_bytes(): respbody = var_respbody.str_from_sa...
def response_body(self): ''' Gets response body as a SAFEARRAY and converts the SAFEARRAY to str. ''' var_respbody = VARIANT() _WinHttpRequest._ResponseBody(self, byref(var_respbody)) if var_respbody.is_safearray_of_bytes(): respbody = var_respbody.str_from_sa...
[ "Gets", "response", "body", "as", "a", "SAFEARRAY", "and", "converts", "the", "SAFEARRAY", "to", "str", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L330-L340
[ "def", "response_body", "(", "self", ")", ":", "var_respbody", "=", "VARIANT", "(", ")", "_WinHttpRequest", ".", "_ResponseBody", "(", "self", ",", "byref", "(", "var_respbody", ")", ")", "if", "var_respbody", ".", "is_safearray_of_bytes", "(", ")", ":", "re...
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.set_client_certificate
Sets client certificate for the request.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def set_client_certificate(self, certificate): '''Sets client certificate for the request. ''' _certificate = BSTR(certificate) _WinHttpRequest._SetClientCertificate(self, _certificate)
def set_client_certificate(self, certificate): '''Sets client certificate for the request. ''' _certificate = BSTR(certificate) _WinHttpRequest._SetClientCertificate(self, _certificate)
[ "Sets", "client", "certificate", "for", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L342-L345
[ "def", "set_client_certificate", "(", "self", ",", "certificate", ")", ":", "_certificate", "=", "BSTR", "(", "certificate", ")", "_WinHttpRequest", ".", "_SetClientCertificate", "(", "self", ",", "_certificate", ")" ]
d7306fde32f60a293a7567678692bdad31e4b667
test
_WinHttpRequest.set_tunnel
Sets up the host and the port for the HTTP CONNECT Tunnelling.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def set_tunnel(self, host, port): ''' Sets up the host and the port for the HTTP CONNECT Tunnelling.''' url = host if port: url = url + u':' + port var_host = VARIANT.create_bstr_from_str(url) var_empty = VARIANT.create_empty() _WinHttpRequest._SetProxy( ...
def set_tunnel(self, host, port): ''' Sets up the host and the port for the HTTP CONNECT Tunnelling.''' url = host if port: url = url + u':' + port var_host = VARIANT.create_bstr_from_str(url) var_empty = VARIANT.create_empty() _WinHttpRequest._SetProxy( ...
[ "Sets", "up", "the", "host", "and", "the", "port", "for", "the", "HTTP", "CONNECT", "Tunnelling", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L347-L357
[ "def", "set_tunnel", "(", "self", ",", "host", ",", "port", ")", ":", "url", "=", "host", "if", "port", ":", "url", "=", "url", "+", "u':'", "+", "port", "var_host", "=", "VARIANT", ".", "create_bstr_from_str", "(", "url", ")", "var_empty", "=", "VAR...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPConnection.set_tunnel
Sets up the host and the port for the HTTP CONNECT Tunnelling.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def set_tunnel(self, host, port=None, headers=None): ''' Sets up the host and the port for the HTTP CONNECT Tunnelling. ''' self._httprequest.set_tunnel(unicode(host), unicode(str(port)))
def set_tunnel(self, host, port=None, headers=None): ''' Sets up the host and the port for the HTTP CONNECT Tunnelling. ''' self._httprequest.set_tunnel(unicode(host), unicode(str(port)))
[ "Sets", "up", "the", "host", "and", "the", "port", "for", "the", "HTTP", "CONNECT", "Tunnelling", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L410-L412
[ "def", "set_tunnel", "(", "self", ",", "host", ",", "port", "=", "None", ",", "headers", "=", "None", ")", ":", "self", ".", "_httprequest", ".", "set_tunnel", "(", "unicode", "(", "host", ")", ",", "unicode", "(", "str", "(", "port", ")", ")", ")"...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPConnection.putrequest
Connects to host and sends the request.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def putrequest(self, method, uri): ''' Connects to host and sends the request. ''' protocol = unicode(self.protocol + '://') url = protocol + self.host + unicode(uri) self._httprequest.set_timeout(self.timeout) self._httprequest.open(unicode(method), url) # sets certifi...
def putrequest(self, method, uri): ''' Connects to host and sends the request. ''' protocol = unicode(self.protocol + '://') url = protocol + self.host + unicode(uri) self._httprequest.set_timeout(self.timeout) self._httprequest.open(unicode(method), url) # sets certifi...
[ "Connects", "to", "host", "and", "sends", "the", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L418-L428
[ "def", "putrequest", "(", "self", ",", "method", ",", "uri", ")", ":", "protocol", "=", "unicode", "(", "self", ".", "protocol", "+", "'://'", ")", "url", "=", "protocol", "+", "self", ".", "host", "+", "unicode", "(", "uri", ")", "self", ".", "_ht...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPConnection.putheader
Sends the headers of request.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def putheader(self, name, value): ''' Sends the headers of request. ''' if sys.version_info < (3,): name = str(name).decode('utf-8') value = str(value).decode('utf-8') self._httprequest.set_request_header(name, value)
def putheader(self, name, value): ''' Sends the headers of request. ''' if sys.version_info < (3,): name = str(name).decode('utf-8') value = str(value).decode('utf-8') self._httprequest.set_request_header(name, value)
[ "Sends", "the", "headers", "of", "request", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L430-L435
[ "def", "putheader", "(", "self", ",", "name", ",", "value", ")", ":", "if", "sys", ".", "version_info", "<", "(", "3", ",", ")", ":", "name", "=", "str", "(", "name", ")", ".", "decode", "(", "'utf-8'", ")", "value", "=", "str", "(", "value", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPConnection.send
Sends request body.
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def send(self, request_body): ''' Sends request body. ''' if not request_body: self._httprequest.send() else: self._httprequest.send(request_body)
def send(self, request_body): ''' Sends request body. ''' if not request_body: self._httprequest.send() else: self._httprequest.send(request_body)
[ "Sends", "request", "body", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L442-L447
[ "def", "send", "(", "self", ",", "request_body", ")", ":", "if", "not", "request_body", ":", "self", ".", "_httprequest", ".", "send", "(", ")", "else", ":", "self", ".", "_httprequest", ".", "send", "(", "request_body", ")" ]
d7306fde32f60a293a7567678692bdad31e4b667
test
_HTTPConnection.getresponse
Gets the response and generates the _Response object
azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py
def getresponse(self): ''' Gets the response and generates the _Response object''' status = self._httprequest.status() status_text = self._httprequest.status_text() resp_headers = self._httprequest.get_all_response_headers() fixed_headers = [] for resp_header in resp_hea...
def getresponse(self): ''' Gets the response and generates the _Response object''' status = self._httprequest.status() status_text = self._httprequest.status_text() resp_headers = self._httprequest.get_all_response_headers() fixed_headers = [] for resp_header in resp_hea...
[ "Gets", "the", "response", "and", "generates", "the", "_Response", "object" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_http/winhttp.py#L449-L474
[ "def", "getresponse", "(", "self", ")", ":", "status", "=", "self", ".", "_httprequest", ".", "status", "(", ")", "status_text", "=", "self", ".", "_httprequest", ".", "status_text", "(", ")", "resp_headers", "=", "self", ".", "_httprequest", ".", "get_all...
d7306fde32f60a293a7567678692bdad31e4b667
test
_get_readable_id
simplified an id to be more friendly for us people
azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py
def _get_readable_id(id_name, id_prefix_to_skip): """simplified an id to be more friendly for us people""" # id_name is in the form 'https://namespace.host.suffix/name' # where name may contain a forward slash! pos = id_name.find('//') if pos != -1: pos += 2 if id_prefix_to_skip: ...
def _get_readable_id(id_name, id_prefix_to_skip): """simplified an id to be more friendly for us people""" # id_name is in the form 'https://namespace.host.suffix/name' # where name may contain a forward slash! pos = id_name.find('//') if pos != -1: pos += 2 if id_prefix_to_skip: ...
[ "simplified", "an", "id", "to", "be", "more", "friendly", "for", "us", "people" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py#L29-L43
[ "def", "_get_readable_id", "(", "id_name", ",", "id_prefix_to_skip", ")", ":", "# id_name is in the form 'https://namespace.host.suffix/name'", "# where name may contain a forward slash!", "pos", "=", "id_name", ".", "find", "(", "'//'", ")", "if", "pos", "!=", "-", "1", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
_create_entry
Adds common part of entry to a given entry body and return the whole xml.
azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py
def _create_entry(entry_body): ''' Adds common part of entry to a given entry body and return the whole xml. ''' updated_str = datetime.utcnow().isoformat() if datetime.utcnow().utcoffset() is None: updated_str += '+00:00' entry_start = '''<?xml version="1.0" encoding="utf-8" standalone="ye...
def _create_entry(entry_body): ''' Adds common part of entry to a given entry body and return the whole xml. ''' updated_str = datetime.utcnow().isoformat() if datetime.utcnow().utcoffset() is None: updated_str += '+00:00' entry_start = '''<?xml version="1.0" encoding="utf-8" standalone="ye...
[ "Adds", "common", "part", "of", "entry", "to", "a", "given", "entry", "body", "and", "return", "the", "whole", "xml", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py#L46-L58
[ "def", "_create_entry", "(", "entry_body", ")", ":", "updated_str", "=", "datetime", ".", "utcnow", "(", ")", ".", "isoformat", "(", ")", "if", "datetime", ".", "utcnow", "(", ")", ".", "utcoffset", "(", ")", "is", "None", ":", "updated_str", "+=", "'+...
d7306fde32f60a293a7567678692bdad31e4b667
test
_get_serialization_name
converts a Python name into a serializable name
azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py
def _get_serialization_name(element_name): """converts a Python name into a serializable name""" known = _KNOWN_SERIALIZATION_XFORMS.get(element_name) if known is not None: return known if element_name.startswith('x_ms_'): return element_name.replace('_', '-') if element_name.endswi...
def _get_serialization_name(element_name): """converts a Python name into a serializable name""" known = _KNOWN_SERIALIZATION_XFORMS.get(element_name) if known is not None: return known if element_name.startswith('x_ms_'): return element_name.replace('_', '-') if element_name.endswi...
[ "converts", "a", "Python", "name", "into", "a", "serializable", "name" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_common_serialization.py#L100-L114
[ "def", "_get_serialization_name", "(", "element_name", ")", ":", "known", "=", "_KNOWN_SERIALIZATION_XFORMS", ".", "get", "(", "element_name", ")", "if", "known", "is", "not", "None", ":", "return", "known", "if", "element_name", ".", "startswith", "(", "'x_ms_'...
d7306fde32f60a293a7567678692bdad31e4b667
test
_bstr_to_b64url
Serialize bytes into base-64 string. :param str: Object to be serialized. :rtype: str
azure-keyvault/azure/keyvault/_internal.py
def _bstr_to_b64url(bstr, **kwargs): """Serialize bytes into base-64 string. :param str: Object to be serialized. :rtype: str """ encoded = b64encode(bstr).decode() return encoded.strip('=').replace('+', '-').replace('/', '_')
def _bstr_to_b64url(bstr, **kwargs): """Serialize bytes into base-64 string. :param str: Object to be serialized. :rtype: str """ encoded = b64encode(bstr).decode() return encoded.strip('=').replace('+', '-').replace('/', '_')
[ "Serialize", "bytes", "into", "base", "-", "64", "string", ".", ":", "param", "str", ":", "Object", "to", "be", "serialized", ".", ":", "rtype", ":", "str" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/_internal.py#L114-L120
[ "def", "_bstr_to_b64url", "(", "bstr", ",", "*", "*", "kwargs", ")", ":", "encoded", "=", "b64encode", "(", "bstr", ")", ".", "decode", "(", ")", "return", "encoded", ".", "strip", "(", "'='", ")", ".", "replace", "(", "'+'", ",", "'-'", ")", ".", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
_b64_to_bstr
Deserialize base64 encoded string into string. :param str b64str: response string to be deserialized. :rtype: bytearray :raises: TypeError if string format invalid.
azure-keyvault/azure/keyvault/_internal.py
def _b64_to_bstr(b64str): """Deserialize base64 encoded string into string. :param str b64str: response string to be deserialized. :rtype: bytearray :raises: TypeError if string format invalid. """ padding = '=' * (3 - (len(b64str) + 3) % 4) b64str = b64str + padding encoded = b64str.rep...
def _b64_to_bstr(b64str): """Deserialize base64 encoded string into string. :param str b64str: response string to be deserialized. :rtype: bytearray :raises: TypeError if string format invalid. """ padding = '=' * (3 - (len(b64str) + 3) % 4) b64str = b64str + padding encoded = b64str.rep...
[ "Deserialize", "base64", "encoded", "string", "into", "string", ".", ":", "param", "str", "b64str", ":", "response", "string", "to", "be", "deserialized", ".", ":", "rtype", ":", "bytearray", ":", "raises", ":", "TypeError", "if", "string", "format", "invali...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/_internal.py#L131-L140
[ "def", "_b64_to_bstr", "(", "b64str", ")", ":", "padding", "=", "'='", "*", "(", "3", "-", "(", "len", "(", "b64str", ")", "+", "3", ")", "%", "4", ")", "b64str", "=", "b64str", "+", "padding", "encoded", "=", "b64str", ".", "replace", "(", "'-'"...
d7306fde32f60a293a7567678692bdad31e4b667
test
FaceOperations.find_similar
Given query face's faceId, to search the similar-looking faces from a faceId array, a face list or a large face list. faceId array contains the faces created by [Face - Detect](/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236), which will expire 24 hours after ...
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py
def find_similar( self, face_id, face_list_id=None, large_face_list_id=None, face_ids=None, max_num_of_candidates_returned=20, mode="matchPerson", custom_headers=None, raw=False, **operation_config): """Given query face's faceId, to search the similar-looking faces from a faceId array, a fac...
def find_similar( self, face_id, face_list_id=None, large_face_list_id=None, face_ids=None, max_num_of_candidates_returned=20, mode="matchPerson", custom_headers=None, raw=False, **operation_config): """Given query face's faceId, to search the similar-looking faces from a faceId array, a fac...
[ "Given", "query", "face", "s", "faceId", "to", "search", "the", "similar", "-", "looking", "faces", "from", "a", "faceId", "array", "a", "face", "list", "or", "a", "large", "face", "list", ".", "faceId", "array", "contains", "the", "faces", "created", "b...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py#L36-L142
[ "def", "find_similar", "(", "self", ",", "face_id", ",", "face_list_id", "=", "None", ",", "large_face_list_id", "=", "None", ",", "face_ids", "=", "None", ",", "max_num_of_candidates_returned", "=", "20", ",", "mode", "=", "\"matchPerson\"", ",", "custom_header...
d7306fde32f60a293a7567678692bdad31e4b667
test
FaceOperations.detect_with_url
Detect human faces in an image, return face rectangles, and optionally with faceIds, landmarks, and attributes.<br /> * Optional parameters including faceId, landmarks, and attributes. Attributes include age, gender, headPose, smile, facialHair, glasses, emotion, hair, makeup, occlusion,...
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py
def detect_with_url( self, url, return_face_id=True, return_face_landmarks=False, return_face_attributes=None, recognition_model="recognition_01", return_recognition_model=False, custom_headers=None, raw=False, **operation_config): """Detect human faces in an image, return face rectangles, and optio...
def detect_with_url( self, url, return_face_id=True, return_face_landmarks=False, return_face_attributes=None, recognition_model="recognition_01", return_recognition_model=False, custom_headers=None, raw=False, **operation_config): """Detect human faces in an image, return face rectangles, and optio...
[ "Detect", "human", "faces", "in", "an", "image", "return", "face", "rectangles", "and", "optionally", "with", "faceIds", "landmarks", "and", "attributes", ".", "<br", "/", ">", "*", "Optional", "parameters", "including", "faceId", "landmarks", "and", "attributes...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py#L399-L532
[ "def", "detect_with_url", "(", "self", ",", "url", ",", "return_face_id", "=", "True", ",", "return_face_landmarks", "=", "False", ",", "return_face_attributes", "=", "None", ",", "recognition_model", "=", "\"recognition_01\"", ",", "return_recognition_model", "=", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
FaceOperations.verify_face_to_person
Verify whether two faces belong to a same person. Compares a face Id with a Person Id. :param face_id: FaceId of the face, comes from Face - Detect :type face_id: str :param person_id: Specify a certain person in a person group or a large person group. personId is created in Pe...
azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py
def verify_face_to_person( self, face_id, person_id, person_group_id=None, large_person_group_id=None, custom_headers=None, raw=False, **operation_config): """Verify whether two faces belong to a same person. Compares a face Id with a Person Id. :param face_id: FaceId of the face, c...
def verify_face_to_person( self, face_id, person_id, person_group_id=None, large_person_group_id=None, custom_headers=None, raw=False, **operation_config): """Verify whether two faces belong to a same person. Compares a face Id with a Person Id. :param face_id: FaceId of the face, c...
[ "Verify", "whether", "two", "faces", "belong", "to", "a", "same", "person", ".", "Compares", "a", "face", "Id", "with", "a", "Person", "Id", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-cognitiveservices-vision-face/azure/cognitiveservices/vision/face/operations/face_operations.py#L535-L605
[ "def", "verify_face_to_person", "(", "self", ",", "face_id", ",", "person_id", ",", "person_group_id", "=", "None", ",", "large_person_group_id", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")",...
d7306fde32f60a293a7567678692bdad31e4b667
test
get_challenge_for_url
Gets the challenge for the cached URL. :param url: the URL the challenge is cached for. :rtype: HttpBearerChallenge
azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py
def get_challenge_for_url(url): """ Gets the challenge for the cached URL. :param url: the URL the challenge is cached for. :rtype: HttpBearerChallenge """ if not url: raise ValueError('URL cannot be None') url = parse.urlparse(url) _lock.acquire() val = _cache.get(url.netloc) ...
def get_challenge_for_url(url): """ Gets the challenge for the cached URL. :param url: the URL the challenge is cached for. :rtype: HttpBearerChallenge """ if not url: raise ValueError('URL cannot be None') url = parse.urlparse(url) _lock.acquire() val = _cache.get(url.netloc) ...
[ "Gets", "the", "challenge", "for", "the", "cached", "URL", ".", ":", "param", "url", ":", "the", "URL", "the", "challenge", "is", "cached", "for", ".", ":", "rtype", ":", "HttpBearerChallenge" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py#L16-L31
[ "def", "get_challenge_for_url", "(", "url", ")", ":", "if", "not", "url", ":", "raise", "ValueError", "(", "'URL cannot be None'", ")", "url", "=", "parse", ".", "urlparse", "(", "url", ")", "_lock", ".", "acquire", "(", ")", "val", "=", "_cache", ".", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
remove_challenge_for_url
Removes the cached challenge for the specified URL. :param url: the URL for which to remove the cached challenge
azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py
def remove_challenge_for_url(url): """ Removes the cached challenge for the specified URL. :param url: the URL for which to remove the cached challenge """ if not url: raise ValueError('URL cannot be empty') url = parse.urlparse(url) _lock.acquire() del _cache[url.netloc] _lock.r...
def remove_challenge_for_url(url): """ Removes the cached challenge for the specified URL. :param url: the URL for which to remove the cached challenge """ if not url: raise ValueError('URL cannot be empty') url = parse.urlparse(url) _lock.acquire() del _cache[url.netloc] _lock.r...
[ "Removes", "the", "cached", "challenge", "for", "the", "specified", "URL", ".", ":", "param", "url", ":", "the", "URL", "for", "which", "to", "remove", "the", "cached", "challenge" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py#L34-L46
[ "def", "remove_challenge_for_url", "(", "url", ")", ":", "if", "not", "url", ":", "raise", "ValueError", "(", "'URL cannot be empty'", ")", "url", "=", "parse", ".", "urlparse", "(", "url", ")", "_lock", ".", "acquire", "(", ")", "del", "_cache", "[", "u...
d7306fde32f60a293a7567678692bdad31e4b667
test
set_challenge_for_url
Caches the challenge for the specified URL. :param url: the URL for which to cache the challenge :param challenge: the challenge to cache
azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py
def set_challenge_for_url(url, challenge): """ Caches the challenge for the specified URL. :param url: the URL for which to cache the challenge :param challenge: the challenge to cache """ if not url: raise ValueError('URL cannot be empty') if not challenge: raise ValueError('Challe...
def set_challenge_for_url(url, challenge): """ Caches the challenge for the specified URL. :param url: the URL for which to cache the challenge :param challenge: the challenge to cache """ if not url: raise ValueError('URL cannot be empty') if not challenge: raise ValueError('Challe...
[ "Caches", "the", "challenge", "for", "the", "specified", "URL", ".", ":", "param", "url", ":", "the", "URL", "for", "which", "to", "cache", "the", "challenge", ":", "param", "challenge", ":", "the", "challenge", "to", "cache" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-keyvault/azure/keyvault/http_bearer_challenge_cache/__init__.py#L49-L67
[ "def", "set_challenge_for_url", "(", "url", ",", "challenge", ")", ":", "if", "not", "url", ":", "raise", "ValueError", "(", "'URL cannot be empty'", ")", "if", "not", "challenge", ":", "raise", "ValueError", "(", "'Challenge cannot be empty'", ")", "src_url", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
JobOperations.get
Gets information about the specified job. :param job_id: The ID of the job. :type job_id: str :param job_get_options: Additional parameters for the operation :type job_get_options: ~azure.batch.models.JobGetOptions :param dict custom_headers: headers that will be added to the re...
azure-batch/azure/batch/operations/job_operations.py
def get( self, job_id, job_get_options=None, custom_headers=None, raw=False, **operation_config): """Gets information about the specified job. :param job_id: The ID of the job. :type job_id: str :param job_get_options: Additional parameters for the operation :type jo...
def get( self, job_id, job_get_options=None, custom_headers=None, raw=False, **operation_config): """Gets information about the specified job. :param job_id: The ID of the job. :type job_id: str :param job_get_options: Additional parameters for the operation :type jo...
[ "Gets", "information", "about", "the", "specified", "job", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-batch/azure/batch/operations/job_operations.py#L240-L356
[ "def", "get", "(", "self", ",", "job_id", ",", "job_get_options", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "select", "=", "None", "if", "job_get_options", "is", "not", "None",...
d7306fde32f60a293a7567678692bdad31e4b667
test
JobOperations.patch
Updates the properties of the specified job. This replaces only the job properties specified in the request. For example, if the job has constraints, and a request does not specify the constraints element, then the job keeps the existing constraints. :param job_id: The ID of the job wh...
azure-batch/azure/batch/operations/job_operations.py
def patch( self, job_id, job_patch_parameter, job_patch_options=None, custom_headers=None, raw=False, **operation_config): """Updates the properties of the specified job. This replaces only the job properties specified in the request. For example, if the job has constraints, and a r...
def patch( self, job_id, job_patch_parameter, job_patch_options=None, custom_headers=None, raw=False, **operation_config): """Updates the properties of the specified job. This replaces only the job properties specified in the request. For example, if the job has constraints, and a r...
[ "Updates", "the", "properties", "of", "the", "specified", "job", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-batch/azure/batch/operations/job_operations.py#L359-L465
[ "def", "patch", "(", "self", ",", "job_id", ",", "job_patch_parameter", ",", "job_patch_options", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "timeout", "=", "None", "if", "job_pat...
d7306fde32f60a293a7567678692bdad31e4b667
test
JobOperations.add
Adds a job to the specified account. The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. The Batch service launches this task when it is ready to start the job. The Job Manager task controls all oth...
azure-batch/azure/batch/operations/job_operations.py
def add( self, job, job_add_options=None, custom_headers=None, raw=False, **operation_config): """Adds a job to the specified account. The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. ...
def add( self, job, job_add_options=None, custom_headers=None, raw=False, **operation_config): """Adds a job to the specified account. The Batch service supports two ways to control the work done as part of a job. In the first approach, the user specifies a Job Manager task. ...
[ "Adds", "a", "job", "to", "the", "specified", "account", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-batch/azure/batch/operations/job_operations.py#L922-L1012
[ "def", "add", "(", "self", ",", "job", ",", "job_add_options", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "timeout", "=", "None", "if", "job_add_options", "is", "not", "None", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
JobOperations.list
Lists all of the jobs in the specified account. :param job_list_options: Additional parameters for the operation :type job_list_options: ~azure.batch.models.JobListOptions :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response ...
azure-batch/azure/batch/operations/job_operations.py
def list( self, job_list_options=None, custom_headers=None, raw=False, **operation_config): """Lists all of the jobs in the specified account. :param job_list_options: Additional parameters for the operation :type job_list_options: ~azure.batch.models.JobListOptions :param d...
def list( self, job_list_options=None, custom_headers=None, raw=False, **operation_config): """Lists all of the jobs in the specified account. :param job_list_options: Additional parameters for the operation :type job_list_options: ~azure.batch.models.JobListOptions :param d...
[ "Lists", "all", "of", "the", "jobs", "in", "the", "specified", "account", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-batch/azure/batch/operations/job_operations.py#L1015-L1118
[ "def", "list", "(", "self", ",", "job_list_options", "=", "None", ",", "custom_headers", "=", "None", ",", "raw", "=", "False", ",", "*", "*", "operation_config", ")", ":", "filter", "=", "None", "if", "job_list_options", "is", "not", "None", ":", "filte...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.models
Module depends on the API version: * 2015-06-01: :mod:`v2015_06_01.models<azure.mgmt.authorization.v2015_06_01.models>` * 2015-07-01: :mod:`v2015_07_01.models<azure.mgmt.authorization.v2015_07_01.models>` * 2018-01-01-preview: :mod:`v2018_01_01_preview.models<azure.mgmt.authorization.v...
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-06-01: :mod:`v2015_06_01.models<azure.mgmt.authorization.v2015_06_01.models>` * 2015-07-01: :mod:`v2015_07_01.models<azure.mgmt.authorization.v2015_07_01.models>` * 2018-01-01-preview...
def models(cls, api_version=DEFAULT_API_VERSION): """Module depends on the API version: * 2015-06-01: :mod:`v2015_06_01.models<azure.mgmt.authorization.v2015_06_01.models>` * 2015-07-01: :mod:`v2015_07_01.models<azure.mgmt.authorization.v2015_07_01.models>` * 2018-01-01-preview...
[ "Module", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L109-L133
[ "def", "models", "(", "cls", ",", "api_version", "=", "DEFAULT_API_VERSION", ")", ":", "if", "api_version", "==", "'2015-06-01'", ":", "from", ".", "v2015_06_01", "import", "models", "return", "models", "elif", "api_version", "==", "'2015-07-01'", ":", "from", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.classic_administrators
Instance depends on the API version: * 2015-06-01: :class:`ClassicAdministratorsOperations<azure.mgmt.authorization.v2015_06_01.operations.ClassicAdministratorsOperations>`
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def classic_administrators(self): """Instance depends on the API version: * 2015-06-01: :class:`ClassicAdministratorsOperations<azure.mgmt.authorization.v2015_06_01.operations.ClassicAdministratorsOperations>` """ api_version = self._get_api_version('classic_administrators') ...
def classic_administrators(self): """Instance depends on the API version: * 2015-06-01: :class:`ClassicAdministratorsOperations<azure.mgmt.authorization.v2015_06_01.operations.ClassicAdministratorsOperations>` """ api_version = self._get_api_version('classic_administrators') ...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L136-L146
[ "def", "classic_administrators", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'classic_administrators'", ")", "if", "api_version", "==", "'2015-06-01'", ":", "from", ".", "v2015_06_01", ".", "operations", "import", "ClassicAdmini...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.deny_assignments
Instance depends on the API version: * 2018-07-01-preview: :class:`DenyAssignmentsOperations<azure.mgmt.authorization.v2018_07_01_preview.operations.DenyAssignmentsOperations>`
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def deny_assignments(self): """Instance depends on the API version: * 2018-07-01-preview: :class:`DenyAssignmentsOperations<azure.mgmt.authorization.v2018_07_01_preview.operations.DenyAssignmentsOperations>` """ api_version = self._get_api_version('deny_assignments') if api_v...
def deny_assignments(self): """Instance depends on the API version: * 2018-07-01-preview: :class:`DenyAssignmentsOperations<azure.mgmt.authorization.v2018_07_01_preview.operations.DenyAssignmentsOperations>` """ api_version = self._get_api_version('deny_assignments') if api_v...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L149-L159
[ "def", "deny_assignments", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'deny_assignments'", ")", "if", "api_version", "==", "'2018-07-01-preview'", ":", "from", ".", "v2018_07_01_preview", ".", "operations", "import", "DenyAssig...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.permissions
Instance depends on the API version: * 2015-07-01: :class:`PermissionsOperations<azure.mgmt.authorization.v2015_07_01.operations.PermissionsOperations>` * 2018-01-01-preview: :class:`PermissionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.PermissionsOperations>`
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def permissions(self): """Instance depends on the API version: * 2015-07-01: :class:`PermissionsOperations<azure.mgmt.authorization.v2015_07_01.operations.PermissionsOperations>` * 2018-01-01-preview: :class:`PermissionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.Pe...
def permissions(self): """Instance depends on the API version: * 2015-07-01: :class:`PermissionsOperations<azure.mgmt.authorization.v2015_07_01.operations.PermissionsOperations>` * 2018-01-01-preview: :class:`PermissionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.Pe...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L162-L175
[ "def", "permissions", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'permissions'", ")", "if", "api_version", "==", "'2015-07-01'", ":", "from", ".", "v2015_07_01", ".", "operations", "import", "PermissionsOperations", "as", "...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.provider_operations_metadata
Instance depends on the API version: * 2015-07-01: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2015_07_01.operations.ProviderOperationsMetadataOperations>` * 2018-01-01-preview: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2018_01_01_preview.op...
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def provider_operations_metadata(self): """Instance depends on the API version: * 2015-07-01: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2015_07_01.operations.ProviderOperationsMetadataOperations>` * 2018-01-01-preview: :class:`ProviderOperationsMetadataOperati...
def provider_operations_metadata(self): """Instance depends on the API version: * 2015-07-01: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2015_07_01.operations.ProviderOperationsMetadataOperations>` * 2018-01-01-preview: :class:`ProviderOperationsMetadataOperati...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L178-L191
[ "def", "provider_operations_metadata", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'provider_operations_metadata'", ")", "if", "api_version", "==", "'2015-07-01'", ":", "from", ".", "v2015_07_01", ".", "operations", "import", "P...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.role_assignments
Instance depends on the API version: * 2015-07-01: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleAssignmentsOperations>` * 2018-01-01-preview: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.RoleAssignmentsOperation...
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def role_assignments(self): """Instance depends on the API version: * 2015-07-01: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleAssignmentsOperations>` * 2018-01-01-preview: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2018_01_01_prev...
def role_assignments(self): """Instance depends on the API version: * 2015-07-01: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleAssignmentsOperations>` * 2018-01-01-preview: :class:`RoleAssignmentsOperations<azure.mgmt.authorization.v2018_01_01_prev...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L194-L210
[ "def", "role_assignments", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'role_assignments'", ")", "if", "api_version", "==", "'2015-07-01'", ":", "from", ".", "v2015_07_01", ".", "operations", "import", "RoleAssignmentsOperations...
d7306fde32f60a293a7567678692bdad31e4b667
test
AuthorizationManagementClient.role_definitions
Instance depends on the API version: * 2015-07-01: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleDefinitionsOperations>` * 2018-01-01-preview: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.RoleDefinitionsOperation...
azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py
def role_definitions(self): """Instance depends on the API version: * 2015-07-01: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleDefinitionsOperations>` * 2018-01-01-preview: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2018_01_01_prev...
def role_definitions(self): """Instance depends on the API version: * 2015-07-01: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleDefinitionsOperations>` * 2018-01-01-preview: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2018_01_01_prev...
[ "Instance", "depends", "on", "the", "API", "version", ":" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-mgmt-authorization/azure/mgmt/authorization/authorization_management_client.py#L213-L226
[ "def", "role_definitions", "(", "self", ")", ":", "api_version", "=", "self", ".", "_get_api_version", "(", "'role_definitions'", ")", "if", "api_version", "==", "'2015-07-01'", ":", "from", ".", "v2015_07_01", ".", "operations", "import", "RoleDefinitionsOperations...
d7306fde32f60a293a7567678692bdad31e4b667
test
_data_to_xml
Creates an xml fragment from the specified data. data: Array of tuples, where first: xml element name second: xml element text third: conversion fun...
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _data_to_xml(data): '''Creates an xml fragment from the specified data. data: Array of tuples, where first: xml element name second: xml element text third: ...
def _data_to_xml(data): '''Creates an xml fragment from the specified data. data: Array of tuples, where first: xml element name second: xml element text third: ...
[ "Creates", "an", "xml", "fragment", "from", "the", "specified", "data", ".", "data", ":", "Array", "of", "tuples", "where", "first", ":", "xml", "element", "name", "second", ":", "xml", "element", "text", "third", ":", "conversion", "function" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L455-L480
[ "def", "_data_to_xml", "(", "data", ")", ":", "xml", "=", "''", "for", "element", "in", "data", ":", "name", "=", "element", "[", "0", "]", "val", "=", "element", "[", "1", "]", "if", "len", "(", "element", ")", ">", "2", ":", "converter", "=", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject.parse_response
Parse the HTTPResponse's body and fill all the data into a class of return_type.
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def parse_response(response, return_type): ''' Parse the HTTPResponse's body and fill all the data into a class of return_type. ''' doc = minidom.parseString(response.body) return_obj = return_type() xml_name = return_type._xml_name if hasattr(return_type, '_xml_n...
def parse_response(response, return_type): ''' Parse the HTTPResponse's body and fill all the data into a class of return_type. ''' doc = minidom.parseString(response.body) return_obj = return_type() xml_name = return_type._xml_name if hasattr(return_type, '_xml_n...
[ "Parse", "the", "HTTPResponse", "s", "body", "and", "fill", "all", "the", "data", "into", "a", "class", "of", "return_type", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L69-L80
[ "def", "parse_response", "(", "response", ",", "return_type", ")", ":", "doc", "=", "minidom", ".", "parseString", "(", "response", ".", "body", ")", "return_obj", "=", "return_type", "(", ")", "xml_name", "=", "return_type", ".", "_xml_name", "if", "hasattr...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject.parse_service_resources_response
Parse the HTTPResponse's body and fill all the data into a class of return_type.
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def parse_service_resources_response(response, return_type): ''' Parse the HTTPResponse's body and fill all the data into a class of return_type. ''' doc = minidom.parseString(response.body) return_obj = _list_of(return_type) for node in _MinidomXmlToObject.get_ch...
def parse_service_resources_response(response, return_type): ''' Parse the HTTPResponse's body and fill all the data into a class of return_type. ''' doc = minidom.parseString(response.body) return_obj = _list_of(return_type) for node in _MinidomXmlToObject.get_ch...
[ "Parse", "the", "HTTPResponse", "s", "body", "and", "fill", "all", "the", "data", "into", "a", "class", "of", "return_type", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L84-L96
[ "def", "parse_service_resources_response", "(", "response", ",", "return_type", ")", ":", "doc", "=", "minidom", ".", "parseString", "(", "response", ".", "body", ")", "return_obj", "=", "_list_of", "(", "return_type", ")", "for", "node", "in", "_MinidomXmlToObj...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject.get_entry_properties_from_node
get properties from entry xml
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def get_entry_properties_from_node(entry, include_id, id_prefix_to_skip=None, use_title_as_id=False): ''' get properties from entry xml ''' properties = {} etag = entry.getAttributeNS(METADATA_NS, 'etag') if etag: properties['etag'] = etag for updated in _MinidomXmlT...
def get_entry_properties_from_node(entry, include_id, id_prefix_to_skip=None, use_title_as_id=False): ''' get properties from entry xml ''' properties = {} etag = entry.getAttributeNS(METADATA_NS, 'etag') if etag: properties['etag'] = etag for updated in _MinidomXmlT...
[ "get", "properties", "from", "entry", "xml" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L141-L164
[ "def", "get_entry_properties_from_node", "(", "entry", ",", "include_id", ",", "id_prefix_to_skip", "=", "None", ",", "use_title_as_id", "=", "False", ")", ":", "properties", "=", "{", "}", "etag", "=", "entry", ".", "getAttributeNS", "(", "METADATA_NS", ",", ...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject.get_children_from_path
descends through a hierarchy of nodes returning the list of children at the inner most level. Only returns children who share a common parent, not cousins.
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def get_children_from_path(node, *path): '''descends through a hierarchy of nodes returning the list of children at the inner most level. Only returns children who share a common parent, not cousins.''' cur = node for index, child in enumerate(path): if isinstance(ch...
def get_children_from_path(node, *path): '''descends through a hierarchy of nodes returning the list of children at the inner most level. Only returns children who share a common parent, not cousins.''' cur = node for index, child in enumerate(path): if isinstance(ch...
[ "descends", "through", "a", "hierarchy", "of", "nodes", "returning", "the", "list", "of", "children", "at", "the", "inner", "most", "level", ".", "Only", "returns", "children", "who", "share", "a", "common", "parent", "not", "cousins", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L199-L215
[ "def", "get_children_from_path", "(", "node", ",", "*", "path", ")", ":", "cur", "=", "node", "for", "index", ",", "child", "in", "enumerate", "(", "path", ")", ":", "if", "isinstance", "(", "child", ",", "_strtype", ")", ":", "next", "=", "_MinidomXml...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject._parse_response_body_from_xml_node
parse the xml and fill all the data into a class of return_type
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _parse_response_body_from_xml_node(node, return_type): ''' parse the xml and fill all the data into a class of return_type ''' return_obj = return_type() _MinidomXmlToObject._fill_data_to_return_object(node, return_obj) return return_obj
def _parse_response_body_from_xml_node(node, return_type): ''' parse the xml and fill all the data into a class of return_type ''' return_obj = return_type() _MinidomXmlToObject._fill_data_to_return_object(node, return_obj) return return_obj
[ "parse", "the", "xml", "and", "fill", "all", "the", "data", "into", "a", "class", "of", "return_type" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L233-L240
[ "def", "_parse_response_body_from_xml_node", "(", "node", ",", "return_type", ")", ":", "return_obj", "=", "return_type", "(", ")", "_MinidomXmlToObject", ".", "_fill_data_to_return_object", "(", "node", ",", "return_obj", ")", "return", "return_obj" ]
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject._fill_scalar_list_of
Converts an xml fragment into a list of scalar types. The parent xml element contains a flat list of xml elements which are converted into the specified scalar type and added to the list. Example: xmldoc= <Endpoints> <Endpoint>http://{storage-service-name}.blob.core.windows....
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _fill_scalar_list_of(xmldoc, element_type, parent_xml_element_name, xml_element_name): '''Converts an xml fragment into a list of scalar types. The parent xml element contains a flat list of xml elements which are converted into the specified scalar type and add...
def _fill_scalar_list_of(xmldoc, element_type, parent_xml_element_name, xml_element_name): '''Converts an xml fragment into a list of scalar types. The parent xml element contains a flat list of xml elements which are converted into the specified scalar type and add...
[ "Converts", "an", "xml", "fragment", "into", "a", "list", "of", "scalar", "types", ".", "The", "parent", "xml", "element", "contains", "a", "flat", "list", "of", "xml", "elements", "which", "are", "converted", "into", "the", "specified", "scalar", "type", ...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L251-L271
[ "def", "_fill_scalar_list_of", "(", "xmldoc", ",", "element_type", ",", "parent_xml_element_name", ",", "xml_element_name", ")", ":", "xmlelements", "=", "_MinidomXmlToObject", ".", "get_child_nodes", "(", "xmldoc", ",", "parent_xml_element_name", ")", "if", "xmlelement...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject._fill_dict_of
Converts an xml fragment into a dictionary. The parent xml element contains a list of xml elements where each element has a child element for the key, and another for the value. Example: xmldoc= <ExtendedProperties> <ExtendedProperty> <Name>Ext1</Name> ...
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _fill_dict_of(xmldoc, parent_xml_element_name, pair_xml_element_name, key_xml_element_name, value_xml_element_name): '''Converts an xml fragment into a dictionary. The parent xml element contains a list of xml elements where each element has a child element for the key,...
def _fill_dict_of(xmldoc, parent_xml_element_name, pair_xml_element_name, key_xml_element_name, value_xml_element_name): '''Converts an xml fragment into a dictionary. The parent xml element contains a list of xml elements where each element has a child element for the key,...
[ "Converts", "an", "xml", "fragment", "into", "a", "dictionary", ".", "The", "parent", "xml", "element", "contains", "a", "list", "of", "xml", "elements", "where", "each", "element", "has", "a", "child", "element", "for", "the", "key", "and", "another", "fo...
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L286-L323
[ "def", "_fill_dict_of", "(", "xmldoc", ",", "parent_xml_element_name", ",", "pair_xml_element_name", ",", "key_xml_element_name", ",", "value_xml_element_name", ")", ":", "return_obj", "=", "{", "}", "xmlelements", "=", "_MinidomXmlToObject", ".", "get_child_nodes", "("...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject._fill_instance_child
Converts a child of the current dom element to the specified type.
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _fill_instance_child(xmldoc, element_name, return_type): '''Converts a child of the current dom element to the specified type. ''' xmlelements = _MinidomXmlToObject.get_child_nodes( xmldoc, _get_serialization_name(element_name)) if not xmlelements: return Non...
def _fill_instance_child(xmldoc, element_name, return_type): '''Converts a child of the current dom element to the specified type. ''' xmlelements = _MinidomXmlToObject.get_child_nodes( xmldoc, _get_serialization_name(element_name)) if not xmlelements: return Non...
[ "Converts", "a", "child", "of", "the", "current", "dom", "element", "to", "the", "specified", "type", "." ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L327-L339
[ "def", "_fill_instance_child", "(", "xmldoc", ",", "element_name", ",", "return_type", ")", ":", "xmlelements", "=", "_MinidomXmlToObject", ".", "get_child_nodes", "(", "xmldoc", ",", "_get_serialization_name", "(", "element_name", ")", ")", "if", "not", "xmlelement...
d7306fde32f60a293a7567678692bdad31e4b667
test
_MinidomXmlToObject._find_namespaces_from_child
Recursively searches from the parent to the child, gathering all the applicable namespaces along the way
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def _find_namespaces_from_child(parent, child, namespaces): """Recursively searches from the parent to the child, gathering all the applicable namespaces along the way""" for cur_child in parent.childNodes: if cur_child is child: return True if _MinidomXml...
def _find_namespaces_from_child(parent, child, namespaces): """Recursively searches from the parent to the child, gathering all the applicable namespaces along the way""" for cur_child in parent.childNodes: if cur_child is child: return True if _MinidomXml...
[ "Recursively", "searches", "from", "the", "parent", "to", "the", "child", "gathering", "all", "the", "applicable", "namespaces", "along", "the", "way" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L420-L432
[ "def", "_find_namespaces_from_child", "(", "parent", ",", "child", ",", "namespaces", ")", ":", "for", "cur_child", "in", "parent", ".", "childNodes", ":", "if", "cur_child", "is", "child", ":", "return", "True", "if", "_MinidomXmlToObject", ".", "_find_namespac...
d7306fde32f60a293a7567678692bdad31e4b667
test
_XmlSerializer.doc_from_xml
Wraps the specified xml in an xml root element with default azure namespaces
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def doc_from_xml(document_element_name, inner_xml): '''Wraps the specified xml in an xml root element with default azure namespaces''' xml = ''.join(['<', document_element_name, ' xmlns:i="http://www.w3.org/2001/XMLSchema-instance"', ' xmlns="http://sc...
def doc_from_xml(document_element_name, inner_xml): '''Wraps the specified xml in an xml root element with default azure namespaces''' xml = ''.join(['<', document_element_name, ' xmlns:i="http://www.w3.org/2001/XMLSchema-instance"', ' xmlns="http://sc...
[ "Wraps", "the", "specified", "xml", "in", "an", "xml", "root", "element", "with", "default", "azure", "namespaces" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L1285-L1293
[ "def", "doc_from_xml", "(", "document_element_name", ",", "inner_xml", ")", ":", "xml", "=", "''", ".", "join", "(", "[", "'<'", ",", "document_element_name", ",", "' xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"'", ",", "' xmlns=\"http://schemas.microsoft.com/windo...
d7306fde32f60a293a7567678692bdad31e4b667
test
_SqlManagementXmlSerializer.doc_from_xml
Wraps the specified xml in an xml root element with default azure namespaces
azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py
def doc_from_xml(document_element_name, inner_xml, xmlns='http://schemas.microsoft.com/windowsazure'): '''Wraps the specified xml in an xml root element with default azure namespaces''' xml = ''.join(['<', document_element_name, ' xmlns="{0}">'.format(x...
def doc_from_xml(document_element_name, inner_xml, xmlns='http://schemas.microsoft.com/windowsazure'): '''Wraps the specified xml in an xml root element with default azure namespaces''' xml = ''.join(['<', document_element_name, ' xmlns="{0}">'.format(x...
[ "Wraps", "the", "specified", "xml", "in", "an", "xml", "root", "element", "with", "default", "azure", "namespaces" ]
Azure/azure-sdk-for-python
python
https://github.com/Azure/azure-sdk-for-python/blob/d7306fde32f60a293a7567678692bdad31e4b667/azure-servicemanagement-legacy/azure/servicemanagement/_serialization.py#L1391-L1399
[ "def", "doc_from_xml", "(", "document_element_name", ",", "inner_xml", ",", "xmlns", "=", "'http://schemas.microsoft.com/windowsazure'", ")", ":", "xml", "=", "''", ".", "join", "(", "[", "'<'", ",", "document_element_name", ",", "' xmlns=\"{0}\">'", ".", "format", ...
d7306fde32f60a293a7567678692bdad31e4b667