# 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
[docs]class ServicePrincipalCreateParameters(Model):
"""Request parameters for creating a new service principal.
:param additional_properties: Unmatched properties from the message are
deserialized this collection
:type additional_properties: dict[str, object]
:param app_id: application Id
:type app_id: str
:param account_enabled: Whether the account is enabled
:type account_enabled: bool
:param key_credentials: A collection of KeyCredential objects.
:type key_credentials: list[~azure.graphrbac.models.KeyCredential]
:param password_credentials: A collection of PasswordCredential objects
:type password_credentials:
list[~azure.graphrbac.models.PasswordCredential]
"""
_validation = {
'app_id': {'required': True},
'account_enabled': {'required': True},
}
_attribute_map = {
'additional_properties': {'key': '', 'type': '{object}'},
'app_id': {'key': 'appId', 'type': 'str'},
'account_enabled': {'key': 'accountEnabled', 'type': 'bool'},
'key_credentials': {'key': 'keyCredentials', 'type': '[KeyCredential]'},
'password_credentials': {'key': 'passwordCredentials', 'type': '[PasswordCredential]'},
}
def __init__(self, app_id, account_enabled, additional_properties=None, key_credentials=None, password_credentials=None):
super(ServicePrincipalCreateParameters, self).__init__()
self.additional_properties = additional_properties
self.app_id = app_id
self.account_enabled = account_enabled
self.key_credentials = key_credentials
self.password_credentials = password_credentials