Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/signalr/azure-mgmt-signalr/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"use": [
"@autorest/[email protected].0",
"@autorest/[email protected].1"
"@autorest/[email protected].1",
"@autorest/[email protected].2"
],
"commit": "74c8e0649bf06efe190743fa091bb71e23f5b3e1",
"commit": "a7d586879f08845a76d817fcfb00ab815b71e84a",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/signalr/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].0 --use=@autorest/[email protected].1 --version=3.4.2",
"autorest_command": "autorest specification/signalr/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected].1 --use=@autorest/[email protected].2 --version=3.4.2",
"readme": "specification/signalr/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-01-preview"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-signalr/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-04-01-preview",
"total_api_version_list": ["2021-04-01-preview"],
"chosen_version": "2021-06-01-preview",
"total_api_version_list": ["2021-06-01-preview"],
"client": {
"name": "SignalRManagementClient",
"filename": "_signal_rmanagement_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b2"
VERSION = "0.2.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-01-preview"
self.api_version = "2021-06-01-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-signalr/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def check_name_availability(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -122,7 +122,7 @@ def list_by_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -193,7 +193,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -268,7 +268,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -317,7 +317,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -447,7 +447,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -558,7 +558,7 @@ async def _update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -697,7 +697,7 @@ async def list_keys(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -746,7 +746,7 @@ async def _regenerate_key_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -872,7 +872,7 @@ async def _restart_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -145,7 +145,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -212,7 +212,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -267,7 +267,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -145,7 +145,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -196,7 +196,7 @@ async def _create_or_update_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -332,7 +332,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def __init__(


class SignalRFeature(msrest.serialization.Model):
"""Feature of a SignalR resource, which controls the SignalR runtime behavior.
"""Feature of a resource, which controls the runtime behavior.

All required parameters must be populated in order to send to Azure.

Expand Down Expand Up @@ -1270,6 +1270,19 @@ class SignalRResource(TrackedResource):
:type upstream: ~azure.mgmt.signalr.models.ServerlessUpstreamSettings
:param network_ac_ls: Network ACLs.
:type network_ac_ls: ~azure.mgmt.signalr.models.SignalRNetworkACLs
:param public_network_access: Enable or disable public network access. Default to "Enabled".
When it's Enabled, network ACLs still apply.
When it's Disabled, public network access is always disabled no matter what you set in network
ACLs.
:type public_network_access: str
:param disable_local_auth: DisableLocalAuth
Enable or disable local auth with AccessKey
When set as true, connection with AccessKey=xxx won't work.
:type disable_local_auth: bool
:param disable_aad_auth: disableAadAuth
Enable or disable aad auth
When set as true, connection with AuthType=aad won't work.
:type disable_aad_auth: bool
"""

_validation = {
Expand Down Expand Up @@ -1310,6 +1323,9 @@ class SignalRResource(TrackedResource):
'cors': {'key': 'properties.cors', 'type': 'SignalRCorsSettings'},
'upstream': {'key': 'properties.upstream', 'type': 'ServerlessUpstreamSettings'},
'network_ac_ls': {'key': 'properties.networkACLs', 'type': 'SignalRNetworkACLs'},
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'},
'disable_aad_auth': {'key': 'properties.disableAadAuth', 'type': 'bool'},
}

def __init__(
Expand All @@ -1334,6 +1350,9 @@ def __init__(
self.cors = kwargs.get('cors', None)
self.upstream = kwargs.get('upstream', None)
self.network_ac_ls = kwargs.get('network_ac_ls', None)
self.public_network_access = kwargs.get('public_network_access', "Enabled")
self.disable_local_auth = kwargs.get('disable_local_auth', False)
self.disable_aad_auth = kwargs.get('disable_aad_auth', False)


class SignalRResourceList(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ def __init__(


class SignalRFeature(msrest.serialization.Model):
"""Feature of a SignalR resource, which controls the SignalR runtime behavior.
"""Feature of a resource, which controls the runtime behavior.

All required parameters must be populated in order to send to Azure.

Expand Down Expand Up @@ -1392,6 +1392,19 @@ class SignalRResource(TrackedResource):
:type upstream: ~azure.mgmt.signalr.models.ServerlessUpstreamSettings
:param network_ac_ls: Network ACLs.
:type network_ac_ls: ~azure.mgmt.signalr.models.SignalRNetworkACLs
:param public_network_access: Enable or disable public network access. Default to "Enabled".
When it's Enabled, network ACLs still apply.
When it's Disabled, public network access is always disabled no matter what you set in network
ACLs.
:type public_network_access: str
:param disable_local_auth: DisableLocalAuth
Enable or disable local auth with AccessKey
When set as true, connection with AccessKey=xxx won't work.
:type disable_local_auth: bool
:param disable_aad_auth: disableAadAuth
Enable or disable aad auth
When set as true, connection with AuthType=aad won't work.
:type disable_aad_auth: bool
"""

_validation = {
Expand Down Expand Up @@ -1432,6 +1445,9 @@ class SignalRResource(TrackedResource):
'cors': {'key': 'properties.cors', 'type': 'SignalRCorsSettings'},
'upstream': {'key': 'properties.upstream', 'type': 'ServerlessUpstreamSettings'},
'network_ac_ls': {'key': 'properties.networkACLs', 'type': 'SignalRNetworkACLs'},
'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'},
'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'},
'disable_aad_auth': {'key': 'properties.disableAadAuth', 'type': 'bool'},
}

def __init__(
Expand All @@ -1447,6 +1463,9 @@ def __init__(
cors: Optional["SignalRCorsSettings"] = None,
upstream: Optional["ServerlessUpstreamSettings"] = None,
network_ac_ls: Optional["SignalRNetworkACLs"] = None,
public_network_access: Optional[str] = "Enabled",
disable_local_auth: Optional[bool] = False,
disable_aad_auth: Optional[bool] = False,
**kwargs
):
super(SignalRResource, self).__init__(location=location, tags=tags, **kwargs)
Expand All @@ -1467,6 +1486,9 @@ def __init__(
self.cors = cors
self.upstream = upstream
self.network_ac_ls = network_ac_ls
self.public_network_access = public_network_access
self.disable_local_auth = disable_local_auth
self.disable_aad_auth = disable_aad_auth


class SignalRResourceList(msrest.serialization.Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-04-01-preview"
api_version = "2021-06-01-preview"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Loading