_id stringlengths 2 7 | title stringlengths 1 88 | partition stringclasses 3
values | text stringlengths 75 19.8k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q267400 | ServiceManagementService.get_service_certificate | test | def get_service_certificate(self, service_name, thumbalgorithm, thumbprint):
'''
Returns the public data for the specified X.509 certificate associated
with a hosted service.
service_name:
Name of the hosted service.
thumbalgorithm:
The algorithm for the ... | python | {
"resource": ""
} |
q267401 | ServiceManagementService.add_service_certificate | test | def add_service_certificate(self, service_name, data, certificate_format,
password=None):
'''
Adds a certificate to a hosted service.
service_name:
Name of the hosted service.
data:
The base-64 encoded form of the pfx/cer file.
... | python | {
"resource": ""
} |
q267402 | ServiceManagementService.delete_service_certificate | test | def delete_service_certificate(self, service_name, thumbalgorithm,
thumbprint):
'''
Deletes a service certificate from the certificate store of a hosted
service.
service_name:
Name of the hosted service.
thumbalgorithm:
... | python | {
"resource": ""
} |
q267403 | ServiceManagementService.get_management_certificate | test | def get_management_certificate(self, thumbprint):
'''
The Get Management Certificate operation retrieves information about
the management certificate with the specified thumbprint. Management
certificates, which are also known as subscription certificates,
authenticate clients at... | python | {
"resource": ""
} |
q267404 | ServiceManagementService.add_management_certificate | test | def add_management_certificate(self, public_key, thumbprint, data):
'''
The Add Management Certificate operation adds a certificate to the
list of management certificates. Management certificates, which are
also known as subscription certificates, authenticate clients
attempting ... | python | {
"resource": ""
} |
q267405 | ServiceManagementService.delete_management_certificate | test | def delete_management_certificate(self, thumbprint):
'''
The Delete Management Certificate operation deletes a certificate from
the list of management certificates. Management certificates, which
are also known as subscription certificates, authenticate clients
attempting to conn... | python | {
"resource": ""
} |
q267406 | ServiceManagementService.get_affinity_group_properties | test | def get_affinity_group_properties(self, affinity_group_name):
'''
Returns the system properties associated with the specified affinity
group.
affinity_group_name:
The name of the affinity group.
'''
_validate_not_none('affinity_group_name', affinity_group_nam... | python | {
"resource": ""
} |
q267407 | ServiceManagementService.create_affinity_group | test | def create_affinity_group(self, name, label, location, description=None):
'''
Creates a new affinity group for the specified subscription.
name:
A name for the affinity group that is unique to the subscription.
label:
A name for the affinity group. The name can b... | python | {
"resource": ""
} |
q267408 | ServiceManagementService.delete_affinity_group | test | def delete_affinity_group(self, affinity_group_name):
'''
Deletes an affinity group in the specified subscription.
affinity_group_name:
The name of the affinity group.
'''
_validate_not_none('affinity_group_name', affinity_group_name)
return self._perform_del... | python | {
"resource": ""
} |
q267409 | ServiceManagementService.list_subscription_operations | test | def list_subscription_operations(self, start_time=None, end_time=None, object_id_filter=None,
operation_result_filter=None, continuation_token=None):
'''
List subscription operations.
start_time: Required. An ISO8601 date.
end_time: Required. An ISO8... | python | {
"resource": ""
} |
q267410 | ServiceManagementService.create_reserved_ip_address | test | def create_reserved_ip_address(self, name, label=None, location=None):
'''
Reserves an IPv4 address for the specified subscription.
name:
Required. Specifies the name for the reserved IP address.
label:
Optional. Specifies a label for the reserved IP address. The... | python | {
"resource": ""
} |
q267411 | ServiceManagementService.delete_reserved_ip_address | test | def delete_reserved_ip_address(self, name):
'''
Deletes a reserved IP address from the specified subscription.
name:
Required. Name of the reserved IP address.
'''
_validate_not_none('name', name)
return self._perform_delete(self._get_reserved_ip_path(name),
... | python | {
"resource": ""
} |
q267412 | ServiceManagementService.associate_reserved_ip_address | test | def associate_reserved_ip_address(
self, name, service_name, deployment_name, virtual_ip_name=None
):
'''
Associate an existing reservedIP to a deployment.
name:
Required. Name of the reserved IP address.
service_name:
Required. Name of the hosted se... | python | {
"resource": ""
} |
q267413 | ServiceManagementService.disassociate_reserved_ip_address | test | def disassociate_reserved_ip_address(
self, name, service_name, deployment_name, virtual_ip_name=None
):
'''
Disassociate an existing reservedIP from the given deployment.
name:
Required. Name of the reserved IP address.
service_name:
Required. Name ... | python | {
"resource": ""
} |
q267414 | ServiceManagementService.get_reserved_ip_address | test | def get_reserved_ip_address(self, name):
'''
Retrieves information about the specified reserved IP address.
name:
Required. Name of the reserved IP address.
'''
_validate_not_none('name', name)
return self._perform_get(self._get_reserved_ip_path(name), Reserv... | python | {
"resource": ""
} |
q267415 | ServiceManagementService.get_role | test | def get_role(self, service_name, deployment_name, role_name):
'''
Retrieves the specified virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
The name of the role.
'''
... | python | {
"resource": ""
} |
q267416 | ServiceManagementService.create_virtual_machine_deployment | test | def create_virtual_machine_deployment(self, service_name, deployment_name,
deployment_slot, label, role_name,
system_config, os_virtual_hard_disk,
network_config=None,
... | python | {
"resource": ""
} |
q267417 | ServiceManagementService.add_role | test | def add_role(self, service_name, deployment_name, role_name, system_config,
os_virtual_hard_disk, network_config=None,
availability_set_name=None, data_virtual_hard_disks=None,
role_size=None, role_type='PersistentVMRole',
resource_extension_references... | python | {
"resource": ""
} |
q267418 | ServiceManagementService.update_role | test | def update_role(self, service_name, deployment_name, role_name,
os_virtual_hard_disk=None, network_config=None,
availability_set_name=None, data_virtual_hard_disks=None,
role_size=None, role_type='PersistentVMRole',
resource_extension_refer... | python | {
"resource": ""
} |
q267419 | ServiceManagementService.delete_role | test | def delete_role(self, service_name, deployment_name, role_name, complete = False):
'''
Deletes the specified virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
The name of the role.
... | python | {
"resource": ""
} |
q267420 | ServiceManagementService.capture_role | test | def capture_role(self, service_name, deployment_name, role_name,
post_capture_action, target_image_name,
target_image_label, provisioning_configuration=None):
'''
The Capture Role operation captures a virtual machine image to your
image gallery. From the... | python | {
"resource": ""
} |
q267421 | ServiceManagementService.start_role | test | def start_role(self, service_name, deployment_name, role_name):
'''
Starts the specified virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
The name of the role.
'''
... | python | {
"resource": ""
} |
q267422 | ServiceManagementService.start_roles | test | def start_roles(self, service_name, deployment_name, role_names):
'''
Starts the specified virtual machines.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_names:
The names of the roles, as an enumerab... | python | {
"resource": ""
} |
q267423 | ServiceManagementService.restart_role | test | def restart_role(self, service_name, deployment_name, role_name):
'''
Restarts the specified virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
The name of the role.
'''
... | python | {
"resource": ""
} |
q267424 | ServiceManagementService.shutdown_role | test | def shutdown_role(self, service_name, deployment_name, role_name,
post_shutdown_action='Stopped'):
'''
Shuts down the specified virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role... | python | {
"resource": ""
} |
q267425 | ServiceManagementService.shutdown_roles | test | def shutdown_roles(self, service_name, deployment_name, role_names,
post_shutdown_action='Stopped'):
'''
Shuts down the specified virtual machines.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
... | python | {
"resource": ""
} |
q267426 | ServiceManagementService.add_dns_server | test | def add_dns_server(self, service_name, deployment_name, dns_server_name, address):
'''
Adds a DNS server definition to an existing deployment.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
dns_server_name:
... | python | {
"resource": ""
} |
q267427 | ServiceManagementService.update_dns_server | test | def update_dns_server(self, service_name, deployment_name, dns_server_name, address):
'''
Updates the ip address of a DNS server.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
dns_server_name:
Specifies th... | python | {
"resource": ""
} |
q267428 | ServiceManagementService.delete_dns_server | test | def delete_dns_server(self, service_name, deployment_name, dns_server_name):
'''
Deletes a DNS server from a deployment.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
dns_server_name:
Name of the DNS serve... | python | {
"resource": ""
} |
q267429 | ServiceManagementService.list_resource_extension_versions | test | def list_resource_extension_versions(self, publisher_name, extension_name):
'''
Lists the versions of a resource extension that are available to add
to a Virtual Machine.
publisher_name:
Name of the resource extension publisher.
extension_name:
Name of th... | python | {
"resource": ""
} |
q267430 | ServiceManagementService.replicate_vm_image | test | def replicate_vm_image(self, vm_image_name, regions, offer, sku, version):
'''
Replicate a VM image to multiple target locations. This operation
is only for publishers. You have to be registered as image publisher
with Microsoft Azure to be able to call this.
vm_image_name:
... | python | {
"resource": ""
} |
q267431 | ServiceManagementService.unreplicate_vm_image | test | def unreplicate_vm_image(self, vm_image_name):
'''
Unreplicate a VM image from all regions This operation
is only for publishers. You have to be registered as image publisher
with Microsoft Azure to be able to call this
vm_image_name:
Specifies the name of the VM Ima... | python | {
"resource": ""
} |
q267432 | ServiceManagementService.share_vm_image | test | def share_vm_image(self, vm_image_name, permission):
'''
Share an already replicated OS image. This operation is only for
publishers. You have to be registered as image publisher with Windows
Azure to be able to call this.
vm_image_name:
The name of the virtual machi... | python | {
"resource": ""
} |
q267433 | ServiceManagementService.create_vm_image | test | def create_vm_image(self, vm_image):
'''
Creates a VM Image in the image repository that is associated with the
specified subscription using a specified set of virtual hard disks.
vm_image:
An instance of VMImage class.
vm_image.name: Required. Specifies the name of ... | python | {
"resource": ""
} |
q267434 | ServiceManagementService.delete_vm_image | test | def delete_vm_image(self, vm_image_name, delete_vhd=False):
'''
Deletes the specified VM Image from the image repository that is
associated with the specified subscription.
vm_image_name:
The name of the image.
delete_vhd:
Deletes the underlying vhd blob ... | python | {
"resource": ""
} |
q267435 | ServiceManagementService.list_vm_images | test | def list_vm_images(self, location=None, publisher=None, category=None):
'''
Retrieves a list of the VM Images from the image repository that is
associated with the specified subscription.
'''
path = self._get_vm_image_path()
query = ''
if location:
que... | python | {
"resource": ""
} |
q267436 | ServiceManagementService.update_vm_image | test | def update_vm_image(self, vm_image_name, vm_image):
'''
Updates a VM Image in the image repository that is associated with the
specified subscription.
vm_image_name:
Name of image to update.
vm_image:
An instance of VMImage class.
vm_image.label: ... | python | {
"resource": ""
} |
q267437 | ServiceManagementService.add_os_image | test | def add_os_image(self, label, media_link, name, os):
'''
Adds an OS image that is currently stored in a storage account in your
subscription to the image repository.
label:
Specifies the friendly name of the image.
media_link:
Specifies the location of th... | python | {
"resource": ""
} |
q267438 | ServiceManagementService.update_os_image | test | def update_os_image(self, image_name, label, media_link, name, os):
'''
Updates an OS image that in your image repository.
image_name:
The name of the image to update.
label:
Specifies the friendly name of the image to be updated. You cannot
use this ... | python | {
"resource": ""
} |
q267439 | ServiceManagementService.update_os_image_from_image_reference | test | def update_os_image_from_image_reference(self, image_name, os_image):
'''
Updates metadata elements from a given OS image reference.
image_name:
The name of the image to update.
os_image:
An instance of OSImage class.
os_image.label: Optional. Specifies a... | python | {
"resource": ""
} |
q267440 | ServiceManagementService.delete_os_image | test | def delete_os_image(self, image_name, delete_vhd=False):
'''
Deletes the specified OS image from your image repository.
image_name:
The name of the image.
delete_vhd:
Deletes the underlying vhd blob in Azure storage.
'''
_validate_not_none('image_... | python | {
"resource": ""
} |
q267441 | ServiceManagementService.get_data_disk | test | def get_data_disk(self, service_name, deployment_name, role_name, lun):
'''
Retrieves the specified data disk from a virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
The name of th... | python | {
"resource": ""
} |
q267442 | ServiceManagementService.add_data_disk | test | def add_data_disk(self, service_name, deployment_name, role_name, lun,
host_caching=None, media_link=None, disk_label=None,
disk_name=None, logical_disk_size_in_gb=None,
source_media_link=None):
'''
Adds a data disk to a virtual machine.
... | python | {
"resource": ""
} |
q267443 | ServiceManagementService.update_data_disk | test | def update_data_disk(self, service_name, deployment_name, role_name, lun,
host_caching=None, media_link=None, updated_lun=None,
disk_label=None, disk_name=None,
logical_disk_size_in_gb=None):
'''
Updates the specified data disk a... | python | {
"resource": ""
} |
q267444 | ServiceManagementService.delete_data_disk | test | def delete_data_disk(self, service_name, deployment_name, role_name, lun, delete_vhd=False):
'''
Removes the specified data disk from a virtual machine.
service_name:
The name of the service.
deployment_name:
The name of the deployment.
role_name:
... | python | {
"resource": ""
} |
q267445 | ServiceManagementService.add_disk | test | def add_disk(self, has_operating_system, label, media_link, name, os):
'''
Adds a disk to the user image repository. The disk can be an OS disk
or a data disk.
has_operating_system:
Deprecated.
label:
Specifies the description of the disk.
media_l... | python | {
"resource": ""
} |
q267446 | ServiceManagementService.update_disk | test | def update_disk(self, disk_name, has_operating_system=None, label=None, media_link=None,
name=None, os=None):
'''
Updates an existing disk in your image repository.
disk_name:
The name of the disk to update.
has_operating_system:
Deprecated.
... | python | {
"resource": ""
} |
q267447 | ServiceManagementService.delete_disk | test | def delete_disk(self, disk_name, delete_vhd=False):
'''
Deletes the specified data or operating system disk from your image
repository.
disk_name:
The name of the disk to delete.
delete_vhd:
Deletes the underlying vhd blob in Azure storage.
'''
... | python | {
"resource": ""
} |
q267448 | PolicyStatesOperations.summarize_for_management_group | test | def summarize_for_management_group(
self, management_group_name, query_options=None, custom_headers=None, raw=False, **operation_config):
"""Summarizes policy states for the resources under the management group.
:param management_group_name: Management group name.
:type management_g... | python | {
"resource": ""
} |
q267449 | Receiver._build_receiver | test | def _build_receiver(self):
"""This is a temporary patch pending a fix in uAMQP."""
# pylint: disable=protected-access
self._handler.message_handler = self._handler.receiver_type(
self._handler._session,
self._handler._remote_address,
self._handler._name,
... | python | {
"resource": ""
} |
q267450 | Receiver.fetch_next | test | def fetch_next(self, max_batch_size=None, timeout=None):
"""Receive a batch of messages at once.
This approach it optimal if you wish to process multiple messages simultaneously. Note that the
number of messages retrieved in a single batch will be dependent on
whether `prefetch` was set... | python | {
"resource": ""
} |
q267451 | SessionReceiver.renew_lock | test | def renew_lock(self):
"""Renew the session lock.
This operation must be performed periodically in order to retain a lock on the
session to continue message processing.
Once the lock is lost the connection will be closed. This operation can
also be performed as a threaded backgro... | python | {
"resource": ""
} |
q267452 | VirtualMachineScaleSetsOperations.create_or_update | test | def create_or_update(
self, resource_group_name, vm_scale_set_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config):
"""Create or update a VM scale set.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:... | python | {
"resource": ""
} |
q267453 | VirtualMachineScaleSetsOperations.convert_to_single_placement_group | test | def convert_to_single_placement_group(
self, resource_group_name, vm_scale_set_name, active_placement_group_id=None, custom_headers=None, raw=False, **operation_config):
"""Converts SinglePlacementGroup property to false for a existing virtual
machine scale set.
:param resource_grou... | python | {
"resource": ""
} |
q267454 | TextModerationOperations.screen_text | test | def screen_text(
self, text_content_type, text_content, language=None, autocorrect=False, pii=False, list_id=None, classify=False, custom_headers=None, raw=False, callback=None, **operation_config):
"""Detect profanity and match against custom and shared blacklists.
Detects profanity in mor... | python | {
"resource": ""
} |
q267455 | KeyVaultClient.create_key | test | def create_key(
self, vault_base_url, key_name, kty, key_size=None, key_ops=None, key_attributes=None, tags=None, curve=None, custom_headers=None, raw=False, **operation_config):
"""Creates a new key, stores it, then returns key parameters and
attributes to the client.
The create ke... | python | {
"resource": ""
} |
q267456 | KeyVaultClient.import_key | test | def import_key(
self, vault_base_url, key_name, key, hsm=None, key_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
"""Imports an externally created key, stores it, and returns key
parameters and attributes to the client.
The import key operation may ... | python | {
"resource": ""
} |
q267457 | KeyVaultClient.update_key | test | def update_key(
self, vault_base_url, key_name, key_version, key_ops=None, key_attributes=None, tags=None, custom_headers=None, raw=False, **operation_config):
"""The update key operation changes specified attributes of a stored key
and can be applied to any key type and key version stored i... | python | {
"resource": ""
} |
q267458 | KeyVaultClient.set_secret | test | def set_secret(
self, vault_base_url, secret_name, value, tags=None, content_type=None, secret_attributes=None, custom_headers=None, raw=False, **operation_config):
"""Sets a secret in a specified key vault.
The SET operation adds a secret to the Azure Key Vault. If the named
secret... | python | {
"resource": ""
} |
q267459 | KeyVaultClient.set_certificate_issuer | test | def set_certificate_issuer(
self, vault_base_url, issuer_name, provider, credentials=None, organization_details=None, attributes=None, custom_headers=None, raw=False, **operation_config):
"""Sets the specified certificate issuer.
The SetCertificateIssuer operation adds or updates the specif... | python | {
"resource": ""
} |
q267460 | ServiceBusClient.from_connection_string | test | def from_connection_string(cls, conn_str, *, loop=None, **kwargs):
"""Create a Service Bus client from a connection string.
:param conn_str: The connection string.
:type conn_str: str
Example:
.. literalinclude:: ../examples/async_examples/test_examples_async.py
... | python | {
"resource": ""
} |
q267461 | ServiceBusClient.get_subscription | test | def get_subscription(self, topic_name, subscription_name):
"""Get an async client for a subscription entity.
:param topic_name: The name of the topic.
:type topic_name: str
:param subscription_name: The name of the subscription.
:type subscription_name: str
:rtype: ~azur... | python | {
"resource": ""
} |
q267462 | ServiceBusClient.list_subscriptions | test | def list_subscriptions(self, topic_name):
"""Get an async client for all subscription entities in the topic.
:param topic_name: The topic to list subscriptions for.
:type topic_name: str
:rtype: list[~azure.servicebus.aio.async_client.SubscriptionClient]
:raises: ~azure.serviceb... | python | {
"resource": ""
} |
q267463 | SendClientMixin.send | test | async def send(self, messages, message_timeout=0, session=None, **kwargs):
"""Send one or more messages to the current entity.
This operation will open a single-use connection, send the supplied messages, and close
connection. If the entity requires sessions, a session ID must be either
... | python | {
"resource": ""
} |
q267464 | SendClientMixin.get_sender | test | def get_sender(self, message_timeout=0, session=None, **kwargs):
"""Get a Sender for the Service Bus endpoint.
A Sender represents a single open connection within which multiple send operations can be made.
:param message_timeout: The period in seconds during which messages sent with
... | python | {
"resource": ""
} |
q267465 | ReceiveClientMixin.get_receiver | test | def get_receiver(self, session=None, prefetch=0, mode=ReceiveSettleMode.PeekLock, idle_timeout=0, **kwargs):
"""Get a Receiver for the Service Bus endpoint.
A Receiver represents a single open connection with which multiple receive operations can be made.
:param session: A specific session fro... | python | {
"resource": ""
} |
q267466 | ReceiveClientMixin.get_deadletter_receiver | test | def get_deadletter_receiver(
self, transfer_deadletter=False, prefetch=0,
mode=ReceiveSettleMode.PeekLock, idle_timeout=0, **kwargs):
"""Get a Receiver for the deadletter endpoint of the entity.
A Receiver represents a single open connection with which multiple receive operation... | python | {
"resource": ""
} |
q267467 | parse_response_for_async_op | test | def parse_response_for_async_op(response):
''' Extracts request id from response header. '''
if response is None:
return None
result = AsynchronousOperationResult()
if response.headers:
for name, value in response.headers:
if name.lower() == 'x-ms-request-id':
... | python | {
"resource": ""
} |
q267468 | _ServiceManagementClient.perform_get | test | def perform_get(self, path, x_ms_version=None):
'''
Performs a GET request and returns the response.
path:
Path to the resource.
Ex: '/<subscription-id>/services/hostedservices/<service-name>'
x_ms_version:
If specified, this is used for the x-ms-vers... | python | {
"resource": ""
} |
q267469 | _ServiceManagementClient.perform_put | test | def perform_put(self, path, body, x_ms_version=None):
'''
Performs a PUT request and returns the response.
path:
Path to the resource.
Ex: '/<subscription-id>/services/hostedservices/<service-name>'
body:
Body for the PUT request.
x_ms_version... | python | {
"resource": ""
} |
q267470 | _ServiceManagementClient.wait_for_operation_status | test | def wait_for_operation_status(self,
request_id, wait_for_status='Succeeded', timeout=30, sleep_interval=5,
progress_callback=wait_for_operation_status_progress_default_callback,
success_callback=wait_for_operation_status_success_default_callback,
failure_callback=wait_for_operation_statu... | python | {
"resource": ""
} |
q267471 | _ServiceManagementClient.get_operation_status | test | def get_operation_status(self, request_id):
'''
Returns the status of the specified operation. After calling an
asynchronous operation, you can call Get Operation Status to determine
whether the operation has succeeded, failed, or is still in progress.
request_id:
Th... | python | {
"resource": ""
} |
q267472 | _ServiceManagementClient._update_management_header | test | def _update_management_header(self, request, x_ms_version):
''' Add additional headers for management. '''
if request.method in ['PUT', 'POST', 'MERGE', 'DELETE']:
request.headers.append(('Content-Length', str(len(request.body))))
# append additional headers base on the service
... | python | {
"resource": ""
} |
q267473 | travis_build_package | test | def travis_build_package():
"""Assumed called on Travis, to prepare a package to be deployed
This method prints on stdout for Travis.
Return is obj to pass to sys.exit() directly
"""
travis_tag = os.environ.get('TRAVIS_TAG')
if not travis_tag:
print("TRAVIS_TAG environment variable is ... | python | {
"resource": ""
} |
q267474 | KeyVaultClient.get_certificates | test | def get_certificates(
self, vault_base_url, maxresults=None, include_pending=None, custom_headers=None, raw=False, **operation_config):
"""List certificates in a specified key vault.
The GetCertificates operation returns the set of certificates resources
in the specified key vault. ... | python | {
"resource": ""
} |
q267475 | ServiceBusManagementService.get_regions | test | def get_regions(self):
'''
Get list of available service bus regions.
'''
response = self._perform_get(
self._get_path('services/serviceBus/Regions/', None),
None)
return _MinidomXmlToObject.convert_response_to_feeds(
response,
_Se... | python | {
"resource": ""
} |
q267476 | ServiceBusManagementService.list_namespaces | test | def list_namespaces(self):
'''
List the service bus namespaces defined on the account.
'''
response = self._perform_get(
self._get_path('services/serviceBus/Namespaces/', None),
None)
return _MinidomXmlToObject.convert_response_to_feeds(
respo... | python | {
"resource": ""
} |
q267477 | ServiceBusManagementService.get_namespace | test | def get_namespace(self, name):
'''
Get details about a specific namespace.
name:
Name of the service bus namespace.
'''
response = self._perform_get(
self._get_path('services/serviceBus/Namespaces', name),
None)
return _ServiceBusMana... | python | {
"resource": ""
} |
q267478 | ServiceBusManagementService.create_namespace | test | def create_namespace(self, name, region):
'''
Create a new service bus namespace.
name:
Name of the service bus namespace to create.
region:
Region to create the namespace in.
'''
_validate_not_none('name', name)
return self._perform_put(... | python | {
"resource": ""
} |
q267479 | ServiceBusManagementService.delete_namespace | test | def delete_namespace(self, name):
'''
Delete a service bus namespace.
name:
Name of the service bus namespace to delete.
'''
_validate_not_none('name', name)
return self._perform_delete(
self._get_path('services/serviceBus/Namespaces', name),
... | python | {
"resource": ""
} |
q267480 | ServiceBusManagementService.check_namespace_availability | test | def check_namespace_availability(self, name):
'''
Checks to see if the specified service bus namespace is available, or
if it has already been taken.
name:
Name of the service bus namespace to validate.
'''
_validate_not_none('name', name)
response =... | python | {
"resource": ""
} |
q267481 | ServiceBusManagementService.list_topics | test | def list_topics(self, name):
'''
Retrieves the topics in the service namespace.
name:
Name of the service bus namespace.
'''
response = self._perform_get(
self._get_list_topics_path(name),
None)
return _MinidomXmlToObject.convert_resp... | python | {
"resource": ""
} |
q267482 | ServiceBusManagementService.list_notification_hubs | test | def list_notification_hubs(self, name):
'''
Retrieves the notification hubs in the service namespace.
name:
Name of the service bus namespace.
'''
response = self._perform_get(
self._get_list_notification_hubs_path(name),
None)
return... | python | {
"resource": ""
} |
q267483 | ServiceBusManagementService.list_relays | test | def list_relays(self, name):
'''
Retrieves the relays in the service namespace.
name:
Name of the service bus namespace.
'''
response = self._perform_get(
self._get_list_relays_path(name),
None)
return _MinidomXmlToObject.convert_resp... | python | {
"resource": ""
} |
q267484 | ServiceBusManagementService.get_metrics_rollups_queue | test | def get_metrics_rollups_queue(self, name, queue_name, metric):
'''
This operation gets rollup data for Service Bus metrics queue.
Rollup data includes the time granularity for the telemetry aggregation as well as
the retention settings for each time granularity.
name:
... | python | {
"resource": ""
} |
q267485 | ServiceBusManagementService.get_metrics_rollups_topic | test | def get_metrics_rollups_topic(self, name, topic_name, metric):
'''
This operation gets rollup data for Service Bus metrics topic.
Rollup data includes the time granularity for the telemetry aggregation as well as
the retention settings for each time granularity.
name:
... | python | {
"resource": ""
} |
q267486 | ServiceBusManagementService.get_metrics_rollups_notification_hub | test | def get_metrics_rollups_notification_hub(self, name, hub_name, metric):
'''
This operation gets rollup data for Service Bus metrics notification hub.
Rollup data includes the time granularity for the telemetry aggregation as well as
the retention settings for each time granularity.
... | python | {
"resource": ""
} |
q267487 | ServiceBusManagementService.get_metrics_rollups_relay | test | def get_metrics_rollups_relay(self, name, relay_name, metric):
'''
This operation gets rollup data for Service Bus metrics relay.
Rollup data includes the time granularity for the telemetry aggregation as well as
the retention settings for each time granularity.
name:
... | python | {
"resource": ""
} |
q267488 | create | test | def create(env_dir, system_site_packages=False, clear=False,
symlinks=False, with_pip=False, prompt=None):
"""Create a virtual environment in a directory."""
builder = ExtendedEnvBuilder(system_site_packages=system_site_packages,
clear=clear, symlinks=symlink... | python | {
"resource": ""
} |
q267489 | create_venv_with_package | test | def create_venv_with_package(packages):
"""Create a venv with these packages in a temp dir and yielf the env.
packages should be an iterable of pip version instructio (e.g. package~=1.2.3)
"""
with tempfile.TemporaryDirectory() as tempdir:
myenv = create(tempdir, with_pip=True)
pip_call... | python | {
"resource": ""
} |
q267490 | SqlDatabaseManagementService.create_server | test | def create_server(self, admin_login, admin_password, location):
'''
Create a new Azure SQL Database server.
admin_login:
The administrator login name for the new server.
admin_password:
The administrator login password for the new server.
location:
... | python | {
"resource": ""
} |
q267491 | SqlDatabaseManagementService.set_server_admin_password | test | def set_server_admin_password(self, server_name, admin_password):
'''
Reset the administrator password for a server.
server_name:
Name of the server to change the password.
admin_password:
The new administrator password for the server.
'''
_valida... | python | {
"resource": ""
} |
q267492 | SqlDatabaseManagementService.list_quotas | test | def list_quotas(self, server_name):
'''
Gets quotas for an Azure SQL Database Server.
server_name:
Name of the server.
'''
_validate_not_none('server_name', server_name)
response = self._perform_get(self._get_quotas_path(server_name),
... | python | {
"resource": ""
} |
q267493 | SqlDatabaseManagementService.get_server_event_logs | test | def get_server_event_logs(self, server_name, start_date,
interval_size_in_minutes, event_types=''):
'''
Gets the event logs for an Azure SQL Database Server.
server_name:
Name of the server to retrieve the event logs from.
start_date:
... | python | {
"resource": ""
} |
q267494 | SqlDatabaseManagementService.create_firewall_rule | test | def create_firewall_rule(self, server_name, name, start_ip_address,
end_ip_address):
'''
Creates an Azure SQL Database server firewall rule.
server_name:
Name of the server to set the firewall rule on.
name:
The name of the new firew... | python | {
"resource": ""
} |
q267495 | SqlDatabaseManagementService.update_firewall_rule | test | def update_firewall_rule(self, server_name, name, start_ip_address,
end_ip_address):
'''
Update a firewall rule for an Azure SQL Database server.
server_name:
Name of the server to set the firewall rule on.
name:
The name of the fire... | python | {
"resource": ""
} |
q267496 | SqlDatabaseManagementService.delete_firewall_rule | test | def delete_firewall_rule(self, server_name, name):
'''
Deletes an Azure SQL Database server firewall rule.
server_name:
Name of the server with the firewall rule you want to delete.
name:
Name of the firewall rule you want to delete.
'''
_validate... | python | {
"resource": ""
} |
q267497 | SqlDatabaseManagementService.list_firewall_rules | test | def list_firewall_rules(self, server_name):
'''
Retrieves the set of firewall rules for an Azure SQL Database Server.
server_name:
Name of the server.
'''
_validate_not_none('server_name', server_name)
response = self._perform_get(self._get_firewall_rules_pat... | python | {
"resource": ""
} |
q267498 | SqlDatabaseManagementService.list_service_level_objectives | test | def list_service_level_objectives(self, server_name):
'''
Gets the service level objectives for an Azure SQL Database server.
server_name:
Name of the server.
'''
_validate_not_none('server_name', server_name)
response = self._perform_get(
self._g... | python | {
"resource": ""
} |
q267499 | SqlDatabaseManagementService.create_database | test | def create_database(self, server_name, name, service_objective_id,
edition=None, collation_name=None,
max_size_bytes=None):
'''
Creates a new Azure SQL Database.
server_name:
Name of the server to contain the new database.
name... | python | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.