Skip to content
Closed
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 @@ -65,6 +65,10 @@
from ._models_py3 import CertificateInformation
from ._models_py3 import ClientSecretContract
from ._models_py3 import ConnectivityStatusContract
from ._models_py3 import ContentItemCollection
from ._models_py3 import ContentItemContract
from ._models_py3 import ContentTypeCollection
from ._models_py3 import ContentTypeContract
from ._models_py3 import DeployConfigurationParameters
from ._models_py3 import DiagnosticContract
from ._models_py3 import EmailTemplateContract
Expand Down Expand Up @@ -135,6 +139,7 @@
from ._models_py3 import QuotaCounterContract
from ._models_py3 import QuotaCounterValueContract
from ._models_py3 import QuotaCounterValueContractProperties
from ._models_py3 import QuotaCounterValueUpdateContract
from ._models_py3 import RecipientEmailCollection
from ._models_py3 import RecipientEmailContract
from ._models_py3 import RecipientsContractProperties
Expand Down Expand Up @@ -236,6 +241,10 @@
from ._models import CertificateInformation
from ._models import ClientSecretContract
from ._models import ConnectivityStatusContract
from ._models import ContentItemCollection
from ._models import ContentItemContract
from ._models import ContentTypeCollection
from ._models import ContentTypeContract
from ._models import DeployConfigurationParameters
from ._models import DiagnosticContract
from ._models import EmailTemplateContract
Expand Down Expand Up @@ -306,6 +315,7 @@
from ._models import QuotaCounterContract
from ._models import QuotaCounterValueContract
from ._models import QuotaCounterValueContractProperties
from ._models import QuotaCounterValueUpdateContract
from ._models import RecipientEmailCollection
from ._models import RecipientEmailContract
from ._models import RecipientsContractProperties
Expand Down Expand Up @@ -487,6 +497,10 @@
'CertificateInformation',
'ClientSecretContract',
'ConnectivityStatusContract',
'ContentItemCollection',
'ContentItemContract',
'ContentTypeCollection',
'ContentTypeContract',
'DeployConfigurationParameters',
'DiagnosticContract',
'EmailTemplateContract',
Expand Down Expand Up @@ -557,6 +571,7 @@
'QuotaCounterContract',
'QuotaCounterValueContract',
'QuotaCounterValueContractProperties',
'QuotaCounterValueUpdateContract',
'RecipientEmailCollection',
'RecipientEmailContract',
'RecipientsContractProperties',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ class KeyType(str, Enum):

class AppType(str, Enum):

portal = "portal" #: User create request was sent by legacy developer portal.
developer_portal = "developerPortal" #: User create request was sent by new developer portal.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,147 @@ def __init__(self, **kwargs):
self.last_status_change = kwargs.get('last_status_change', None)


class ContentItemCollection(Model):
"""Paged list of content items.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: Collection of content items.
:vartype value: list[~azure.mgmt.apimanagement.models.ContentItemContract]
:ivar next_link: Next page link, if any.
:vartype next_link: str
"""

_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[ContentItemContract]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ContentItemCollection, self).__init__(**kwargs)
self.value = None
self.next_link = None


class ContentItemContract(Resource):
"""Content type contract details.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type for API Management resource.
:vartype type: str
:param properties: Properties of the content item.
:type properties: dict[str, object]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{object}'},
}

def __init__(self, **kwargs):
super(ContentItemContract, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)


class ContentTypeCollection(Model):
"""Paged list of content types.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: Collection of content types.
:vartype value: list[~azure.mgmt.apimanagement.models.ContentTypeContract]
:ivar next_link: Next page link, if any.
:vartype next_link: str
"""

_validation = {
'value': {'readonly': True},
'next_link': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[ContentTypeContract]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ContentTypeCollection, self).__init__(**kwargs)
self.value = None
self.next_link = None


class ContentTypeContract(Resource):
"""Content type contract details.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type for API Management resource.
:vartype type: str
:param content_type_contract_id: Content type identifier
:type content_type_contract_id: str
:param content_type_contract_name: Content type name. Must be 1 to 250
characters long.
:type content_type_contract_name: str
:param description: Content type description.
:type description: str
:param schema: Content type schema.
:type schema: object
:param version: Content type version.
:type version: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'content_type_contract_id': {'key': 'properties.id', 'type': 'str'},
'content_type_contract_name': {'key': 'properties.name', 'type': 'str'},
'description': {'key': 'properties.description', 'type': 'str'},
'schema': {'key': 'properties.schema', 'type': 'object'},
'version': {'key': 'properties.version', 'type': 'str'},
}

def __init__(self, **kwargs):
super(ContentTypeContract, self).__init__(**kwargs)
self.content_type_contract_id = kwargs.get('content_type_contract_id', None)
self.content_type_contract_name = kwargs.get('content_type_contract_name', None)
self.description = kwargs.get('description', None)
self.schema = kwargs.get('schema', None)
self.version = kwargs.get('version', None)


class DeployConfigurationParameters(Model):
"""Deploy Tenant Configuration Contract.

Expand Down Expand Up @@ -6142,6 +6283,26 @@ def __init__(self, **kwargs):
self.kb_transferred = kwargs.get('kb_transferred', None)


class QuotaCounterValueUpdateContract(Model):
"""Quota counter value details.

:param calls_count: Number of times Counter was called.
:type calls_count: int
:param kb_transferred: Data Transferred in KiloBytes.
:type kb_transferred: float
"""

_attribute_map = {
'calls_count': {'key': 'properties.callsCount', 'type': 'int'},
'kb_transferred': {'key': 'properties.kbTransferred', 'type': 'float'},
}

def __init__(self, **kwargs):
super(QuotaCounterValueUpdateContract, self).__init__(**kwargs)
self.calls_count = kwargs.get('calls_count', None)
self.kb_transferred = kwargs.get('kb_transferred', None)


class RecipientEmailCollection(Model):
"""Paged Recipient User list representation.

Expand Down Expand Up @@ -6976,7 +7137,7 @@ class SubscriptionContract(Resource):
value.
:type secondary_key: str
:param state_comment: Optional subscription comment added by an
administrator.
administrator when the state is changed to the 'rejected'.
:type state_comment: str
:param allow_tracing: Determines whether tracing is enabled
:type allow_tracing: bool
Expand Down Expand Up @@ -7183,7 +7344,7 @@ class SubscriptionUpdateParameters(Model):
'suspended', 'active', 'expired', 'submitted', 'rejected', 'cancelled'
:type state: str or ~azure.mgmt.apimanagement.models.SubscriptionState
:param state_comment: Comments describing subscription state change by the
administrator.
administrator when the state is changed to the 'rejected'.
:type state_comment: str
:param allow_tracing: Determines whether tracing can be enabled
:type allow_tracing: bool
Expand Down Expand Up @@ -7620,7 +7781,7 @@ class UserCreateParameters(Model):
password is generated.
:type password: str
:param app_type: Determines the type of application which send the create
user request. Default is old publisher portal. Possible values include:
user request. Default is legacy portal. Possible values include: 'portal',
'developerPortal'
:type app_type: str or ~azure.mgmt.apimanagement.models.AppType
:param confirmation: Determines the type of confirmation e-mail that will
Expand Down
Loading