Skip to content

Commit

Permalink
{IOT} Iot central track 2 migration (#18717)
Browse files Browse the repository at this point in the history
* track 2 changes

* Rerecord yaml files that service team doesn't have permission

* record of test_certificate and test_iotcental

* Add yaml file for test_dps_lifecycle

Co-authored-by: zhoxing-ms <[email protected]>
  • Loading branch information
abalogun-dev and zhoxing-ms authored Jul 9, 2021
1 parent 4ae31ad commit ea62f59
Show file tree
Hide file tree
Showing 10 changed files with 2,791 additions and 4,362 deletions.
6 changes: 3 additions & 3 deletions src/azure-cli/azure/cli/command_modules/iot/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def iot_central_app_create(
sku=appSku,
template=template)

return sdk_no_wait(no_wait, client.apps.create_or_update, resource_group_name, app_name, app)
return sdk_no_wait(no_wait, client.apps.begin_create_or_update, resource_group_name, app_name, app)


def iot_central_app_get(client, app_name, resource_group_name=None):
Expand All @@ -1225,7 +1225,7 @@ def iot_central_app_get(client, app_name, resource_group_name=None):


def iot_central_app_delete(client, app_name, resource_group_name, no_wait=False):
return sdk_no_wait(no_wait, client.apps.delete, resource_group_name, app_name)
return sdk_no_wait(no_wait, client.apps.begin_delete, resource_group_name, app_name)


def iot_central_app_list(client, resource_group_name=None):
Expand All @@ -1235,7 +1235,7 @@ def iot_central_app_list(client, resource_group_name=None):


def iot_central_app_update(client, app_name, parameters, resource_group_name):
return client.apps.update(resource_group_name, app_name, parameters)
return client.apps.begin_update(resource_group_name, app_name, parameters)


def _ensure_location(cli_ctx, resource_group_name, location):
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

3,628 changes: 1,141 additions & 2,487 deletions src/azure-cli/azure/cli/command_modules/iot/tests/latest/recordings/test_iot_hub.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ azure-mgmt-eventhub==4.1.0
azure-mgmt-extendedlocation==1.0.0b2
azure-mgmt-hdinsight==8.0.0
azure-mgmt-imagebuilder==0.4.0
azure-mgmt-iotcentral==4.1.0
azure-mgmt-iotcentral==9.0.0b1
azure-mgmt-iothub==2.0.0
azure-mgmt-iothubprovisioningservices==0.2.0
azure-mgmt-keyvault==9.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ azure-mgmt-eventhub==4.1.0
azure-mgmt-extendedlocation==1.0.0b2
azure-mgmt-hdinsight==8.0.0
azure-mgmt-imagebuilder==0.4.0
azure-mgmt-iotcentral==4.1.0
azure-mgmt-iotcentral==9.0.0b1
azure-mgmt-iothub==2.0.0
azure-mgmt-iothubprovisioningservices==0.2.0
azure-mgmt-keyvault==9.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ azure-mgmt-eventhub==4.1.0
azure-mgmt-extendedlocation==1.0.0b2
azure-mgmt-hdinsight==8.0.0
azure-mgmt-imagebuilder==0.4.0
azure-mgmt-iotcentral==4.1.0
azure-mgmt-iotcentral==9.0.0b1
azure-mgmt-iothub==2.0.0
azure-mgmt-iothubprovisioningservices==0.2.0
azure-mgmt-keyvault==9.0.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
'azure-mgmt-extendedlocation~=1.0.0b2',
'azure-mgmt-hdinsight~=8.0.0',
'azure-mgmt-imagebuilder~=0.4.0',
'azure-mgmt-iotcentral~=4.1.0',
'azure-mgmt-iotcentral~=9.0.0b1',
'azure-mgmt-iothub==2.0.0',
'azure-mgmt-iothubprovisioningservices~=0.2.0',
'azure-mgmt-keyvault==9.0.0',
Expand Down

0 comments on commit ea62f59

Please sign in to comment.