Skip to content

Commit

Permalink
Add property 'minTlsVersion' to IoTHubProperties (Azure#9162)
Browse files Browse the repository at this point in the history
* Add property 'minTlsVersion' to IoTHubProperties

* Update examples

* Update readme files for python, go and java for API version 2020-03-01

* Add rename instruction for 'PrivateLinkResources' for java to fix build error
  • Loading branch information
avranju authored and 00Kai0 committed Oct 12, 2020
1 parent b09e983 commit edd8803
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"maxDeliveryCount": 10
}
},
"features": "None"
"features": "None",
"minTlsVersion": "1.2"
},
"sku": {
"name": "S1",
Expand Down Expand Up @@ -134,7 +135,8 @@
"maxDeliveryCount": 10
}
},
"features": "None"
"features": "None",
"minTlsVersion": "1.2"
},
"sku": {
"name": "S1",
Expand Down Expand Up @@ -210,7 +212,8 @@
"maxDeliveryCount": 10
}
},
"features": "None"
"features": "None",
"minTlsVersion": "1.2"
},
"sku": {
"name": "S1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
"location": "East US",
"role": "secondary"
}
]
],
"minTlsVersion": "1.2"
},
"sku": {
"name": "S1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,10 @@
"$ref": "#/definitions/IpFilterRule"
}
},
"minTlsVersion": {
"type": "string",
"description": "Specifies the minimum TLS version to support for this hub. Can be set to \"1.2\" to have clients that use a TLS version below 1.2 to be rejected."
},
"privateEndpointConnections": {
"description": "Private endpoint connections created on this IotHub",
"type": "array",
Expand Down
10 changes: 10 additions & 0 deletions specification/iothub/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ go:
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-03
- tag: package-preview-2019-03
- tag: package-2018-12-preview
- tag: package-2018-04
Expand All @@ -22,6 +23,15 @@ batch:
- tag: package-2016-02
```
### Tag: package-2020-03 and go
These settings apply only when `--tag=package-2020-03 --go` is specified on the command line.
Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`.

``` yaml $(tag) == 'package-2020-03' && $(go)
output-folder: $(go-sdk-folder)/services/iothub/mgmt/2020-03-01/$(namespace)
```

### Tag:package-preview-2019-03 and go

These settings apply only when `--tag=package-preview-2019-03 --go` is specified on the command line.
Expand Down
18 changes: 18 additions & 0 deletions specification/iothub/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,29 @@ output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-iothub
``` yaml $(java) && $(multiapi)
batch:
- tag: package-2020-03
- tag: package-preview-2019-03
- tag: package-2018-12-preview
- tag: package-2018-04
```
### Tag: package-2020-03 and java
These settings apply only when `--tag=package-2020-03 --java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-sdk-for-java clone>`.

``` yaml $(tag) == 'package-2020-03' && $(java) && $(multiapi)
java:
namespace: com.microsoft.azure.management.iothub.v2020_03_01
output-folder: $(azure-libraries-for-java-folder)/sdk/iothub/mgmt-v2020_03_01
regenerate-manager: true
generate-interface: true
directive:
- rename-model:
from: PrivateLinkResources
to: PrivateLinkResource
```

### Tag: package-preview-2019-03

These settings apply only when `--tag=package-preview-2019-03 --java` is specified on the command line.
Expand Down
12 changes: 12 additions & 0 deletions specification/iothub/resource-manager/readme.python.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Generate all API versions currently shipped for this package
```yaml $(python) && $(multiapi)
batch:
- tag: package-2020-03
- tag: package-2019-11
- tag: package-2019-03
- tag: package-2018-04
Expand All @@ -31,6 +32,17 @@ batch:
- tag: package-2016-02
```
### Tag: package-2020-03 and python
These settings apply only when `--tag=package-2020-03 --python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

``` yaml $(tag) == 'package-2020-03' && $(python)
python:
namespace: azure.mgmt.iothub.v2020_03_01
output-folder: $(python-sdks-folder)/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01
```

### Tag: package-2019-11 and python

These settings apply only when `--tag=package-2019-11 --python` is specified on the command line.
Expand Down

0 comments on commit edd8803

Please sign in to comment.