Skip to content

Commit

Permalink
Generated from b6f25d6c7a490b4a5c68520faf3d0fe04bc5c45c (#3749)
Browse files Browse the repository at this point in the history
Fix package-2018-09-01-preview-only
  • Loading branch information
AutorestCI authored Nov 6, 2018
1 parent 255c685 commit 5ed7087
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 1,419 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,12 @@ def permissions(self):
* 2015-07-01: :class:`PermissionsOperations<azure.mgmt.authorization.v2015_07_01.operations.PermissionsOperations>`
* 2018-01-01-preview: :class:`PermissionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.PermissionsOperations>`
* 2018-09-01-preview: :class:`PermissionsOperations<azure.mgmt.authorization.v2018_09_01_preview.operations.PermissionsOperations>`
"""
api_version = self._get_api_version('permissions')
if api_version == '2015-07-01':
from .v2015_07_01.operations import PermissionsOperations as OperationClass
elif api_version == '2018-01-01-preview':
from .v2018_01_01_preview.operations import PermissionsOperations as OperationClass
elif api_version == '2018-09-01-preview':
from .v2018_09_01_preview.operations import PermissionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -182,15 +179,12 @@ def provider_operations_metadata(self):
* 2015-07-01: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2015_07_01.operations.ProviderOperationsMetadataOperations>`
* 2018-01-01-preview: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.ProviderOperationsMetadataOperations>`
* 2018-09-01-preview: :class:`ProviderOperationsMetadataOperations<azure.mgmt.authorization.v2018_09_01_preview.operations.ProviderOperationsMetadataOperations>`
"""
api_version = self._get_api_version('provider_operations_metadata')
if api_version == '2015-07-01':
from .v2015_07_01.operations import ProviderOperationsMetadataOperations as OperationClass
elif api_version == '2018-01-01-preview':
from .v2018_01_01_preview.operations import ProviderOperationsMetadataOperations as OperationClass
elif api_version == '2018-09-01-preview':
from .v2018_09_01_preview.operations import ProviderOperationsMetadataOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -220,15 +214,12 @@ def role_definitions(self):
* 2015-07-01: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2015_07_01.operations.RoleDefinitionsOperations>`
* 2018-01-01-preview: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2018_01_01_preview.operations.RoleDefinitionsOperations>`
* 2018-09-01-preview: :class:`RoleDefinitionsOperations<azure.mgmt.authorization.v2018_09_01_preview.operations.RoleDefinitionsOperations>`
"""
api_version = self._get_api_version('role_definitions')
if api_version == '2015-07-01':
from .v2015_07_01.operations import RoleDefinitionsOperations as OperationClass
elif api_version == '2018-01-01-preview':
from .v2018_01_01_preview.operations import RoleDefinitionsOperations as OperationClass
elif api_version == '2018-09-01-preview':
from .v2018_09_01_preview.operations import RoleDefinitionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.provider_operations_metadata_operations import ProviderOperationsMetadataOperations
from .operations.permissions_operations import PermissionsOperations
from .operations.role_assignments_operations import RoleAssignmentsOperations
from .operations.permissions_operations import PermissionsOperations
from .operations.role_definitions_operations import RoleDefinitionsOperations
from . import models

Expand Down Expand Up @@ -53,17 +53,17 @@ def __init__(


class AuthorizationManagementClient(SDKClient):
"""Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role definitions and role assignments. A role definition describes the set of actions that can be performed on resources. A role assignment grants access to Azure Active Directory users.
"""AuthorizationManagementClient
:ivar config: Configuration for client.
:vartype config: AuthorizationManagementClientConfiguration
:ivar provider_operations_metadata: ProviderOperationsMetadata operations
:vartype provider_operations_metadata: azure.mgmt.authorization.v2018_01_01_preview.operations.ProviderOperationsMetadataOperations
:ivar permissions: Permissions operations
:vartype permissions: azure.mgmt.authorization.v2018_01_01_preview.operations.PermissionsOperations
:ivar role_assignments: RoleAssignments operations
:vartype role_assignments: azure.mgmt.authorization.v2018_01_01_preview.operations.RoleAssignmentsOperations
:ivar permissions: Permissions operations
:vartype permissions: azure.mgmt.authorization.v2018_01_01_preview.operations.PermissionsOperations
:ivar role_definitions: RoleDefinitions operations
:vartype role_definitions: azure.mgmt.authorization.v2018_01_01_preview.operations.RoleDefinitionsOperations
Expand All @@ -88,9 +88,9 @@ def __init__(

self.provider_operations_metadata = ProviderOperationsMetadataOperations(
self._client, self.config, self._serialize, self._deserialize)
self.permissions = PermissionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.role_assignments = RoleAssignmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.permissions = PermissionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.role_definitions = RoleDefinitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,39 @@
from .provider_operation_py3 import ProviderOperation
from .resource_type_py3 import ResourceType
from .provider_operations_metadata_py3 import ProviderOperationsMetadata
from .permission_py3 import Permission
from .role_definition_filter_py3 import RoleDefinitionFilter
from .role_definition_py3 import RoleDefinition
from .role_assignment_filter_py3 import RoleAssignmentFilter
from .role_assignment_py3 import RoleAssignment
from .role_assignment_create_parameters_py3 import RoleAssignmentCreateParameters
from .role_definition_filter_py3 import RoleDefinitionFilter
from .permission_py3 import Permission
from .role_definition_py3 import RoleDefinition
except (SyntaxError, ImportError):
from .provider_operation import ProviderOperation
from .resource_type import ResourceType
from .provider_operations_metadata import ProviderOperationsMetadata
from .permission import Permission
from .role_definition_filter import RoleDefinitionFilter
from .role_definition import RoleDefinition
from .role_assignment_filter import RoleAssignmentFilter
from .role_assignment import RoleAssignment
from .role_assignment_create_parameters import RoleAssignmentCreateParameters
from .role_definition_filter import RoleDefinitionFilter
from .permission import Permission
from .role_definition import RoleDefinition
from .provider_operations_metadata_paged import ProviderOperationsMetadataPaged
from .permission_paged import PermissionPaged
from .role_assignment_paged import RoleAssignmentPaged
from .permission_paged import PermissionPaged
from .role_definition_paged import RoleDefinitionPaged

__all__ = [
'ProviderOperation',
'ResourceType',
'ProviderOperationsMetadata',
'Permission',
'RoleDefinitionFilter',
'RoleDefinition',
'RoleAssignmentFilter',
'RoleAssignment',
'RoleAssignmentCreateParameters',
'RoleDefinitionFilter',
'Permission',
'RoleDefinition',
'ProviderOperationsMetadataPaged',
'PermissionPaged',
'RoleAssignmentPaged',
'PermissionPaged',
'RoleDefinitionPaged',
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# --------------------------------------------------------------------------

from .provider_operations_metadata_operations import ProviderOperationsMetadataOperations
from .permissions_operations import PermissionsOperations
from .role_assignments_operations import RoleAssignmentsOperations
from .permissions_operations import PermissionsOperations
from .role_definitions_operations import RoleDefinitionsOperations

__all__ = [
'ProviderOperationsMetadataOperations',
'PermissionsOperations',
'RoleAssignmentsOperations',
'PermissionsOperations',
'RoleDefinitionsOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.provider_operations_metadata_operations import ProviderOperationsMetadataOperations
from .operations.permissions_operations import PermissionsOperations
from .operations.role_assignments_operations import RoleAssignmentsOperations
from .operations.role_definitions_operations import RoleDefinitionsOperations
from . import models


Expand Down Expand Up @@ -53,19 +50,13 @@ def __init__(


class AuthorizationManagementClient(SDKClient):
"""Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role definitions and role assignments. A role definition describes the set of actions that can be performed on resources. A role assignment grants access to Azure Active Directory users.
"""Role based access control provides you a way to apply granular level policy administration down to individual resources or resource groups. These operations enable you to manage role assignments. A role assignment grants access to Azure Active Directory users.
:ivar config: Configuration for client.
:vartype config: AuthorizationManagementClientConfiguration
:ivar provider_operations_metadata: ProviderOperationsMetadata operations
:vartype provider_operations_metadata: azure.mgmt.authorization.v2018_09_01_preview.operations.ProviderOperationsMetadataOperations
:ivar permissions: Permissions operations
:vartype permissions: azure.mgmt.authorization.v2018_09_01_preview.operations.PermissionsOperations
:ivar role_assignments: RoleAssignments operations
:vartype role_assignments: azure.mgmt.authorization.v2018_09_01_preview.operations.RoleAssignmentsOperations
:ivar role_definitions: RoleDefinitions operations
:vartype role_definitions: azure.mgmt.authorization.v2018_09_01_preview.operations.RoleDefinitionsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -86,11 +77,5 @@ def __init__(
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.provider_operations_metadata = ProviderOperationsMetadataOperations(
self._client, self.config, self._serialize, self._deserialize)
self.permissions = PermissionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.role_assignments = RoleAssignmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.role_definitions = RoleDefinitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,22 @@
# --------------------------------------------------------------------------

try:
from .provider_operation_py3 import ProviderOperation
from .resource_type_py3 import ResourceType
from .provider_operations_metadata_py3 import ProviderOperationsMetadata
from .permission_py3 import Permission
from .role_definition_filter_py3 import RoleDefinitionFilter
from .role_definition_py3 import RoleDefinition
from .role_assignment_filter_py3 import RoleAssignmentFilter
from .role_assignment_py3 import RoleAssignment
from .role_assignment_create_parameters_py3 import RoleAssignmentCreateParameters
except (SyntaxError, ImportError):
from .provider_operation import ProviderOperation
from .resource_type import ResourceType
from .provider_operations_metadata import ProviderOperationsMetadata
from .permission import Permission
from .role_definition_filter import RoleDefinitionFilter
from .role_definition import RoleDefinition
from .role_assignment_filter import RoleAssignmentFilter
from .role_assignment import RoleAssignment
from .role_assignment_create_parameters import RoleAssignmentCreateParameters
from .provider_operations_metadata_paged import ProviderOperationsMetadataPaged
from .permission_paged import PermissionPaged
from .role_assignment_paged import RoleAssignmentPaged
from .role_definition_paged import RoleDefinitionPaged
from .authorization_management_client_enums import (
PrincipalType,
)

__all__ = [
'ProviderOperation',
'ResourceType',
'ProviderOperationsMetadata',
'Permission',
'RoleDefinitionFilter',
'RoleDefinition',
'RoleAssignmentFilter',
'RoleAssignment',
'RoleAssignmentCreateParameters',
'ProviderOperationsMetadataPaged',
'PermissionPaged',
'RoleAssignmentPaged',
'RoleDefinitionPaged',
'PrincipalType',
]

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 5ed7087

Please sign in to comment.