Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR apimanagement/resource-manager] /identity endpoint added #3795

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
from .operation_update_contract_py3 import OperationUpdateContract
from .schema_contract_py3 import SchemaContract
from .issue_contract_py3 import IssueContract
from .issue_update_contract_py3 import IssueUpdateContract
from .issue_contract_base_properties_py3 import IssueContractBaseProperties
from .issue_comment_contract_py3 import IssueCommentContract
from .issue_attachment_contract_py3 import IssueAttachmentContract
from .logger_contract_py3 import LoggerContract
Expand Down Expand Up @@ -152,6 +154,7 @@
from .user_token_parameters_py3 import UserTokenParameters
from .user_token_result_py3 import UserTokenResult
from .user_update_parameters_py3 import UserUpdateParameters
from .current_user_identity_py3 import CurrentUserIdentity
from .api_version_set_contract_py3 import ApiVersionSetContract
from .api_version_set_entity_base_py3 import ApiVersionSetEntityBase
from .api_version_set_update_parameters_py3 import ApiVersionSetUpdateParameters
Expand Down Expand Up @@ -189,6 +192,8 @@
from .operation_update_contract import OperationUpdateContract
from .schema_contract import SchemaContract
from .issue_contract import IssueContract
from .issue_update_contract import IssueUpdateContract
from .issue_contract_base_properties import IssueContractBaseProperties
from .issue_comment_contract import IssueCommentContract
from .issue_attachment_contract import IssueAttachmentContract
from .logger_contract import LoggerContract
Expand Down Expand Up @@ -298,6 +303,7 @@
from .user_token_parameters import UserTokenParameters
from .user_token_result import UserTokenResult
from .user_update_parameters import UserUpdateParameters
from .current_user_identity import CurrentUserIdentity
from .api_version_set_contract import ApiVersionSetContract
from .api_version_set_entity_base import ApiVersionSetEntityBase
from .api_version_set_update_parameters import ApiVersionSetUpdateParameters
Expand Down Expand Up @@ -401,6 +407,8 @@
'OperationUpdateContract',
'SchemaContract',
'IssueContract',
'IssueUpdateContract',
'IssueContractBaseProperties',
'IssueCommentContract',
'IssueAttachmentContract',
'LoggerContract',
Expand Down Expand Up @@ -510,6 +518,7 @@
'UserTokenParameters',
'UserTokenResult',
'UserUpdateParameters',
'CurrentUserIdentity',
'ApiVersionSetContract',
'ApiVersionSetEntityBase',
'ApiVersionSetUpdateParameters',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 CurrentUserIdentity(Model):
"""CurrentUserIdentity.

:param id: API Management service user id.
:type id: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}

def __init__(self, **kwargs):
super(CurrentUserIdentity, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 CurrentUserIdentity(Model):
"""CurrentUserIdentity.

:param id: API Management service user id.
:type id: str
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
}

def __init__(self, *, id: str=None, **kwargs) -> None:
super(CurrentUserIdentity, self).__init__(**kwargs)
self.id = id
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ class IssueContract(Resource):
:vartype name: str
:ivar type: Resource type for API Management resource.
:vartype type: str
:param title: Required. The issue title.
:type title: str
:param description: Required. Text describing the issue.
:type description: str
:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param user_id: Required. A resource identifier for the user created the
issue.
:type user_id: str
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
:param title: Required. The issue title.
:type title: str
:param description: Required. Text describing the issue.
:type description: str
:param user_id: Required. A resource identifier for the user created the
issue.
:type user_id: str
"""

_validation = {
Expand All @@ -56,19 +56,19 @@ class IssueContract(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'},
'state': {'key': 'properties.state', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
'api_id': {'key': 'properties.apiId', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IssueContract, self).__init__(**kwargs)
self.title = kwargs.get('title', None)
self.description = kwargs.get('description', None)
self.created_date = kwargs.get('created_date', None)
self.state = kwargs.get('state', None)
self.user_id = kwargs.get('user_id', None)
self.api_id = kwargs.get('api_id', None)
self.title = kwargs.get('title', None)
self.description = kwargs.get('description', None)
self.user_id = kwargs.get('user_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 IssueContractBaseProperties(Model):
"""Issue contract Base Properties.

:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
"""

_attribute_map = {
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'api_id': {'key': 'apiId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IssueContractBaseProperties, self).__init__(**kwargs)
self.created_date = kwargs.get('created_date', None)
self.state = kwargs.get('state', None)
self.api_id = kwargs.get('api_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 IssueContractBaseProperties(Model):
"""Issue contract Base Properties.

:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
"""

_attribute_map = {
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'state': {'key': 'state', 'type': 'str'},
'api_id': {'key': 'apiId', 'type': 'str'},
}

def __init__(self, *, created_date=None, state=None, api_id: str=None, **kwargs) -> None:
super(IssueContractBaseProperties, self).__init__(**kwargs)
self.created_date = created_date
self.state = state
self.api_id = api_id
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ class IssueContract(Resource):
:vartype name: str
:ivar type: Resource type for API Management resource.
:vartype type: str
:param title: Required. The issue title.
:type title: str
:param description: Required. Text describing the issue.
:type description: str
:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param user_id: Required. A resource identifier for the user created the
issue.
:type user_id: str
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
:param title: Required. The issue title.
:type title: str
:param description: Required. Text describing the issue.
:type description: str
:param user_id: Required. A resource identifier for the user created the
issue.
:type user_id: str
"""

_validation = {
Expand All @@ -56,19 +56,19 @@ class IssueContract(Resource):
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'},
'state': {'key': 'properties.state', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
'api_id': {'key': 'properties.apiId', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
}

def __init__(self, *, title: str, description: str, user_id: str, created_date=None, state=None, api_id: str=None, **kwargs) -> None:
super(IssueContract, self).__init__(**kwargs)
self.title = title
self.description = description
self.created_date = created_date
self.state = state
self.user_id = user_id
self.api_id = api_id
self.title = title
self.description = description
self.user_id = user_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 IssueUpdateContract(Model):
"""Issue update Parameters.

:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
:param title: The issue title.
:type title: str
:param description: Text describing the issue.
:type description: str
:param user_id: A resource identifier for the user created the issue.
:type user_id: str
"""

_attribute_map = {
'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'},
'state': {'key': 'properties.state', 'type': 'str'},
'api_id': {'key': 'properties.apiId', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IssueUpdateContract, self).__init__(**kwargs)
self.created_date = kwargs.get('created_date', None)
self.state = kwargs.get('state', None)
self.api_id = kwargs.get('api_id', None)
self.title = kwargs.get('title', None)
self.description = kwargs.get('description', None)
self.user_id = kwargs.get('user_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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 IssueUpdateContract(Model):
"""Issue update Parameters.

:param created_date: Date and time when the issue was created.
:type created_date: datetime
:param state: Status of the issue. Possible values include: 'proposed',
'open', 'removed', 'resolved', 'closed'
:type state: str or ~azure.mgmt.apimanagement.models.State
:param api_id: A resource identifier for the API the issue was created
for.
:type api_id: str
:param title: The issue title.
:type title: str
:param description: Text describing the issue.
:type description: str
:param user_id: A resource identifier for the user created the issue.
:type user_id: str
"""

_attribute_map = {
'created_date': {'key': 'properties.createdDate', 'type': 'iso-8601'},
'state': {'key': 'properties.state', 'type': 'str'},
'api_id': {'key': 'properties.apiId', 'type': 'str'},
'title': {'key': 'properties.title', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'user_id': {'key': 'properties.userId', 'type': 'str'},
}

def __init__(self, *, created_date=None, state=None, api_id: str=None, title: str=None, description: str=None, user_id: str=None, **kwargs) -> None:
super(IssueUpdateContract, self).__init__(**kwargs)
self.created_date = created_date
self.state = state
self.api_id = api_id
self.title = title
self.description = description
self.user_id = user_id
Loading