Skip to content

Commit eb0d7cb

Browse files
shawncxSDK Automationmsxichen
authored
Release for iot central 535 (#12253)
* Generated from 731e0f172a862f27f5ee240291aa54406ac20801 Add app sku as part of update request * generate sdk and update version Co-authored-by: SDK Automation <[email protected]> Co-authored-by: xichen <[email protected]>
1 parent 4cd0b61 commit eb0d7cb

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

sdk/iothub/azure-mgmt-iotcentral/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 3.1.0 (2020-06-30)
4+
5+
**Features**
6+
7+
- Model AppPatch has a new parameter sku
8+
39
## 3.0.0 (2020-03-09)
410

511
**Breaking changes**

sdk/iothub/azure-mgmt-iotcentral/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

77

88
# Usage

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models.py

+4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class AppPatch(Model):
164164
165165
:param tags: Instance tags
166166
:type tags: dict[str, str]
167+
:param sku: A valid instance SKU.
168+
:type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo
167169
:ivar application_id: The ID of the application.
168170
:vartype application_id: str
169171
:param display_name: The display name of the application.
@@ -183,6 +185,7 @@ class AppPatch(Model):
183185

184186
_attribute_map = {
185187
'tags': {'key': 'tags', 'type': '{str}'},
188+
'sku': {'key': 'sku', 'type': 'AppSkuInfo'},
186189
'application_id': {'key': 'properties.applicationId', 'type': 'str'},
187190
'display_name': {'key': 'properties.displayName', 'type': 'str'},
188191
'subdomain': {'key': 'properties.subdomain', 'type': 'str'},
@@ -192,6 +195,7 @@ class AppPatch(Model):
192195
def __init__(self, **kwargs):
193196
super(AppPatch, self).__init__(**kwargs)
194197
self.tags = kwargs.get('tags', None)
198+
self.sku = kwargs.get('sku', None)
195199
self.application_id = None
196200
self.display_name = kwargs.get('display_name', None)
197201
self.subdomain = kwargs.get('subdomain', None)

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/models/_models_py3.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class AppPatch(Model):
164164
165165
:param tags: Instance tags
166166
:type tags: dict[str, str]
167+
:param sku: A valid instance SKU.
168+
:type sku: ~azure.mgmt.iotcentral.models.AppSkuInfo
167169
:ivar application_id: The ID of the application.
168170
:vartype application_id: str
169171
:param display_name: The display name of the application.
@@ -183,15 +185,17 @@ class AppPatch(Model):
183185

184186
_attribute_map = {
185187
'tags': {'key': 'tags', 'type': '{str}'},
188+
'sku': {'key': 'sku', 'type': 'AppSkuInfo'},
186189
'application_id': {'key': 'properties.applicationId', 'type': 'str'},
187190
'display_name': {'key': 'properties.displayName', 'type': 'str'},
188191
'subdomain': {'key': 'properties.subdomain', 'type': 'str'},
189192
'template': {'key': 'properties.template', 'type': 'str'},
190193
}
191194

192-
def __init__(self, *, tags=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None:
195+
def __init__(self, *, tags=None, sku=None, display_name: str=None, subdomain: str=None, template: str=None, **kwargs) -> None:
193196
super(AppPatch, self).__init__(**kwargs)
194197
self.tags = tags
198+
self.sku = sku
195199
self.application_id = None
196200
self.display_name = display_name
197201
self.subdomain = subdomain

sdk/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "3.0.0"
12+
VERSION = "3.1.0"
1313

sdk/iothub/azure-mgmt-iotcentral/setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
pass
3737

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

0 commit comments

Comments
 (0)