Skip to content

Commit 17f3d57

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] graphrbac/data-plane (#3885)
* [AutoPR graphrbac/data-plane] add customKeyIdentifier to password credential (#3833) * Generated from 2d1a131d6bc24477750e780c70ad4384e6e5927d add customKeyIdentifier to password credential * Generated from 1c42b12d70502f95d2f42f1d421ce53f425e7ef6 add creds in app object * Generated from 74a0ba38241f5574f515beb159638e286b44bd6f custom id(thumbprint) for cert creds should be string type * 0.53.0
1 parent ade0c7d commit 17f3d57

8 files changed

+47
-8
lines changed

azure-graphrbac/HISTORY.rst

+13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
Release History
44
===============
55

6+
0.53.0 (2018-11-27)
7+
+++++++++++++++++++
8+
9+
**Features**
10+
11+
- Add PasswordCredentials.custom_key_identifier
12+
- Add Application.key_credentials
13+
- Add Application.password_credentials
14+
15+
**Bugfix**
16+
17+
- Fix KeyCredential.custom_key_identifier type from bytes to str
18+
619
0.52.0 (2018-10-29)
720
+++++++++++++++++++
821

azure-graphrbac/azure/graphrbac/models/application.py

+9
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class Application(DirectoryObject):
5858
of required resource access drives the consent experience.
5959
:type required_resource_access:
6060
list[~azure.graphrbac.models.RequiredResourceAccess]
61+
:param key_credentials: A collection of KeyCredential objects.
62+
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
63+
:param password_credentials: A collection of PasswordCredential objects
64+
:type password_credentials:
65+
list[~azure.graphrbac.models.PasswordCredential]
6166
"""
6267

6368
_validation = {
@@ -81,6 +86,8 @@ class Application(DirectoryObject):
8186
'homepage': {'key': 'homepage', 'type': 'str'},
8287
'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'},
8388
'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'},
89+
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
90+
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
8491
}
8592

8693
def __init__(self, **kwargs):
@@ -95,4 +102,6 @@ def __init__(self, **kwargs):
95102
self.homepage = kwargs.get('homepage', None)
96103
self.oauth2_allow_implicit_flow = kwargs.get('oauth2_allow_implicit_flow', None)
97104
self.required_resource_access = kwargs.get('required_resource_access', None)
105+
self.key_credentials = kwargs.get('key_credentials', None)
106+
self.password_credentials = kwargs.get('password_credentials', None)
98107
self.object_type = 'Application'

azure-graphrbac/azure/graphrbac/models/application_py3.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ class Application(DirectoryObject):
5858
of required resource access drives the consent experience.
5959
:type required_resource_access:
6060
list[~azure.graphrbac.models.RequiredResourceAccess]
61+
:param key_credentials: A collection of KeyCredential objects.
62+
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
63+
:param password_credentials: A collection of PasswordCredential objects
64+
:type password_credentials:
65+
list[~azure.graphrbac.models.PasswordCredential]
6166
"""
6267

6368
_validation = {
@@ -81,9 +86,11 @@ class Application(DirectoryObject):
8186
'homepage': {'key': 'homepage', 'type': 'str'},
8287
'oauth2_allow_implicit_flow': {'key': 'oauth2AllowImplicitFlow', 'type': 'bool'},
8388
'required_resource_access': {'key': 'requiredResourceAccess', 'type': '[RequiredResourceAccess]'},
89+
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
90+
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
8491
}
8592

86-
def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=None, app_permissions=None, available_to_other_tenants: bool=None, display_name: str=None, identifier_uris=None, reply_urls=None, homepage: str=None, oauth2_allow_implicit_flow: bool=None, required_resource_access=None, **kwargs) -> None:
93+
def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=None, app_permissions=None, available_to_other_tenants: bool=None, display_name: str=None, identifier_uris=None, reply_urls=None, homepage: str=None, oauth2_allow_implicit_flow: bool=None, required_resource_access=None, key_credentials=None, password_credentials=None, **kwargs) -> None:
8794
super(Application, self).__init__(additional_properties=additional_properties, **kwargs)
8895
self.app_id = app_id
8996
self.app_roles = app_roles
@@ -95,4 +102,6 @@ def __init__(self, *, additional_properties=None, app_id: str=None, app_roles=No
95102
self.homepage = homepage
96103
self.oauth2_allow_implicit_flow = oauth2_allow_implicit_flow
97104
self.required_resource_access = required_resource_access
105+
self.key_credentials = key_credentials
106+
self.password_credentials = password_credentials
98107
self.object_type = 'Application'

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KeyCredential(Model):
3232
'Symmetric'.
3333
:type type: str
3434
:param custom_key_identifier: Custom Key Identifier
35-
:type custom_key_identifier: bytearray
35+
:type custom_key_identifier: str
3636
"""
3737

3838
_attribute_map = {
@@ -43,7 +43,7 @@ class KeyCredential(Model):
4343
'key_id': {'key': 'keyId', 'type': 'str'},
4444
'usage': {'key': 'usage', 'type': 'str'},
4545
'type': {'key': 'type', 'type': 'str'},
46-
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'},
46+
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'str'},
4747
}
4848

4949
def __init__(self, **kwargs):

azure-graphrbac/azure/graphrbac/models/key_credential_py3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class KeyCredential(Model):
3232
'Symmetric'.
3333
:type type: str
3434
:param custom_key_identifier: Custom Key Identifier
35-
:type custom_key_identifier: bytearray
35+
:type custom_key_identifier: str
3636
"""
3737

3838
_attribute_map = {
@@ -43,10 +43,10 @@ class KeyCredential(Model):
4343
'key_id': {'key': 'keyId', 'type': 'str'},
4444
'usage': {'key': 'usage', 'type': 'str'},
4545
'type': {'key': 'type', 'type': 'str'},
46-
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'},
46+
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'str'},
4747
}
4848

49-
def __init__(self, *, additional_properties=None, start_date=None, end_date=None, value: str=None, key_id: str=None, usage: str=None, type: str=None, custom_key_identifier: bytearray=None, **kwargs) -> None:
49+
def __init__(self, *, additional_properties=None, start_date=None, end_date=None, value: str=None, key_id: str=None, usage: str=None, type: str=None, custom_key_identifier: str=None, **kwargs) -> None:
5050
super(KeyCredential, self).__init__(**kwargs)
5151
self.additional_properties = additional_properties
5252
self.start_date = start_date

azure-graphrbac/azure/graphrbac/models/password_credential.py

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class PasswordCredential(Model):
2626
:type key_id: str
2727
:param value: Key value.
2828
:type value: str
29+
:param custom_key_identifier: Custom Key Identifier
30+
:type custom_key_identifier: bytearray
2931
"""
3032

3133
_attribute_map = {
@@ -34,6 +36,7 @@ class PasswordCredential(Model):
3436
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
3537
'key_id': {'key': 'keyId', 'type': 'str'},
3638
'value': {'key': 'value', 'type': 'str'},
39+
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'},
3740
}
3841

3942
def __init__(self, **kwargs):
@@ -43,3 +46,4 @@ def __init__(self, **kwargs):
4346
self.end_date = kwargs.get('end_date', None)
4447
self.key_id = kwargs.get('key_id', None)
4548
self.value = kwargs.get('value', None)
49+
self.custom_key_identifier = kwargs.get('custom_key_identifier', None)

azure-graphrbac/azure/graphrbac/models/password_credential_py3.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class PasswordCredential(Model):
2626
:type key_id: str
2727
:param value: Key value.
2828
:type value: str
29+
:param custom_key_identifier: Custom Key Identifier
30+
:type custom_key_identifier: bytearray
2931
"""
3032

3133
_attribute_map = {
@@ -34,12 +36,14 @@ class PasswordCredential(Model):
3436
'end_date': {'key': 'endDate', 'type': 'iso-8601'},
3537
'key_id': {'key': 'keyId', 'type': 'str'},
3638
'value': {'key': 'value', 'type': 'str'},
39+
'custom_key_identifier': {'key': 'customKeyIdentifier', 'type': 'bytearray'},
3740
}
3841

39-
def __init__(self, *, additional_properties=None, start_date=None, end_date=None, key_id: str=None, value: str=None, **kwargs) -> None:
42+
def __init__(self, *, additional_properties=None, start_date=None, end_date=None, key_id: str=None, value: str=None, custom_key_identifier: bytearray=None, **kwargs) -> None:
4043
super(PasswordCredential, self).__init__(**kwargs)
4144
self.additional_properties = additional_properties
4245
self.start_date = start_date
4346
self.end_date = end_date
4447
self.key_id = key_id
4548
self.value = value
49+
self.custom_key_identifier = custom_key_identifier

azure-graphrbac/azure/graphrbac/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.52.0"
12+
VERSION = "0.53.0"
1313

0 commit comments

Comments
 (0)