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

Release for iot central 535 #12253

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

## 3.1.0 (2020-06-30)

**Features**

- Model AppPatch has a new parameter sku

## 3.0.0 (2020-03-09)

**Breaking changes**
Expand Down
2 changes: 1 addition & 1 deletion sdk/iothub/azure-mgmt-iotcentral/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is the Microsoft Azure IoTCentral Management Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/sdk)
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)


# Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class AppPatch(Model):

:param tags: Instance tags
:type tags: dict[str, str]
:param sku: A valid instance SKU.
:type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo
:ivar application_id: The ID of the application.
:vartype application_id: str
:param display_name: The display name of the application.
Expand All @@ -183,6 +185,7 @@ class AppPatch(Model):

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'AppSkuInfo'},
'application_id': {'key': 'properties.applicationId', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'subdomain': {'key': 'properties.subdomain', 'type': 'str'},
Expand All @@ -192,6 +195,7 @@ class AppPatch(Model):
def __init__(self, **kwargs):
super(AppPatch, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.sku = kwargs.get('sku', None)
self.application_id = None
self.display_name = kwargs.get('display_name', None)
self.subdomain = kwargs.get('subdomain', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class AppPatch(Model):

:param tags: Instance tags
:type tags: dict[str, str]
:param sku: A valid instance SKU.
:type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo
:ivar application_id: The ID of the application.
:vartype application_id: str
:param display_name: The display name of the application.
Expand All @@ -183,15 +185,17 @@ class AppPatch(Model):

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'AppSkuInfo'},
'application_id': {'key': 'properties.applicationId', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
'subdomain': {'key': 'properties.subdomain', 'type': 'str'},
'template': {'key': 'properties.template', 'type': 'str'},
}

def __init__(self, *, tags=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None:
def __init__(self, *, tags=None, sku=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None:
super(AppPatch, self).__init__(**kwargs)
self.tags = tags
self.sku = sku
self.application_id = None
self.display_name = display_name
self.subdomain = subdomain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "3.0.0"
VERSION = "3.1.0"

4 changes: 3 additions & 1 deletion sdk/iothub/azure-mgmt-iotcentral/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
pass

# Version extraction inspired from 'requests'
with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd:
with open(os.path.join(package_folder_path, 'version.py')
if os.path.exists(os.path.join(package_folder_path, 'version.py'))
else os.path.join(package_folder_path, '_version.py'), 'r') as fd:
version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)

Expand Down