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

Fixing 2018-09-01 Spec #20309

Merged
merged 5 commits into from
Sep 7, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -932,19 +932,22 @@
"x-ms-enum": {
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"default": "Enabled"
},
"NetworkRuleSets": {
"description": "Network Rule Set Properties of this IoT Central application.",
"type": "object",
"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.",
Expand All @@ -960,7 +963,11 @@
"filterName"
]
}
}
},
"x-ms-mutability": [
"update",
"read"
]
},
"NetworkRuleSetIpRule": {
"description": "An object for an IP range that will be allowed access.",
Expand Down Expand Up @@ -998,7 +1005,8 @@
"x-ms-enum": {
"name": "NetworkAction",
"modelAsString": true
}
},
"default": "Allow"
},
"AppState": {
"description": "The current state of the application.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions specification/iotcentral/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```