azure.mgmt.signalr.operations module

class azure.mgmt.signalr.operations.Operations(client, config, serializer, deserializer)[source]

Bases: object

Operations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – Client Api Version. Constant value: “2020-05-01”.

list(custom_headers=None, raw=False, **operation_config)[source]

Lists all of the available REST API operations of the Microsoft.SignalRService provider.

Parameters
  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of Operation

Return type

OperationPaged[Operation]

Raises

ErrorResponseException

models = <module 'azure.mgmt.signalr.models' from '/home/vsts/work/1/s/sdk/signalr/azure-mgmt-signalr/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/signalr/models/__init__.py'>
class azure.mgmt.signalr.operations.SignalROperations(client, config, serializer, deserializer)[source]

Bases: object

SignalROperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – Client Api Version. Constant value: “2020-05-01”.

check_name_availability(location, type, name, custom_headers=None, raw=False, **operation_config)[source]

Checks that the SignalR name is valid and is not already in use.

Parameters
  • location (str) – the region

  • type (str) – The resource type. Should be always “Microsoft.SignalRService/SignalR”.

  • name (str) – The SignalR service name to validate. e.g.”my-signalR-name-here”

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

NameAvailability or ClientRawResponse if raw=true

Return type

NameAvailability or ClientRawResponse

Raises

ErrorResponseException

create_or_update(resource_group_name, resource_name, parameters=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Create a new SignalR service and update an exiting SignalR service.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • parameters (SignalRResource) – Parameters for the create or update operation

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns SignalRResource or ClientRawResponse<SignalRResource> if raw==True

Return type

AzureOperationPoller[SignalRResource] or AzureOperationPoller[ClientRawResponse[SignalRResource]]

Raises

ErrorResponseException

delete(resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Operation to delete a SignalR service.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns None or ClientRawResponse<None> if raw==True

Return type

AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]

Raises

ErrorResponseException

get(resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)[source]

Get the SignalR service and its properties.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

SignalRResource or ClientRawResponse if raw=true

Return type

SignalRResource or ClientRawResponse

Raises

ErrorResponseException

list_by_resource_group(resource_group_name, custom_headers=None, raw=False, **operation_config)[source]

Handles requests to list all resources in a resource group.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of SignalRResource

Return type

SignalRResourcePaged[SignalRResource]

Raises

ErrorResponseException

list_by_subscription(custom_headers=None, raw=False, **operation_config)[source]

Handles requests to list all resources in a subscription.

Parameters
  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of SignalRResource

Return type

SignalRResourcePaged[SignalRResource]

Raises

ErrorResponseException

list_keys(resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)[source]

Get the access keys of the SignalR resource.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

SignalRKeys or ClientRawResponse if raw=true

Return type

SignalRKeys or ClientRawResponse

Raises

ErrorResponseException

regenerate_key(resource_group_name, resource_name, key_type=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Regenerate SignalR service access key. PrimaryKey and SecondaryKey cannot be regenerated at the same time.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • key_type (str or KeyType) – The keyType to regenerate. Must be either ‘primary’ or ‘secondary’(case-insensitive). Possible values include: ‘Primary’, ‘Secondary’

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns SignalRKeys or ClientRawResponse<SignalRKeys> if raw==True

Return type

AzureOperationPoller[SignalRKeys] or AzureOperationPoller[ClientRawResponse[SignalRKeys]]

Raises

ErrorResponseException

restart(resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Operation to restart a SignalR service.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns None or ClientRawResponse<None> if raw==True

Return type

AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]

Raises

ErrorResponseException

update(resource_group_name, resource_name, parameters=None, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Operation to update an exiting SignalR service.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • parameters (SignalRResource) – Parameters for the update operation

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns SignalRResource or ClientRawResponse<SignalRResource> if raw==True

Return type

AzureOperationPoller[SignalRResource] or AzureOperationPoller[ClientRawResponse[SignalRResource]]

Raises

ErrorResponseException

models = <module 'azure.mgmt.signalr.models' from '/home/vsts/work/1/s/sdk/signalr/azure-mgmt-signalr/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/signalr/models/__init__.py'>
class azure.mgmt.signalr.operations.SignalRPrivateEndpointConnectionsOperations(client, config, serializer, deserializer)[source]

Bases: object

SignalRPrivateEndpointConnectionsOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – Client Api Version. Constant value: “2020-05-01”.

delete(private_endpoint_connection_name, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config)[source]

Delete the specified private endpoint connection associated with a SignalR resource.

Parameters
  • private_endpoint_connection_name (str) – The name of the private endpoint connection associated with the SignalR resource.

  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – The poller return type is ClientRawResponse, the direct response alongside the deserialized response

  • polling – True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns None or ClientRawResponse<None> if raw==True

Return type

AzureOperationPoller[None] or AzureOperationPoller[ClientRawResponse[None]]

Raises

ErrorResponseException

get(private_endpoint_connection_name, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)[source]

Get the specified private endpoint connection associated with a SignalR resource.

Parameters
  • private_endpoint_connection_name (str) – The name of the private endpoint connection associated with the SignalR resource.

  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

PrivateEndpointConnection or ClientRawResponse if raw=true

Return type

PrivateEndpointConnection or ClientRawResponse

Raises

ErrorResponseException

update(private_endpoint_connection_name, resource_group_name, resource_name, private_endpoint=None, private_link_service_connection_state=None, custom_headers=None, raw=False, **operation_config)[source]

Update the state of specified private endpoint connection associated with a SignalR resource.

Parameters
  • private_endpoint_connection_name (str) – The name of the private endpoint connection associated with the SignalR resource.

  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • private_endpoint (PrivateEndpoint) – Private endpoint associated with the private endpoint connection

  • private_link_service_connection_state (PrivateLinkServiceConnectionState) – Connection state

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

PrivateEndpointConnection or ClientRawResponse if raw=true

Return type

PrivateEndpointConnection or ClientRawResponse

Raises

ErrorResponseException

models = <module 'azure.mgmt.signalr.models' from '/home/vsts/work/1/s/sdk/signalr/azure-mgmt-signalr/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/signalr/models/__init__.py'>
class azure.mgmt.signalr.operations.SignalRPrivateLinkResourcesOperations(client, config, serializer, deserializer)[source]

Bases: object

SignalRPrivateLinkResourcesOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – Client Api Version. Constant value: “2020-05-01”.

list(resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config)[source]

Get the private link resources that need to be created for a SignalR resource.

Parameters
  • resource_group_name (str) – The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

  • resource_name (str) – The name of the SignalR resource.

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of PrivateLinkResource

Return type

PrivateLinkResourcePaged[PrivateLinkResource]

Raises

ErrorResponseException

models = <module 'azure.mgmt.signalr.models' from '/home/vsts/work/1/s/sdk/signalr/azure-mgmt-signalr/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/signalr/models/__init__.py'>
class azure.mgmt.signalr.operations.UsagesOperations(client, config, serializer, deserializer)[source]

Bases: object

UsagesOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

Variables

api_version – Client Api Version. Constant value: “2020-05-01”.

list(location, custom_headers=None, raw=False, **operation_config)[source]

List usage quotas for Azure SignalR service by location.

Parameters
  • location (str) – the location like “eastus”

  • custom_headers (dict) – headers that will be added to the request

  • raw (bool) – returns the direct response alongside the deserialized response

  • operation_configOperation configuration overrides.

Returns

An iterator like instance of SignalRUsage

Return type

SignalRUsagePaged[SignalRUsage]

Raises

ErrorResponseException

models = <module 'azure.mgmt.signalr.models' from '/home/vsts/work/1/s/sdk/signalr/azure-mgmt-signalr/.tox/sphinx/lib/python3.6/site-packages/azure/mgmt/signalr/models/__init__.py'>