@@ -21,7 +21,7 @@ class ApplicationsOperations(object):
21
21
:param client: Client for service requests.
22
22
:param config: Configuration of service client.
23
23
:param serializer: An object model serializer.
24
- :param deserializer: An objec model deserializer.
24
+ :param deserializer: An object model deserializer.
25
25
:ivar api_version: Client API version. Constant value: "1.6".
26
26
"""
27
27
@@ -54,7 +54,7 @@ def create(
54
54
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
55
55
"""
56
56
# Construct URL
57
- url = '/{tenantID}/applications'
57
+ url = self . create . metadata [ 'url' ]
58
58
path_format_arguments = {
59
59
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
60
60
}
@@ -95,6 +95,7 @@ def create(
95
95
return client_raw_response
96
96
97
97
return deserialized
98
+ create .metadata = {'url' : '/{tenantID}/applications' }
98
99
99
100
def list (
100
101
self , filter = None , custom_headers = None , raw = False , ** operation_config ):
@@ -117,7 +118,7 @@ def internal_paging(next_link=None, raw=False):
117
118
118
119
if not next_link :
119
120
# Construct URL
120
- url = '/{tenantID}/applications'
121
+ url = self . list . metadata [ 'url' ]
121
122
path_format_arguments = {
122
123
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
123
124
}
@@ -168,6 +169,7 @@ def internal_paging(next_link=None, raw=False):
168
169
return client_raw_response
169
170
170
171
return deserialized
172
+ list .metadata = {'url' : '/{tenantID}/applications' }
171
173
172
174
def delete (
173
175
self , application_object_id , custom_headers = None , raw = False , ** operation_config ):
@@ -186,7 +188,7 @@ def delete(
186
188
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
187
189
"""
188
190
# Construct URL
189
- url = '/{tenantID}/applications/{applicationObjectId}'
191
+ url = self . delete . metadata [ 'url' ]
190
192
path_format_arguments = {
191
193
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
192
194
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -217,6 +219,7 @@ def delete(
217
219
if raw :
218
220
client_raw_response = ClientRawResponse (None , response )
219
221
return client_raw_response
222
+ delete .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}' }
220
223
221
224
def get (
222
225
self , application_object_id , custom_headers = None , raw = False , ** operation_config ):
@@ -236,7 +239,7 @@ def get(
236
239
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
237
240
"""
238
241
# Construct URL
239
- url = '/{tenantID}/applications/{applicationObjectId}'
242
+ url = self . get . metadata [ 'url' ]
240
243
path_format_arguments = {
241
244
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
242
245
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -274,6 +277,7 @@ def get(
274
277
return client_raw_response
275
278
276
279
return deserialized
280
+ get .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}' }
277
281
278
282
def patch (
279
283
self , application_object_id , parameters , custom_headers = None , raw = False , ** operation_config ):
@@ -294,7 +298,7 @@ def patch(
294
298
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
295
299
"""
296
300
# Construct URL
297
- url = '/{tenantID}/applications/{applicationObjectId}'
301
+ url = self . patch . metadata [ 'url' ]
298
302
path_format_arguments = {
299
303
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
300
304
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -329,6 +333,7 @@ def patch(
329
333
if raw :
330
334
client_raw_response = ClientRawResponse (None , response )
331
335
return client_raw_response
336
+ patch .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}' }
332
337
333
338
def list_owners (
334
339
self , application_object_id , custom_headers = None , raw = False , ** operation_config ):
@@ -355,7 +360,7 @@ def internal_paging(next_link=None, raw=False):
355
360
356
361
if not next_link :
357
362
# Construct URL
358
- url = '/{tenantID}/applications/{applicationObjectId}/owners'
363
+ url = self . list_owners . metadata [ 'url' ]
359
364
path_format_arguments = {
360
365
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
361
366
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -399,6 +404,7 @@ def internal_paging(next_link=None, raw=False):
399
404
return client_raw_response
400
405
401
406
return deserialized
407
+ list_owners .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/owners' }
402
408
403
409
def add_owner (
404
410
self , application_object_id , url , additional_properties = None , custom_headers = None , raw = False , ** operation_config ):
@@ -429,7 +435,7 @@ def add_owner(
429
435
parameters = models .ApplicationAddOwnerParameters (additional_properties = additional_properties , url = url )
430
436
431
437
# Construct URL
432
- url = '/{tenantID}/applications/{applicationObjectId}/$links/owners'
438
+ url = self . add_owner . metadata [ 'url' ]
433
439
path_format_arguments = {
434
440
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
435
441
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -464,6 +470,7 @@ def add_owner(
464
470
if raw :
465
471
client_raw_response = ClientRawResponse (None , response )
466
472
return client_raw_response
473
+ add_owner .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/$links/owners' }
467
474
468
475
def list_key_credentials (
469
476
self , application_object_id , custom_headers = None , raw = False , ** operation_config ):
@@ -486,7 +493,7 @@ def internal_paging(next_link=None, raw=False):
486
493
487
494
if not next_link :
488
495
# Construct URL
489
- url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials'
496
+ url = self . list_key_credentials . metadata [ 'url' ]
490
497
path_format_arguments = {
491
498
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
492
499
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -530,6 +537,7 @@ def internal_paging(next_link=None, raw=False):
530
537
return client_raw_response
531
538
532
539
return deserialized
540
+ list_key_credentials .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/keyCredentials' }
533
541
534
542
def update_key_credentials (
535
543
self , application_object_id , value , custom_headers = None , raw = False , ** operation_config ):
@@ -552,7 +560,7 @@ def update_key_credentials(
552
560
parameters = models .KeyCredentialsUpdateParameters (value = value )
553
561
554
562
# Construct URL
555
- url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials'
563
+ url = self . update_key_credentials . metadata [ 'url' ]
556
564
path_format_arguments = {
557
565
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
558
566
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -587,6 +595,7 @@ def update_key_credentials(
587
595
if raw :
588
596
client_raw_response = ClientRawResponse (None , response )
589
597
return client_raw_response
598
+ update_key_credentials .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/keyCredentials' }
590
599
591
600
def list_password_credentials (
592
601
self , application_object_id , custom_headers = None , raw = False , ** operation_config ):
@@ -609,7 +618,7 @@ def internal_paging(next_link=None, raw=False):
609
618
610
619
if not next_link :
611
620
# Construct URL
612
- url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'
621
+ url = self . list_password_credentials . metadata [ 'url' ]
613
622
path_format_arguments = {
614
623
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
615
624
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -653,6 +662,7 @@ def internal_paging(next_link=None, raw=False):
653
662
return client_raw_response
654
663
655
664
return deserialized
665
+ list_password_credentials .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/passwordCredentials' }
656
666
657
667
def update_password_credentials (
658
668
self , application_object_id , value , custom_headers = None , raw = False , ** operation_config ):
@@ -675,7 +685,7 @@ def update_password_credentials(
675
685
parameters = models .PasswordCredentialsUpdateParameters (value = value )
676
686
677
687
# Construct URL
678
- url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'
688
+ url = self . update_password_credentials . metadata [ 'url' ]
679
689
path_format_arguments = {
680
690
'applicationObjectId' : self ._serialize .url ("application_object_id" , application_object_id , 'str' ),
681
691
'tenantID' : self ._serialize .url ("self.config.tenant_id" , self .config .tenant_id , 'str' )
@@ -710,3 +720,4 @@ def update_password_credentials(
710
720
if raw :
711
721
client_raw_response = ClientRawResponse (None , response )
712
722
return client_raw_response
723
+ update_password_credentials .metadata = {'url' : '/{tenantID}/applications/{applicationObjectId}/passwordCredentials' }
0 commit comments