HybridConnectionsOperations Class

HybridConnectionsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
HybridConnectionsOperations

Constructor

HybridConnectionsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

create_or_update

Creates or updates a service hybrid connection. This operation is idempotent.

create_or_update_authorization_rule

Creates or updates an authorization rule for a hybrid connection.

delete

Deletes a hybrid connection.

delete_authorization_rule

Deletes a hybrid connection authorization rule.

get

Returns the description for the specified hybrid connection.

get_authorization_rule

Hybrid connection authorization rule for a hybrid connection by name.

list_authorization_rules

Authorization rules for a hybrid connection.

list_by_namespace

Lists the hybrid connection within the namespace.

list_keys

Primary and secondary connection strings to the hybrid connection.

regenerate_keys

Regenerates the primary or secondary connection strings to the hybrid connection.

create_or_update

Creates or updates a service hybrid connection. This operation is idempotent.

async create_or_update(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, parameters: azure.mgmt.relay.models._models_py3.HybridConnection, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.HybridConnection

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

parameters
HybridConnection
Required

Parameters supplied to create a hybrid connection.

cls
callable

A custom type or function that will be passed the direct response

Returns

HybridConnection, or the result of cls(response)

Return type

Exceptions

create_or_update_authorization_rule

Creates or updates an authorization rule for a hybrid connection.

async create_or_update_authorization_rule(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, parameters: azure.mgmt.relay.models._models_py3.AuthorizationRule, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.AuthorizationRule

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

authorization_rule_name
str
Required

The authorization rule name.

parameters
AuthorizationRule
Required

The authorization rule parameters.

cls
callable

A custom type or function that will be passed the direct response

Returns

AuthorizationRule, or the result of cls(response)

Return type

Exceptions

delete

Deletes a hybrid connection.

async delete(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

delete_authorization_rule

Deletes a hybrid connection authorization rule.

async delete_authorization_rule(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

authorization_rule_name
str
Required

The authorization rule name.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Returns the description for the specified hybrid connection.

async get(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.HybridConnection

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

cls
callable

A custom type or function that will be passed the direct response

Returns

HybridConnection, or the result of cls(response)

Return type

Exceptions

get_authorization_rule

Hybrid connection authorization rule for a hybrid connection by name.

async get_authorization_rule(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.AuthorizationRule

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

authorization_rule_name
str
Required

The authorization rule name.

cls
callable

A custom type or function that will be passed the direct response

Returns

AuthorizationRule, or the result of cls(response)

Return type

Exceptions

list_authorization_rules

Authorization rules for a hybrid connection.

list_authorization_rules(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.relay.models._models_py3.AuthorizationRuleListResult]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AuthorizationRuleListResult or the result of cls(response)

Return type

Exceptions

list_by_namespace

Lists the hybrid connection within the namespace.

list_by_namespace(resource_group_name: str, namespace_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.relay.models._models_py3.HybridConnectionListResult]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either HybridConnectionListResult or the result of cls(response)

Return type

Exceptions

list_keys

Primary and secondary connection strings to the hybrid connection.

async list_keys(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.AccessKeys

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

authorization_rule_name
str
Required

The authorization rule name.

cls
callable

A custom type or function that will be passed the direct response

Returns

AccessKeys, or the result of cls(response)

Return type

Exceptions

regenerate_keys

Regenerates the primary or secondary connection strings to the hybrid connection.

async regenerate_keys(resource_group_name: str, namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, parameters: azure.mgmt.relay.models._models_py3.RegenerateAccessKeyParameters, **kwargs: Any) -> azure.mgmt.relay.models._models_py3.AccessKeys

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

namespace_name
str
Required

The namespace name.

hybrid_connection_name
str
Required

The hybrid connection name.

authorization_rule_name
str
Required

The authorization rule name.

parameters
RegenerateAccessKeyParameters
Required

Parameters supplied to regenerate authorization rule.

cls
callable

A custom type or function that will be passed the direct response

Returns

AccessKeys, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.relay.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\relay\\models\\__init__.py'>