Skip to content

Commit f32969e

Browse files
AutorestCIlmazuel
authored andcommitted
Generated from 282617e562ce86949c550d7aaf5e10fb86552272 (#2013)
Added custom key identifier
1 parent bf4725a commit f32969e

8 files changed

+90
-47
lines changed

azure-graphrbac/azure/graphrbac/models/key_credential.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class KeyCredential(Model):
3131
:param type: Type. Acceptable values are 'AsymmetricX509Cert' and
3232
'Symmetric'.
3333
:type type: str
34+
:param custom_key_identifier: Custom Key Identifier
35+
:type custom_key_identifier: bytearray
3436
"""
3537

3638
_attribute_map = {
@@ -41,9 +43,10 @@ class KeyCredential(Model):
4143
'key_id': {'key': 'keyId', 'type': 'str'},
4244
'usage': {'key': 'usage', 'type': 'str'},
4345
'type': {'key': 'type', 'type': 'str'},
46+
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'},
4447
}
4548

46-
def __init__(self, additional_properties=None, start_date=None, end_date=None, value=None, key_id=None, usage=None, type=None):
49+
def __init__(self, additional_properties=None, start_date=None, end_date=None, value=None, key_id=None, usage=None, type=None, custom_key_identifier=None):
4750
super(KeyCredential, self).__init__()
4851
self.additional_properties = additional_properties
4952
self.start_date = start_date
@@ -52,3 +55,4 @@ def __init__(self, additional_properties=None, start_date=None, end_date=None, v
5255
self.key_id = key_id
5356
self.usage = usage
5457
self.type = type
58+
self.custom_key_identifier = custom_key_identifier

azure-graphrbac/azure/graphrbac/operations/applications_operations.py

+23-12
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ApplicationsOperations(object):
2121
:param client: Client for service requests.
2222
:param config: Configuration of service client.
2323
:param serializer: An object model serializer.
24-
:param deserializer: An objec model deserializer.
24+
:param deserializer: An object model deserializer.
2525
:ivar api_version: Client API version. Constant value: "1.6".
2626
"""
2727

@@ -54,7 +54,7 @@ def create(
5454
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
5555
"""
5656
# Construct URL
57-
url = '/{tenantID}/applications'
57+
url = self.create.metadata['url']
5858
path_format_arguments = {
5959
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
6060
}
@@ -95,6 +95,7 @@ def create(
9595
return client_raw_response
9696

9797
return deserialized
98+
create.metadata = {'url': '/{tenantID}/applications'}
9899

99100
def list(
100101
self, filter=None, custom_headers=None, raw=False, **operation_config):
@@ -117,7 +118,7 @@ def internal_paging(next_link=None, raw=False):
117118

118119
if not next_link:
119120
# Construct URL
120-
url = '/{tenantID}/applications'
121+
url = self.list.metadata['url']
121122
path_format_arguments = {
122123
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
123124
}
@@ -168,6 +169,7 @@ def internal_paging(next_link=None, raw=False):
168169
return client_raw_response
169170

170171
return deserialized
172+
list.metadata = {'url': '/{tenantID}/applications'}
171173

172174
def delete(
173175
self, application_object_id, custom_headers=None, raw=False, **operation_config):
@@ -186,7 +188,7 @@ def delete(
186188
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
187189
"""
188190
# Construct URL
189-
url = '/{tenantID}/applications/{applicationObjectId}'
191+
url = self.delete.metadata['url']
190192
path_format_arguments = {
191193
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
192194
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -217,6 +219,7 @@ def delete(
217219
if raw:
218220
client_raw_response = ClientRawResponse(None, response)
219221
return client_raw_response
222+
delete.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}'}
220223

221224
def get(
222225
self, application_object_id, custom_headers=None, raw=False, **operation_config):
@@ -236,7 +239,7 @@ def get(
236239
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
237240
"""
238241
# Construct URL
239-
url = '/{tenantID}/applications/{applicationObjectId}'
242+
url = self.get.metadata['url']
240243
path_format_arguments = {
241244
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
242245
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -274,6 +277,7 @@ def get(
274277
return client_raw_response
275278

276279
return deserialized
280+
get.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}'}
277281

278282
def patch(
279283
self, application_object_id, parameters, custom_headers=None, raw=False, **operation_config):
@@ -294,7 +298,7 @@ def patch(
294298
:class:`GraphErrorException<azure.graphrbac.models.GraphErrorException>`
295299
"""
296300
# Construct URL
297-
url = '/{tenantID}/applications/{applicationObjectId}'
301+
url = self.patch.metadata['url']
298302
path_format_arguments = {
299303
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
300304
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -329,6 +333,7 @@ def patch(
329333
if raw:
330334
client_raw_response = ClientRawResponse(None, response)
331335
return client_raw_response
336+
patch.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}'}
332337

333338
def list_owners(
334339
self, application_object_id, custom_headers=None, raw=False, **operation_config):
@@ -355,7 +360,7 @@ def internal_paging(next_link=None, raw=False):
355360

356361
if not next_link:
357362
# Construct URL
358-
url = '/{tenantID}/applications/{applicationObjectId}/owners'
363+
url = self.list_owners.metadata['url']
359364
path_format_arguments = {
360365
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
361366
'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):
399404
return client_raw_response
400405

401406
return deserialized
407+
list_owners.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/owners'}
402408

403409
def add_owner(
404410
self, application_object_id, url, additional_properties=None, custom_headers=None, raw=False, **operation_config):
@@ -429,7 +435,7 @@ def add_owner(
429435
parameters = models.ApplicationAddOwnerParameters(additional_properties=additional_properties, url=url)
430436

431437
# Construct URL
432-
url = '/{tenantID}/applications/{applicationObjectId}/$links/owners'
438+
url = self.add_owner.metadata['url']
433439
path_format_arguments = {
434440
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
435441
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -464,6 +470,7 @@ def add_owner(
464470
if raw:
465471
client_raw_response = ClientRawResponse(None, response)
466472
return client_raw_response
473+
add_owner.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/$links/owners'}
467474

468475
def list_key_credentials(
469476
self, application_object_id, custom_headers=None, raw=False, **operation_config):
@@ -486,7 +493,7 @@ def internal_paging(next_link=None, raw=False):
486493

487494
if not next_link:
488495
# Construct URL
489-
url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials'
496+
url = self.list_key_credentials.metadata['url']
490497
path_format_arguments = {
491498
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
492499
'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):
530537
return client_raw_response
531538

532539
return deserialized
540+
list_key_credentials.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/keyCredentials'}
533541

534542
def update_key_credentials(
535543
self, application_object_id, value, custom_headers=None, raw=False, **operation_config):
@@ -552,7 +560,7 @@ def update_key_credentials(
552560
parameters = models.KeyCredentialsUpdateParameters(value=value)
553561

554562
# Construct URL
555-
url = '/{tenantID}/applications/{applicationObjectId}/keyCredentials'
563+
url = self.update_key_credentials.metadata['url']
556564
path_format_arguments = {
557565
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
558566
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -587,6 +595,7 @@ def update_key_credentials(
587595
if raw:
588596
client_raw_response = ClientRawResponse(None, response)
589597
return client_raw_response
598+
update_key_credentials.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/keyCredentials'}
590599

591600
def list_password_credentials(
592601
self, application_object_id, custom_headers=None, raw=False, **operation_config):
@@ -609,7 +618,7 @@ def internal_paging(next_link=None, raw=False):
609618

610619
if not next_link:
611620
# Construct URL
612-
url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'
621+
url = self.list_password_credentials.metadata['url']
613622
path_format_arguments = {
614623
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
615624
'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):
653662
return client_raw_response
654663

655664
return deserialized
665+
list_password_credentials.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'}
656666

657667
def update_password_credentials(
658668
self, application_object_id, value, custom_headers=None, raw=False, **operation_config):
@@ -675,7 +685,7 @@ def update_password_credentials(
675685
parameters = models.PasswordCredentialsUpdateParameters(value=value)
676686

677687
# Construct URL
678-
url = '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'
688+
url = self.update_password_credentials.metadata['url']
679689
path_format_arguments = {
680690
'applicationObjectId': self._serialize.url("application_object_id", application_object_id, 'str'),
681691
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -710,3 +720,4 @@ def update_password_credentials(
710720
if raw:
711721
client_raw_response = ClientRawResponse(None, response)
712722
return client_raw_response
723+
update_password_credentials.metadata = {'url': '/{tenantID}/applications/{applicationObjectId}/passwordCredentials'}

azure-graphrbac/azure/graphrbac/operations/domains_operations.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DomainsOperations(object):
2222
:param client: Client for service requests.
2323
:param config: Configuration of service client.
2424
:param serializer: An object model serializer.
25-
:param deserializer: An objec model deserializer.
25+
:param deserializer: An object model deserializer.
2626
:ivar api_version: Client API version. Constant value: "1.6".
2727
"""
2828

@@ -57,7 +57,7 @@ def internal_paging(next_link=None, raw=False):
5757

5858
if not next_link:
5959
# Construct URL
60-
url = '/{tenantID}/domains'
60+
url = self.list.metadata['url']
6161
path_format_arguments = {
6262
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
6363
}
@@ -104,6 +104,7 @@ def internal_paging(next_link=None, raw=False):
104104
return client_raw_response
105105

106106
return deserialized
107+
list.metadata = {'url': '/{tenantID}/domains'}
107108

108109
def get(
109110
self, domain_name, custom_headers=None, raw=False, **operation_config):
@@ -122,7 +123,7 @@ def get(
122123
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
123124
"""
124125
# Construct URL
125-
url = '/{tenantID}/domains/{domainName}'
126+
url = self.get.metadata['url']
126127
path_format_arguments = {
127128
'domainName': self._serialize.url("domain_name", domain_name, 'str'),
128129
'tenantID': self._serialize.url("self.config.tenant_id", self.config.tenant_id, 'str')
@@ -162,3 +163,4 @@ def get(
162163
return client_raw_response
163164

164165
return deserialized
166+
get.metadata = {'url': '/{tenantID}/domains/{domainName}'}

0 commit comments

Comments
 (0)