Skip to content

Commit 2383277

Browse files
authored
ga track2 authorization (Azure#15503)
1 parent e520715 commit 2383277

File tree

37 files changed

+479
-421
lines changed

37 files changed

+479
-421
lines changed

sdk/authorization/azure-mgmt-authorization/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Release History
22

3+
## 1.0.0 (2020-11-23)
4+
35
## 1.0.0b1 (2020-10-13)
46

57
This is beta preview version.

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "1.0.0b1"
8+
VERSION = "1.0.0"

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_06_01/_metadata.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
11-
"has_lro_operations": false
11+
"has_lro_operations": false,
12+
"client_side_validation": false
1213
},
1314
"global_parameters": {
14-
"sync_method": {
15+
"sync": {
1516
"credential": {
16-
"method_signature": "credential, # type: \"TokenCredential\"",
17+
"signature": "credential, # type: \"TokenCredential\"",
1718
"description": "Credential needed for the client to connect to Azure.",
1819
"docstring_type": "~azure.core.credentials.TokenCredential",
1920
"required": true
2021
},
2122
"subscription_id": {
22-
"method_signature": "subscription_id, # type: str",
23+
"signature": "subscription_id, # type: str",
2324
"description": "The ID of the target subscription.",
2425
"docstring_type": "str",
2526
"required": true
2627
}
2728
},
28-
"async_method": {
29+
"async": {
2930
"credential": {
30-
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
3132
"description": "Credential needed for the client to connect to Azure.",
3233
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3334
"required": true
3435
},
3536
"subscription_id": {
36-
"method_signature": "subscription_id, # type: str",
37+
"signature": "subscription_id, # type: str",
3738
"description": "The ID of the target subscription.",
3839
"docstring_type": "str",
3940
"required": true

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_06_01/aio/operations/_classic_administrators_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from ... import models
17+
from ... import models as _models
1818

1919
T = TypeVar('T')
2020
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -33,7 +33,7 @@ class ClassicAdministratorsOperations:
3333
:param deserializer: An object model deserializer.
3434
"""
3535

36-
models = models
36+
models = _models
3737

3838
def __init__(self, client, config, serializer, deserializer) -> None:
3939
self._client = client
@@ -44,15 +44,15 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
**kwargs
47-
) -> AsyncIterable["models.ClassicAdministratorListResult"]:
47+
) -> AsyncIterable["_models.ClassicAdministratorListResult"]:
4848
"""Gets service administrator, account administrator, and co-administrators for the subscription.
4949
5050
:keyword callable cls: A custom type or function that will be passed the direct response
5151
:return: An iterator like instance of either ClassicAdministratorListResult or the result of cls(response)
5252
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.authorization.v2015_06_01.models.ClassicAdministratorListResult]
5353
:raises: ~azure.core.exceptions.HttpResponseError
5454
"""
55-
cls = kwargs.pop('cls', None) # type: ClsType["models.ClassicAdministratorListResult"]
55+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ClassicAdministratorListResult"]
5656
error_map = {
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_06_01/operations/_classic_administrators_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from .. import models
17+
from .. import models as _models
1818

1919
if TYPE_CHECKING:
2020
# pylint: disable=unused-import,ungrouped-imports
@@ -37,7 +37,7 @@ class ClassicAdministratorsOperations(object):
3737
:param deserializer: An object model deserializer.
3838
"""
3939

40-
models = models
40+
models = _models
4141

4242
def __init__(self, client, config, serializer, deserializer):
4343
self._client = client
@@ -49,15 +49,15 @@ def list(
4949
self,
5050
**kwargs # type: Any
5151
):
52-
# type: (...) -> Iterable["models.ClassicAdministratorListResult"]
52+
# type: (...) -> Iterable["_models.ClassicAdministratorListResult"]
5353
"""Gets service administrator, account administrator, and co-administrators for the subscription.
5454
5555
:keyword callable cls: A custom type or function that will be passed the direct response
5656
:return: An iterator like instance of either ClassicAdministratorListResult or the result of cls(response)
5757
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.authorization.v2015_06_01.models.ClassicAdministratorListResult]
5858
:raises: ~azure.core.exceptions.HttpResponseError
5959
"""
60-
cls = kwargs.pop('cls', None) # type: ClsType["models.ClassicAdministratorListResult"]
60+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ClassicAdministratorListResult"]
6161
error_map = {
6262
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6363
}

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01/_metadata.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
11-
"has_lro_operations": false
11+
"has_lro_operations": false,
12+
"client_side_validation": false
1213
},
1314
"global_parameters": {
14-
"sync_method": {
15+
"sync": {
1516
"credential": {
16-
"method_signature": "credential, # type: \"TokenCredential\"",
17+
"signature": "credential, # type: \"TokenCredential\"",
1718
"description": "Credential needed for the client to connect to Azure.",
1819
"docstring_type": "~azure.core.credentials.TokenCredential",
1920
"required": true
2021
},
2122
"subscription_id": {
22-
"method_signature": "subscription_id, # type: str",
23+
"signature": "subscription_id, # type: str",
2324
"description": "The ID of the target subscription.",
2425
"docstring_type": "str",
2526
"required": true
2627
}
2728
},
28-
"async_method": {
29+
"async": {
2930
"credential": {
30-
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
3132
"description": "Credential needed for the client to connect to Azure.",
3233
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
3334
"required": true
3435
},
3536
"subscription_id": {
36-
"method_signature": "subscription_id, # type: str",
37+
"signature": "subscription_id, # type: str",
3738
"description": "The ID of the target subscription.",
3839
"docstring_type": "str",
3940
"required": true

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01/aio/operations/_classic_administrators_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from ... import models
17+
from ... import models as _models
1818

1919
T = TypeVar('T')
2020
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -33,7 +33,7 @@ class ClassicAdministratorsOperations:
3333
:param deserializer: An object model deserializer.
3434
"""
3535

36-
models = models
36+
models = _models
3737

3838
def __init__(self, client, config, serializer, deserializer) -> None:
3939
self._client = client
@@ -44,15 +44,15 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4444
def list(
4545
self,
4646
**kwargs
47-
) -> AsyncIterable["models.ClassicAdministratorListResult"]:
47+
) -> AsyncIterable["_models.ClassicAdministratorListResult"]:
4848
"""Gets service administrator, account administrator, and co-administrators for the subscription.
4949
5050
:keyword callable cls: A custom type or function that will be passed the direct response
5151
:return: An iterator like instance of either ClassicAdministratorListResult or the result of cls(response)
5252
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.authorization.v2015_07_01.models.ClassicAdministratorListResult]
5353
:raises: ~azure.core.exceptions.HttpResponseError
5454
"""
55-
cls = kwargs.pop('cls', None) # type: ClsType["models.ClassicAdministratorListResult"]
55+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ClassicAdministratorListResult"]
5656
error_map = {
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01/aio/operations/_global_administrator_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1414
from azure.mgmt.core.exceptions import ARMErrorFormat
1515

16-
from ... import models
16+
from ... import models as _models
1717

1818
T = TypeVar('T')
1919
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -32,7 +32,7 @@ class GlobalAdministratorOperations:
3232
:param deserializer: An object model deserializer.
3333
"""
3434

35-
models = models
35+
models = _models
3636

3737
def __init__(self, client, config, serializer, deserializer) -> None:
3838
self._client = client

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01/aio/operations/_permissions_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from ... import models
17+
from ... import models as _models
1818

1919
T = TypeVar('T')
2020
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -33,7 +33,7 @@ class PermissionsOperations:
3333
:param deserializer: An object model deserializer.
3434
"""
3535

36-
models = models
36+
models = _models
3737

3838
def __init__(self, client, config, serializer, deserializer) -> None:
3939
self._client = client
@@ -45,7 +45,7 @@ def list_for_resource_group(
4545
self,
4646
resource_group_name: str,
4747
**kwargs
48-
) -> AsyncIterable["models.PermissionGetResult"]:
48+
) -> AsyncIterable["_models.PermissionGetResult"]:
4949
"""Gets all permissions the caller has for a resource group.
5050
5151
:param resource_group_name: The name of the resource group to get the permissions for. The name
@@ -56,7 +56,7 @@ def list_for_resource_group(
5656
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.authorization.v2015_07_01.models.PermissionGetResult]
5757
:raises: ~azure.core.exceptions.HttpResponseError
5858
"""
59-
cls = kwargs.pop('cls', None) # type: ClsType["models.PermissionGetResult"]
59+
cls = kwargs.pop('cls', None) # type: ClsType["_models.PermissionGetResult"]
6060
error_map = {
6161
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6262
}
@@ -120,7 +120,7 @@ def list_for_resource(
120120
resource_type: str,
121121
resource_name: str,
122122
**kwargs
123-
) -> AsyncIterable["models.PermissionGetResult"]:
123+
) -> AsyncIterable["_models.PermissionGetResult"]:
124124
"""Gets all permissions the caller has for a resource.
125125
126126
:param resource_group_name: The name of the resource group containing the resource. The name is
@@ -139,7 +139,7 @@ def list_for_resource(
139139
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.authorization.v2015_07_01.models.PermissionGetResult]
140140
:raises: ~azure.core.exceptions.HttpResponseError
141141
"""
142-
cls = kwargs.pop('cls', None) # type: ClsType["models.PermissionGetResult"]
142+
cls = kwargs.pop('cls', None) # type: ClsType["_models.PermissionGetResult"]
143143
error_map = {
144144
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
145145
}

sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2015_07_01/aio/operations/_provider_operations_metadata_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1515
from azure.mgmt.core.exceptions import ARMErrorFormat
1616

17-
from ... import models
17+
from ... import models as _models
1818

1919
T = TypeVar('T')
2020
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
@@ -33,7 +33,7 @@ class ProviderOperationsMetadataOperations:
3333
:param deserializer: An object model deserializer.
3434
"""
3535

36-
models = models
36+
models = _models
3737

3838
def __init__(self, client, config, serializer, deserializer) -> None:
3939
self._client = client
@@ -46,7 +46,7 @@ async def get(
4646
resource_provider_namespace: str,
4747
expand: Optional[str] = "resourceTypes",
4848
**kwargs
49-
) -> "models.ProviderOperationsMetadata":
49+
) -> "_models.ProviderOperationsMetadata":
5050
"""Gets provider operations metadata for the specified resource provider.
5151
5252
:param resource_provider_namespace: The namespace of the resource provider.
@@ -58,7 +58,7 @@ async def get(
5858
:rtype: ~azure.mgmt.authorization.v2015_07_01.models.ProviderOperationsMetadata
5959
:raises: ~azure.core.exceptions.HttpResponseError
6060
"""
61-
cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderOperationsMetadata"]
61+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProviderOperationsMetadata"]
6262
error_map = {
6363
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6464
}
@@ -103,7 +103,7 @@ def list(
103103
self,
104104
expand: Optional[str] = "resourceTypes",
105105
**kwargs
106-
) -> AsyncIterable["models.ProviderOperationsMetadataListResult"]:
106+
) -> AsyncIterable["_models.ProviderOperationsMetadataListResult"]:
107107
"""Gets provider operations metadata for all resource providers.
108108
109109
:param expand: Specifies whether to expand the values.
@@ -113,7 +113,7 @@ def list(
113113
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.authorization.v2015_07_01.models.ProviderOperationsMetadataListResult]
114114
:raises: ~azure.core.exceptions.HttpResponseError
115115
"""
116-
cls = kwargs.pop('cls', None) # type: ClsType["models.ProviderOperationsMetadataListResult"]
116+
cls = kwargs.pop('cls', None) # type: ClsType["_models.ProviderOperationsMetadataListResult"]
117117
error_map = {
118118
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
119119
}

0 commit comments

Comments
 (0)