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

T1 iotcentral 2021 02 19 #16824

Merged
merged 2 commits into from
Feb 19, 2021
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
9 changes: 9 additions & 0 deletions sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release History

## 4.1.0 (2021-02-19)

**Features**

- Model AppTemplate has a new parameter industry
- Model AppTemplate has a new parameter locations
- Model Operation has a new parameter properties
- Model Operation has a new parameter origin

## 4.0.0 (2021-01-05)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ._models_py3 import AppPatch
from ._models_py3 import AppSkuInfo
from ._models_py3 import AppTemplate
from ._models_py3 import AppTemplateLocations
from ._models_py3 import CloudErrorBody
from ._models_py3 import Operation
from ._models_py3 import OperationDisplay
Expand All @@ -26,6 +27,7 @@
from ._models import AppPatch
from ._models import AppSkuInfo
from ._models import AppTemplate
from ._models import AppTemplateLocations
from ._models import CloudErrorBody
from ._models import Operation
from ._models import OperationDisplay
Expand All @@ -44,6 +46,7 @@
'AppPatch',
'AppSkuInfo',
'AppTemplate',
'AppTemplateLocations',
'CloudErrorBody',
'Operation',
'OperationDisplay',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ class AppTemplate(Model):
:vartype order: float
:ivar description: The description of the template.
:vartype description: str
:ivar industry: The industry of the template.
:vartype industry: str
:ivar locations: A list of locations that support the template.
:vartype locations:
list[~azure.mgmt.iotcentral.models.AppTemplateLocations]
"""

_validation = {
Expand All @@ -252,6 +257,8 @@ class AppTemplate(Model):
'title': {'readonly': True},
'order': {'readonly': True},
'description': {'readonly': True},
'industry': {'readonly': True},
'locations': {'readonly': True},
}

_attribute_map = {
Expand All @@ -261,6 +268,8 @@ class AppTemplate(Model):
'title': {'key': 'title', 'type': 'str'},
'order': {'key': 'order', 'type': 'float'},
'description': {'key': 'description', 'type': 'str'},
'industry': {'key': 'industry', 'type': 'str'},
'locations': {'key': 'locations', 'type': '[AppTemplateLocations]'},
}

def __init__(self, **kwargs):
Expand All @@ -271,6 +280,36 @@ def __init__(self, **kwargs):
self.title = None
self.order = None
self.description = None
self.industry = None
self.locations = None


class AppTemplateLocations(Model):
"""IoT Central Application Template Locations.

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

:ivar id: The ID of the location.
:vartype id: str
:ivar display_name: The display name of the location.
:vartype display_name: str
"""

_validation = {
'id': {'readonly': True},
'display_name': {'readonly': True},
}

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

def __init__(self, **kwargs):
super(AppTemplateLocations, self).__init__(**kwargs)
self.id = None
self.display_name = None


class CloudError(Model):
Expand Down Expand Up @@ -370,21 +409,31 @@ class Operation(Model):
:vartype name: str
:param display: The object that represents the operation.
:type display: ~azure.mgmt.iotcentral.models.OperationDisplay
:ivar origin: The intended executor of the operation.
:vartype origin: str
:ivar properties: Additional descriptions for the operation.
:vartype properties: object
"""

_validation = {
'name': {'readonly': True},
'origin': {'readonly': True},
'properties': {'readonly': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
}

def __init__(self, **kwargs):
super(Operation, self).__init__(**kwargs)
self.name = None
self.display = kwargs.get('display', None)
self.origin = None
self.properties = None


class OperationDisplay(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,11 @@ class AppTemplate(Model):
:vartype order: float
:ivar description: The description of the template.
:vartype description: str
:ivar industry: The industry of the template.
:vartype industry: str
:ivar locations: A list of locations that support the template.
:vartype locations:
list[~azure.mgmt.iotcentral.models.AppTemplateLocations]
"""

_validation = {
Expand All @@ -252,6 +257,8 @@ class AppTemplate(Model):
'title': {'readonly': True},
'order': {'readonly': True},
'description': {'readonly': True},
'industry': {'readonly': True},
'locations': {'readonly': True},
}

_attribute_map = {
Expand All @@ -261,6 +268,8 @@ class AppTemplate(Model):
'title': {'key': 'title', 'type': 'str'},
'order': {'key': 'order', 'type': 'float'},
'description': {'key': 'description', 'type': 'str'},
'industry': {'key': 'industry', 'type': 'str'},
'locations': {'key': 'locations', 'type': '[AppTemplateLocations]'},
}

def __init__(self, **kwargs) -> None:
Expand All @@ -271,6 +280,36 @@ def __init__(self, **kwargs) -> None:
self.title = None
self.order = None
self.description = None
self.industry = None
self.locations = None


class AppTemplateLocations(Model):
"""IoT Central Application Template Locations.

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

:ivar id: The ID of the location.
:vartype id: str
:ivar display_name: The display name of the location.
:vartype display_name: str
"""

_validation = {
'id': {'readonly': True},
'display_name': {'readonly': True},
}

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

def __init__(self, **kwargs) -> None:
super(AppTemplateLocations, self).__init__(**kwargs)
self.id = None
self.display_name = None


class CloudError(Model):
Expand Down Expand Up @@ -370,21 +409,31 @@ class Operation(Model):
:vartype name: str
:param display: The object that represents the operation.
:type display: ~azure.mgmt.iotcentral.models.OperationDisplay
:ivar origin: The intended executor of the operation.
:vartype origin: str
:ivar properties: Additional descriptions for the operation.
:vartype properties: object
"""

_validation = {
'name': {'readonly': True},
'origin': {'readonly': True},
'properties': {'readonly': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'object'},
}

def __init__(self, *, display=None, **kwargs) -> None:
super(Operation, self).__init__(**kwargs)
self.name = None
self.display = display
self.origin = None
self.properties = None


class OperationDisplay(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get(
return client_raw_response

return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}


def _create_or_update_initial(
Expand Down Expand Up @@ -210,7 +210,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}


def _update_initial(
Expand Down Expand Up @@ -313,7 +313,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}


def _delete_initial(
Expand Down Expand Up @@ -394,7 +394,7 @@ def get_long_running_output(response):
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'}
delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'}

def list_by_subscription(
self, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -460,7 +460,7 @@ def internal_paging(next_link=None):
deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps'}
list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotApps'}

def list_by_resource_group(
self, resource_group_name, custom_headers=None, raw=False, **operation_config):
Expand Down Expand Up @@ -530,7 +530,7 @@ def internal_paging(next_link=None):
deserialized = models.AppPaged(internal_paging, self._deserialize.dependencies, header_dict)

return deserialized
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps'}
list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps'}

def check_name_availability(
self, name, type="IoTApps", custom_headers=None, raw=False, **operation_config):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "4.0.0"
VERSION = "4.1.0"

Loading