diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/iotcentral.json index d02042874904..47d4b4a94325 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/preview/2021-11-01-preview/iotcentral.json @@ -932,7 +932,8 @@ "x-ms-enum": { "name": "PublicNetworkAccess", "modelAsString": true - } + }, + "default": "Enabled" }, "NetworkRuleSets": { "description": "Network Rule Set Properties of this IoT Central application.", @@ -940,11 +941,13 @@ "properties": { "applyToDevices": { "description": "Whether these rules apply for device connectivity to IoT Hub and Device Provisioning service associated with this application.", - "type": "boolean" + "type": "boolean", + "default": "false" }, "applyToIoTCentral": { "description": "Whether these rules apply for connectivity via IoT Central web portal and APIs.", - "type": "boolean" + "type": "boolean", + "default": "false" }, "defaultAction": { "description": "The default network action to apply.", @@ -960,7 +963,11 @@ "filterName" ] } - } + }, + "x-ms-mutability": [ + "update", + "read" + ] }, "NetworkRuleSetIpRule": { "description": "An object for an IP range that will be allowed access.", @@ -998,7 +1005,8 @@ "x-ms-enum": { "name": "NetworkAction", "modelAsString": true - } + }, + "default": "Allow" }, "AppState": { "description": "The current state of the application.", diff --git a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json index f5b97468268f..f37243117f8a 100644 --- a/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json +++ b/specification/iotcentral/resource-manager/Microsoft.IoTCentral/stable/2018-09-01/iotcentral.json @@ -513,9 +513,41 @@ "create", "read" ] + }, + "state": { + "description": "The current state of the application.", + "$ref": "#/definitions/AppState" + }, + "geography": { + "description": "The geography the application is in.", + "type": "string", + "readOnly": true + }, + "thumbnailUrl": { + "description": "The URI for the thumbnail image used in the application.", + "type": "string", + "readOnly": true + }, + "tenant": { + "description": "The tenant ID the application belongs to.", + "type": "string", + "readOnly": true } } }, + "AppState": { + "description": "The current state of the application.", + "type": "string", + "enum": [ + "created", + "suspended" + ], + "x-ms-enum": { + "name": "AppState", + "modelAsString": true + }, + "readOnly": true + }, "AppSkuInfo": { "description": "Information about the SKU of the IoT Central application.", "type": "object", diff --git a/specification/iotcentral/resource-manager/readme.python.md b/specification/iotcentral/resource-manager/readme.python.md index 8488027b7423..a50ad0ebe301 100644 --- a/specification/iotcentral/resource-manager/readme.python.md +++ b/specification/iotcentral/resource-manager/readme.python.md @@ -17,3 +17,14 @@ clear-output-folder: true no-namespace-folders: true output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iotcentral/azure/mgmt/iotcentral ``` + +``` yaml $(python) +directive: + - from: iotcentral.json + where: $.definitions.NetworkRuleSets["properties"]["applyToDevices"] + transform: $['default'] = 'False' + + - from: iotcentral.json + where: $.definitions.NetworkRuleSets["properties"]["applyToIoTCentral"] + transform: $['default'] = 'False' +```