23
23
from msrest import Serializer , Deserializer
24
24
from msrestazure import AzureConfiguration
25
25
from .version import VERSION
26
- from .operations .application_operations_operations import ApplicationOperationsOperations
27
- from .operations .object_operations_operations import ObjectOperationsOperations
28
- from .operations .group_operations_operations import GroupOperationsOperations
29
- from .operations .service_principal_operations_operations import ServicePrincipalOperationsOperations
30
- from .operations .user_operations_operations import UserOperationsOperations
26
+ from .operations .applications_operations import ApplicationsOperations
27
+ from .operations .groups_operations import GroupsOperations
28
+ from .operations .service_principals_operations import ServicePrincipalsOperations
29
+ from .operations .users_operations import UsersOperations
30
+ from .operations .objects_operations import ObjectsOperations
31
31
from . import models
32
32
33
33
@@ -39,8 +39,6 @@ class GraphRbacManagementClientConfiguration(AzureConfiguration):
39
39
:param credentials: Gets Azure subscription credentials.
40
40
:type credentials: :mod:`A msrestazure Credentials
41
41
object<msrestazure.azure_active_directory>`
42
- :param api_version: Client Api Version.
43
- :type api_version: str
44
42
:param tenant_id: Gets or sets the tenant Id.
45
43
:type tenant_id: str
46
44
:param accept_language: Gets or sets the preferred language for the
@@ -58,12 +56,10 @@ class GraphRbacManagementClientConfiguration(AzureConfiguration):
58
56
"""
59
57
60
58
def __init__ (
61
- self , credentials , tenant_id , api_version = '1.6-internal' , accept_language = 'en-US' , long_running_operation_retry_timeout = 30 , generate_client_request_id = True , base_url = None , filepath = None ):
59
+ self , credentials , tenant_id , accept_language = 'en-US' , long_running_operation_retry_timeout = 30 , generate_client_request_id = True , base_url = None , filepath = None ):
62
60
63
61
if credentials is None :
64
62
raise ValueError ("Parameter 'credentials' must not be None." )
65
- if api_version is not None and not isinstance (api_version , str ):
66
- raise TypeError ("Optional parameter 'api_version' must be str." )
67
63
if tenant_id is None :
68
64
raise ValueError ("Parameter 'tenant_id' must not be None." )
69
65
if not isinstance (tenant_id , str ):
@@ -79,35 +75,32 @@ def __init__(
79
75
self .add_user_agent ('Azure-SDK-For-Python' )
80
76
81
77
self .credentials = credentials
82
- self .api_version = api_version
83
78
self .tenant_id = tenant_id
84
79
self .accept_language = accept_language
85
80
self .long_running_operation_retry_timeout = long_running_operation_retry_timeout
86
81
self .generate_client_request_id = generate_client_request_id
87
82
88
83
89
84
class GraphRbacManagementClient (object ):
90
- """GraphRbacManagementClient
85
+ """Composite Swagger for GraphRbac Management Client
91
86
92
87
:ivar config: Configuration for client.
93
88
:vartype config: GraphRbacManagementClientConfiguration
94
89
95
- :ivar application_operations: ApplicationOperations operations
96
- :vartype application_operations : .operations.ApplicationOperationsOperations
97
- :ivar object_operations: ObjectOperations operations
98
- :vartype object_operations : .operations.ObjectOperationsOperations
99
- :ivar group_operations: GroupOperations operations
100
- :vartype group_operations : .operations.GroupOperationsOperations
101
- :ivar service_principal_operations: ServicePrincipalOperations operations
102
- :vartype service_principal_operations : .operations.ServicePrincipalOperationsOperations
103
- :ivar user_operations: UserOperations operations
104
- :vartype user_operations : .operations.UserOperationsOperations
90
+ :ivar applications: Applications operations
91
+ :vartype applications : .operations.ApplicationsOperations
92
+ :ivar groups: Groups operations
93
+ :vartype groups : .operations.GroupsOperations
94
+ :ivar service_principals: ServicePrincipals operations
95
+ :vartype service_principals : .operations.ServicePrincipalsOperations
96
+ :ivar users: Users operations
97
+ :vartype users : .operations.UsersOperations
98
+ :ivar objects: Objects operations
99
+ :vartype objects : .operations.ObjectsOperations
105
100
106
101
:param credentials: Gets Azure subscription credentials.
107
102
:type credentials: :mod:`A msrestazure Credentials
108
103
object<msrestazure.azure_active_directory>`
109
- :param api_version: Client Api Version.
110
- :type api_version: str
111
104
:param tenant_id: Gets or sets the tenant Id.
112
105
:type tenant_id: str
113
106
:param accept_language: Gets or sets the preferred language for the
@@ -125,22 +118,22 @@ class GraphRbacManagementClient(object):
125
118
"""
126
119
127
120
def __init__ (
128
- self , credentials , tenant_id , api_version = '1.6-internal' , accept_language = 'en-US' , long_running_operation_retry_timeout = 30 , generate_client_request_id = True , base_url = None , filepath = None ):
121
+ self , credentials , tenant_id , accept_language = 'en-US' , long_running_operation_retry_timeout = 30 , generate_client_request_id = True , base_url = None , filepath = None ):
129
122
130
- self .config = GraphRbacManagementClientConfiguration (credentials , tenant_id , api_version , accept_language , long_running_operation_retry_timeout , generate_client_request_id , base_url , filepath )
123
+ self .config = GraphRbacManagementClientConfiguration (credentials , tenant_id , accept_language , long_running_operation_retry_timeout , generate_client_request_id , base_url , filepath )
131
124
self ._client = ServiceClient (self .config .credentials , self .config )
132
125
133
126
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
134
127
self ._serialize = Serializer (client_models )
135
128
self ._deserialize = Deserializer (client_models )
136
129
137
- self .application_operations = ApplicationOperationsOperations (
130
+ self .applications = ApplicationsOperations (
138
131
self ._client , self .config , self ._serialize , self ._deserialize )
139
- self .object_operations = ObjectOperationsOperations (
132
+ self .groups = GroupsOperations (
140
133
self ._client , self .config , self ._serialize , self ._deserialize )
141
- self .group_operations = GroupOperationsOperations (
134
+ self .service_principals = ServicePrincipalsOperations (
142
135
self ._client , self .config , self ._serialize , self ._deserialize )
143
- self .service_principal_operations = ServicePrincipalOperationsOperations (
136
+ self .users = UsersOperations (
144
137
self ._client , self .config , self ._serialize , self ._deserialize )
145
- self .user_operations = UserOperationsOperations (
138
+ self .objects = ObjectsOperations (
146
139
self ._client , self .config , self ._serialize , self ._deserialize )
0 commit comments