Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f1f015f
Generated from c08434af1cb56f1fa3725832d1ffa878ba40cc38
AutorestCI Sep 20, 2018
8f600d5
Generated from 25924315ce847b1e43aeca6d288336a87c472761
AutorestCI Sep 20, 2018
5cab115
Generated from 012871adbed086a294aa444ca9e6c4f2989fba02
AutorestCI Sep 20, 2018
d044e9e
Generated from d6fbf20ed7b6465697cc2648b873d064eb4f61ef
AutorestCI Sep 20, 2018
9780e34
Generated from 8a25eead9ebfb8d6c5646444a75053d99796d81b
AutorestCI Sep 21, 2018
9b7b777
Generated from a0fca65e2cfdf21d578bf31c2ba3d32175b01ca1
AutorestCI Sep 21, 2018
e1a429d
Generated from 50ccd76b49a9496daf577a1e864fd02545219148
AutorestCI Sep 26, 2018
1759d9c
Generated from 0b4eb2d1aa3ab17a1d8e4934a0c5e701652a8815
AutorestCI Sep 26, 2018
098bd4b
Packaging update of azure-mgmt-iotcentral
azuresdkci Sep 26, 2018
96e5acf
Generated from 65c3f9035c6cb5f5620e2399e32d16bdce532a14
AutorestCI Sep 26, 2018
692ffc8
Generated from e56826f5f026884b10068a2485cfebbaa071c508
AutorestCI Sep 26, 2018
b9e7323
Generated from 85504133b58ae743ecc9872a35b94f28ff583a99
AutorestCI Sep 26, 2018
469fcdb
Generated from 0778f5efeb06cb6dec9e8f09bd0c366d9a0186dc
AutorestCI Sep 26, 2018
932bd1c
Generated from 02cd2dfacf4029001b5cf0c7d4088cdbd348dfeb
AutorestCI Sep 26, 2018
11b1c32
Generated from 7d62b8f150f3365546d829897148b68574419a03
AutorestCI Sep 26, 2018
2f5a6bf
Generated from 623592768a8c3742d252c0951171a8c3da297b6b
AutorestCI Sep 26, 2018
ed88a9a
Generated from b27aa5cbd9414e799aa2f6b3d60a5c971b78b2a2
AutorestCI Sep 26, 2018
fc591b9
Generated from bddac2cafda2e1fac0a66343049233d456d140b0
AutorestCI Sep 26, 2018
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
1 change: 0 additions & 1 deletion azure-mgmt-iotcentral/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-mgmt-iotcentral/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-iotcentral/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
20 changes: 12 additions & 8 deletions azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,44 @@
from .app_py3 import App
from .app_patch_py3 import AppPatch
from .resource_py3 import Resource
from .error_response_body_py3 import ErrorResponseBody
from .error_details_py3 import ErrorDetails, ErrorDetailsException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .operation_inputs_py3 import OperationInputs
from .app_name_availability_info_py3 import AppNameAvailabilityInfo
from .name_availability_inputs_py3 import NameAvailabilityInputs
from .subdomain_availability_inputs_py3 import SubdomainAvailabilityInputs
from .app_availability_info_py3 import AppAvailabilityInfo
except (SyntaxError, ImportError):
from .app_sku_info import AppSkuInfo
from .app import App
from .app_patch import AppPatch
from .resource import Resource
from .error_response_body import ErrorResponseBody
from .error_details import ErrorDetails, ErrorDetailsException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_inputs import OperationInputs
from .app_name_availability_info import AppNameAvailabilityInfo
from .name_availability_inputs import NameAvailabilityInputs
from .subdomain_availability_inputs import SubdomainAvailabilityInputs
from .app_availability_info import AppAvailabilityInfo
from .app_paged import AppPaged
from .operation_paged import OperationPaged
from .iot_central_client_enums import (
AppSku,
AppNameUnavailabilityReason,
)

__all__ = [
'AppSkuInfo',
'App',
'AppPatch',
'Resource',
'ErrorResponseBody',
'ErrorDetails', 'ErrorDetailsException',
'OperationDisplay',
'Operation',
'OperationInputs',
'AppNameAvailabilityInfo',
'NameAvailabilityInputs',
'SubdomainAvailabilityInputs',
'AppAvailabilityInfo',
'AppPaged',
'OperationPaged',
'AppSku',
'AppNameUnavailabilityReason',
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
from msrest.serialization import Model


class AppNameAvailabilityInfo(Model):
"""The properties indicating whether a given IoT Central application name is
available.
class AppAvailabilityInfo(Model):
"""The properties indicating whether a given IoT Central application
information is available.

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

:ivar name_available: The value which indicates whether the provided name
is available.
:vartype name_available: bool
:ivar reason: The reason for unavailability. Possible values include:
'Invalid', 'AlreadyExists'
:vartype reason: str or
~azure.mgmt.iotcentral.models.AppNameUnavailabilityReason
:param message: The detailed reason message.
:type message: str
:ivar reason: The reason for unavailability.
:vartype reason: str
:ivar message: The detailed reason message.
:vartype message: str
"""

_validation = {
'name_available': {'readonly': True},
'reason': {'readonly': True},
'message': {'readonly': True},
}

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'AppNameUnavailabilityReason'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AppNameAvailabilityInfo, self).__init__(**kwargs)
super(AppAvailabilityInfo, self).__init__(**kwargs)
self.name_available = None
self.reason = None
self.message = kwargs.get('message', None)
self.message = None
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,36 @@
from msrest.serialization import Model


class AppNameAvailabilityInfo(Model):
"""The properties indicating whether a given IoT Central application name is
available.
class AppAvailabilityInfo(Model):
"""The properties indicating whether a given IoT Central application
information is available.

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

:ivar name_available: The value which indicates whether the provided name
is available.
:vartype name_available: bool
:ivar reason: The reason for unavailability. Possible values include:
'Invalid', 'AlreadyExists'
:vartype reason: str or
~azure.mgmt.iotcentral.models.AppNameUnavailabilityReason
:param message: The detailed reason message.
:type message: str
:ivar reason: The reason for unavailability.
:vartype reason: str
:ivar message: The detailed reason message.
:vartype message: str
"""

_validation = {
'name_available': {'readonly': True},
'reason': {'readonly': True},
'message': {'readonly': True},
}

_attribute_map = {
'name_available': {'key': 'nameAvailable', 'type': 'bool'},
'reason': {'key': 'reason', 'type': 'AppNameUnavailabilityReason'},
'reason': {'key': 'reason', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, message: str=None, **kwargs) -> None:
super(AppNameAvailabilityInfo, self).__init__(**kwargs)
def __init__(self, **kwargs) -> None:
super(AppAvailabilityInfo, self).__init__(**kwargs)
self.name_available = None
self.reason = None
self.message = message
self.message = None
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,17 @@
class ErrorDetails(Model):
"""Error details.

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

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The target of the particular error.
:vartype target: str
:param error:
:type error: ~azure.mgmt.iotcentral.models.ErrorResponseBody
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'error': {'key': 'error', 'type': 'ErrorResponseBody'},
}

def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.error = kwargs.get('error', None)


class ErrorDetailsException(HttpOperationError):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,17 @@
class ErrorDetails(Model):
"""Error details.

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

:ivar code: The error code.
:vartype code: str
:ivar message: The error message.
:vartype message: str
:ivar target: The target of the particular error.
:vartype target: str
:param error:
:type error: ~azure.mgmt.iotcentral.models.ErrorResponseBody
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'error': {'key': 'error', 'type': 'ErrorResponseBody'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, error=None, **kwargs) -> None:
super(ErrorDetails, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.error = error


class ErrorDetailsException(HttpOperationError):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 ErrorResponseBody(Model):
"""Details of error response.

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

:ivar code: Error code, intended to be consumed programmatically.
:vartype code: str
:ivar message: Description of the error, intended for display in user
interface.
:vartype message: str
:ivar target: Target of the particular error, for example name of the
property.
:vartype target: str
:param details: A list of additional details about the error.
:type details: list[~azure.mgmt.iotcentral.models.ErrorResponseBody]
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorResponseBody]'},
}

def __init__(self, **kwargs):
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.details = kwargs.get('details', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 ErrorResponseBody(Model):
"""Details of error response.

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

:ivar code: Error code, intended to be consumed programmatically.
:vartype code: str
:ivar message: Description of the error, intended for display in user
interface.
:vartype message: str
:ivar target: Target of the particular error, for example name of the
property.
:vartype target: str
:param details: A list of additional details about the error.
:type details: list[~azure.mgmt.iotcentral.models.ErrorResponseBody]
"""

_validation = {
'code': {'readonly': True},
'message': {'readonly': True},
'target': {'readonly': True},
}

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'target': {'key': 'target', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorResponseBody]'},
}

def __init__(self, *, details=None, **kwargs) -> None:
super(ErrorResponseBody, self).__init__(**kwargs)
self.code = None
self.message = None
self.target = None
self.details = details
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,3 @@ class AppSku(str, Enum):

f1 = "F1"
s1 = "S1"


class AppNameUnavailabilityReason(str, Enum):

invalid = "Invalid"
already_exists = "AlreadyExists"
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,26 @@
from msrest.serialization import Model


class OperationInputs(Model):
class NameAvailabilityInputs(Model):
"""Input values.

All required parameters must be populated in order to send to Azure.

:param name: Required. The name of the IoT Central application instance to
check.
:param name: The name of the IoT Central application instance to check.
:type name: str
:param type: The name of the IoT Central resource name to query. Default
value: "IoTApps" .
:type type: str
"""

_validation = {
'name': {'required': True},
'name': {'pattern': r'^[a-z0-9-]{1,63}$'},
}

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

def __init__(self, **kwargs):
super(OperationInputs, self).__init__(**kwargs)
super(NameAvailabilityInputs, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', "IoTApps")
Loading