-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 38da2338b7f2a290829acc0a0cd49cf1edc4cc0b
Backward compat for ApplicationAddOwnerParameter
- Loading branch information
1 parent
7c6f69f
commit c0f1564
Showing
23 changed files
with
943 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
azure-graphrbac/azure/graphrbac/models/add_owner_parameters.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AddOwnerParameters(Model): | ||
"""Request parameters for adding a owner to an application. | ||
All required parameters must be populated in order to send to Azure. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param url: Required. A owner object URL, such as | ||
"https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", | ||
where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and | ||
"f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, | ||
application, servicePrincipal, group) to be added. | ||
:type url: str | ||
""" | ||
|
||
_validation = { | ||
'url': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'url': {'key': 'url', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AddOwnerParameters, self).__init__(**kwargs) | ||
self.additional_properties = kwargs.get('additional_properties', None) | ||
self.url = kwargs.get('url', None) |
43 changes: 43 additions & 0 deletions
43
azure-graphrbac/azure/graphrbac/models/add_owner_parameters_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AddOwnerParameters(Model): | ||
"""Request parameters for adding a owner to an application. | ||
All required parameters must be populated in order to send to Azure. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param url: Required. A owner object URL, such as | ||
"https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", | ||
where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and | ||
"f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, | ||
application, servicePrincipal, group) to be added. | ||
:type url: str | ||
""" | ||
|
||
_validation = { | ||
'url': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'url': {'key': 'url', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, url: str, additional_properties=None, **kwargs) -> None: | ||
super(AddOwnerParameters, self).__init__(**kwargs) | ||
self.additional_properties = additional_properties | ||
self.url = url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AppRole(Model): | ||
"""AppRole. | ||
:param id: Unique role identifier inside the appRoles collection. | ||
:type id: str | ||
:param allowed_member_types: Specifies whether this app role definition | ||
can be assigned to users and groups by setting to 'User', or to other | ||
applications (that are accessing this application in daemon service | ||
scenarios) by setting to 'Application', or to both. | ||
:type allowed_member_types: list[str] | ||
:param description: Permission help text that appears in the admin app | ||
assignment and consent experiences. | ||
:type description: str | ||
:param display_name: Display name for the permission that appears in the | ||
admin consent and app assignment experiences. | ||
:type display_name: str | ||
:param is_enabled: When creating or updating a role definition, this must | ||
be set to true (which is the default). To delete a role, this must first | ||
be set to false. At that point, in a subsequent call, this role may be | ||
removed. | ||
:type is_enabled: bool | ||
:param value: Specifies the value of the roles claim that the application | ||
should expect in the authentication and access tokens. | ||
:type value: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'allowed_member_types': {'key': 'allowedMemberTypes', 'type': '[str]'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, | ||
'value': {'key': 'value', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AppRole, self).__init__(**kwargs) | ||
self.id = kwargs.get('id', None) | ||
self.allowed_member_types = kwargs.get('allowed_member_types', None) | ||
self.description = kwargs.get('description', None) | ||
self.display_name = kwargs.get('display_name', None) | ||
self.is_enabled = kwargs.get('is_enabled', None) | ||
self.value = kwargs.get('value', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class AppRole(Model): | ||
"""AppRole. | ||
:param id: Unique role identifier inside the appRoles collection. | ||
:type id: str | ||
:param allowed_member_types: Specifies whether this app role definition | ||
can be assigned to users and groups by setting to 'User', or to other | ||
applications (that are accessing this application in daemon service | ||
scenarios) by setting to 'Application', or to both. | ||
:type allowed_member_types: list[str] | ||
:param description: Permission help text that appears in the admin app | ||
assignment and consent experiences. | ||
:type description: str | ||
:param display_name: Display name for the permission that appears in the | ||
admin consent and app assignment experiences. | ||
:type display_name: str | ||
:param is_enabled: When creating or updating a role definition, this must | ||
be set to true (which is the default). To delete a role, this must first | ||
be set to false. At that point, in a subsequent call, this role may be | ||
removed. | ||
:type is_enabled: bool | ||
:param value: Specifies the value of the roles claim that the application | ||
should expect in the authentication and access tokens. | ||
:type value: str | ||
""" | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'allowed_member_types': {'key': 'allowedMemberTypes', 'type': '[str]'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'display_name': {'key': 'displayName', 'type': 'str'}, | ||
'is_enabled': {'key': 'isEnabled', 'type': 'bool'}, | ||
'value': {'key': 'value', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, id: str=None, allowed_member_types=None, description: str=None, display_name: str=None, is_enabled: bool=None, value: str=None, **kwargs) -> None: | ||
super(AppRole, self).__init__(**kwargs) | ||
self.id = id | ||
self.allowed_member_types = allowed_member_types | ||
self.description = description | ||
self.display_name = display_name | ||
self.is_enabled = is_enabled | ||
self.value = value |
Oops, something went wrong.