Skip to content

Commit 7f9aaa5

Browse files
Added TxPowerIndexMin, TxPowerIndexMax, NbTransMin and NbTransMax params to ServiceProfile.
1 parent 2383c78 commit 7f9aaa5

File tree

8 files changed

+390
-2
lines changed

8 files changed

+390
-2
lines changed

generator/ServiceModels/iotwireless/iotwireless-2020-11-22.api.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4885,7 +4885,11 @@
48854885
"RaAllowed":{"shape":"RaAllowed"},
48864886
"NwkGeoLoc":{"shape":"NwkGeoLoc"},
48874887
"TargetPer":{"shape":"TargetPer"},
4888-
"MinGwDiversity":{"shape":"MinGwDiversity"}
4888+
"MinGwDiversity":{"shape":"MinGwDiversity"},
4889+
"TxPowerIndexMin":{"shape":"TxPowerIndexMin"},
4890+
"TxPowerIndexMax":{"shape":"TxPowerIndexMax"},
4891+
"NbTransMin":{"shape":"NbTransMin"},
4892+
"NbTransMax":{"shape":"NbTransMax"}
48894893
}
48904894
},
48914895
"LoRaWANJoinEventNotificationConfigurations":{
@@ -4969,7 +4973,11 @@
49694973
"DrMin":{"shape":"DrMinBox"},
49704974
"DrMax":{"shape":"DrMaxBox"},
49714975
"PrAllowed":{"shape":"PrAllowed"},
4972-
"RaAllowed":{"shape":"RaAllowed"}
4976+
"RaAllowed":{"shape":"RaAllowed"},
4977+
"TxPowerIndexMin":{"shape":"TxPowerIndexMin"},
4978+
"TxPowerIndexMax":{"shape":"TxPowerIndexMax"},
4979+
"NbTransMin":{"shape":"NbTransMin"},
4980+
"NbTransMax":{"shape":"NbTransMax"}
49734981
}
49744982
},
49754983
"LoRaWANStartFuotaTask":{
@@ -5293,6 +5301,16 @@
52935301
}
52945302
},
52955303
"NRCapable":{"type":"boolean"},
5304+
"NbTransMax":{
5305+
"type":"integer",
5306+
"max":15,
5307+
"min":0
5308+
},
5309+
"NbTransMin":{
5310+
"type":"integer",
5311+
"max":15,
5312+
"min":0
5313+
},
52965314
"NetId":{
52975315
"type":"string",
52985316
"pattern":"[a-fA-F0-9]{6}"
@@ -6411,6 +6429,16 @@
64116429
"max":1,
64126430
"min":0
64136431
},
6432+
"TxPowerIndexMax":{
6433+
"type":"integer",
6434+
"max":15,
6435+
"min":0
6436+
},
6437+
"TxPowerIndexMin":{
6438+
"type":"integer",
6439+
"max":15,
6440+
"min":0
6441+
},
64146442
"UARFCN":{
64156443
"type":"integer",
64166444
"max":16383,

generator/ServiceModels/iotwireless/iotwireless-2020-11-22.docs.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,6 +2627,20 @@
26272627
"LteObj$NrCapable": "<p>Parameter that determines whether the LTE object is capable of supporting NR (new radio).</p>"
26282628
}
26292629
},
2630+
"NbTransMax": {
2631+
"base": null,
2632+
"refs": {
2633+
"LoRaWANGetServiceProfileInfo$NbTransMax": "<p>The maximum number of transmissions.</p> <p>Default: <code>3</code> </p>",
2634+
"LoRaWANServiceProfile$NbTransMax": "<p>The maximum number of transmissions.</p> <p>Default: <code>3</code> </p>"
2635+
}
2636+
},
2637+
"NbTransMin": {
2638+
"base": null,
2639+
"refs": {
2640+
"LoRaWANGetServiceProfileInfo$NbTransMin": "<p>The minimum number of transmissions.</p> <p>Default: <code>0</code> </p>",
2641+
"LoRaWANServiceProfile$NbTransMin": "<p>The minimum number of transmissions.</p> <p>Default: <code>0</code> </p>"
2642+
}
2643+
},
26302644
"NetId": {
26312645
"base": "<p>LoRaWAN network ID.</p>",
26322646
"refs": {
@@ -3816,6 +3830,20 @@
38163830
"SendDataToWirelessDeviceRequest$TransmitMode": "<p>The transmit mode to use to send data to the wireless device. Can be: <code>0</code> for UM (unacknowledge mode) or <code>1</code> for AM (acknowledge mode).</p>"
38173831
}
38183832
},
3833+
"TxPowerIndexMax": {
3834+
"base": null,
3835+
"refs": {
3836+
"LoRaWANGetServiceProfileInfo$TxPowerIndexMax": "<p>The Transmit Power Index maximum value.</p> <p>Default: <code>15</code> </p>",
3837+
"LoRaWANServiceProfile$TxPowerIndexMax": "<p>The Transmit Power Index maximum.</p> <p>Default: <code>15</code> </p>"
3838+
}
3839+
},
3840+
"TxPowerIndexMin": {
3841+
"base": null,
3842+
"refs": {
3843+
"LoRaWANGetServiceProfileInfo$TxPowerIndexMin": "<p>The Transmit Power Index minimum value.</p> <p>Default: <code>0</code> </p>",
3844+
"LoRaWANServiceProfile$TxPowerIndexMin": "<p>The Transmit Power Index minimum.</p> <p>Default: <code>0</code> </p>"
3845+
}
3846+
},
38193847
"UARFCN": {
38203848
"base": null,
38213849
"refs": {

generator/ServiceModels/iotwireless/iotwireless-2020-11-22.normal.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6248,6 +6248,22 @@
62486248
"MinGwDiversity":{
62496249
"shape":"MinGwDiversity",
62506250
"documentation":"<p>The MinGwDiversity value.</p>"
6251+
},
6252+
"TxPowerIndexMin":{
6253+
"shape":"TxPowerIndexMin",
6254+
"documentation":"<p>The Transmit Power Index minimum value.</p> <p>Default: <code>0</code> </p>"
6255+
},
6256+
"TxPowerIndexMax":{
6257+
"shape":"TxPowerIndexMax",
6258+
"documentation":"<p>The Transmit Power Index maximum value.</p> <p>Default: <code>15</code> </p>"
6259+
},
6260+
"NbTransMin":{
6261+
"shape":"NbTransMin",
6262+
"documentation":"<p>The minimum number of transmissions.</p> <p>Default: <code>0</code> </p>"
6263+
},
6264+
"NbTransMax":{
6265+
"shape":"NbTransMax",
6266+
"documentation":"<p>The maximum number of transmissions.</p> <p>Default: <code>3</code> </p>"
62516267
}
62526268
},
62536269
"documentation":"<p>LoRaWANGetServiceProfileInfo object.</p>"
@@ -6387,6 +6403,22 @@
63876403
"RaAllowed":{
63886404
"shape":"RaAllowed",
63896405
"documentation":"<p>The RAAllowed value that describes whether roaming activation is allowed.</p>"
6406+
},
6407+
"TxPowerIndexMin":{
6408+
"shape":"TxPowerIndexMin",
6409+
"documentation":"<p>The Transmit Power Index minimum.</p> <p>Default: <code>0</code> </p>"
6410+
},
6411+
"TxPowerIndexMax":{
6412+
"shape":"TxPowerIndexMax",
6413+
"documentation":"<p>The Transmit Power Index maximum.</p> <p>Default: <code>15</code> </p>"
6414+
},
6415+
"NbTransMin":{
6416+
"shape":"NbTransMin",
6417+
"documentation":"<p>The minimum number of transmissions.</p> <p>Default: <code>0</code> </p>"
6418+
},
6419+
"NbTransMax":{
6420+
"shape":"NbTransMax",
6421+
"documentation":"<p>The maximum number of transmissions.</p> <p>Default: <code>3</code> </p>"
63906422
}
63916423
},
63926424
"documentation":"<p>LoRaWANServiceProfile object.</p>"
@@ -6842,6 +6874,16 @@
68426874
"documentation":"<p>Wireless metadata that is to be sent to multicast group.</p>"
68436875
},
68446876
"NRCapable":{"type":"boolean"},
6877+
"NbTransMax":{
6878+
"type":"integer",
6879+
"max":15,
6880+
"min":0
6881+
},
6882+
"NbTransMin":{
6883+
"type":"integer",
6884+
"max":15,
6885+
"min":0
6886+
},
68456887
"NetId":{
68466888
"type":"string",
68476889
"documentation":"<p>LoRaWAN network ID.</p>",
@@ -8420,6 +8462,16 @@
84208462
"max":1,
84218463
"min":0
84228464
},
8465+
"TxPowerIndexMax":{
8466+
"type":"integer",
8467+
"max":15,
8468+
"min":0
8469+
},
8470+
"TxPowerIndexMin":{
8471+
"type":"integer",
8472+
"max":15,
8473+
"min":0
8474+
},
84238475
"UARFCN":{
84248476
"type":"integer",
84258477
"max":16383,

sdk/code-analysis/ServiceAnalysis/IoTWireless/Generated/PropertyValueRules.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,11 +1646,31 @@
16461646
<min>1</min>
16471647
<max>100</max>
16481648
</property-value-rule>
1649+
<property-value-rule>
1650+
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.NbTransMax</property>
1651+
<min>0</min>
1652+
<max>15</max>
1653+
</property-value-rule>
1654+
<property-value-rule>
1655+
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.NbTransMin</property>
1656+
<min>0</min>
1657+
<max>15</max>
1658+
</property-value-rule>
16491659
<property-value-rule>
16501660
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.TargetPer</property>
16511661
<min>0</min>
16521662
<max>100</max>
16531663
</property-value-rule>
1664+
<property-value-rule>
1665+
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.TxPowerIndexMax</property>
1666+
<min>0</min>
1667+
<max>15</max>
1668+
</property-value-rule>
1669+
<property-value-rule>
1670+
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.TxPowerIndexMin</property>
1671+
<min>0</min>
1672+
<max>15</max>
1673+
</property-value-rule>
16541674
<property-value-rule>
16551675
<property>Amazon.IoTWireless.Model.LoRaWANGetServiceProfileInfo.UlBucketSize</property>
16561676
<min>0</min>
@@ -1729,6 +1749,26 @@
17291749
<min>0</min>
17301750
<max>15</max>
17311751
</property-value-rule>
1752+
<property-value-rule>
1753+
<property>Amazon.IoTWireless.Model.LoRaWANServiceProfile.NbTransMax</property>
1754+
<min>0</min>
1755+
<max>15</max>
1756+
</property-value-rule>
1757+
<property-value-rule>
1758+
<property>Amazon.IoTWireless.Model.LoRaWANServiceProfile.NbTransMin</property>
1759+
<min>0</min>
1760+
<max>15</max>
1761+
</property-value-rule>
1762+
<property-value-rule>
1763+
<property>Amazon.IoTWireless.Model.LoRaWANServiceProfile.TxPowerIndexMax</property>
1764+
<min>0</min>
1765+
<max>15</max>
1766+
</property-value-rule>
1767+
<property-value-rule>
1768+
<property>Amazon.IoTWireless.Model.LoRaWANServiceProfile.TxPowerIndexMin</property>
1769+
<min>0</min>
1770+
<max>15</max>
1771+
</property-value-rule>
17321772
<property-value-rule>
17331773
<property>Amazon.IoTWireless.Model.LoRaWANUpdateDevice.DeviceProfileId</property>
17341774
<max>256</max>

sdk/src/Services/IoTWireless/Generated/Model/Internal/MarshallTransformations/LoRaWANGetServiceProfileInfoUnmarshaller.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,18 @@ public LoRaWANGetServiceProfileInfo Unmarshall(JsonUnmarshallerContext context,
116116
unmarshalledObject.MinGwDiversity = unmarshaller.Unmarshall(context, ref reader);
117117
continue;
118118
}
119+
if (context.TestExpression("NbTransMax", targetDepth))
120+
{
121+
var unmarshaller = NullableIntUnmarshaller.Instance;
122+
unmarshalledObject.NbTransMax = unmarshaller.Unmarshall(context, ref reader);
123+
continue;
124+
}
125+
if (context.TestExpression("NbTransMin", targetDepth))
126+
{
127+
var unmarshaller = NullableIntUnmarshaller.Instance;
128+
unmarshalledObject.NbTransMin = unmarshaller.Unmarshall(context, ref reader);
129+
continue;
130+
}
119131
if (context.TestExpression("NwkGeoLoc", targetDepth))
120132
{
121133
var unmarshaller = NullableBoolUnmarshaller.Instance;
@@ -152,6 +164,18 @@ public LoRaWANGetServiceProfileInfo Unmarshall(JsonUnmarshallerContext context,
152164
unmarshalledObject.TargetPer = unmarshaller.Unmarshall(context, ref reader);
153165
continue;
154166
}
167+
if (context.TestExpression("TxPowerIndexMax", targetDepth))
168+
{
169+
var unmarshaller = NullableIntUnmarshaller.Instance;
170+
unmarshalledObject.TxPowerIndexMax = unmarshaller.Unmarshall(context, ref reader);
171+
continue;
172+
}
173+
if (context.TestExpression("TxPowerIndexMin", targetDepth))
174+
{
175+
var unmarshaller = NullableIntUnmarshaller.Instance;
176+
unmarshalledObject.TxPowerIndexMin = unmarshaller.Unmarshall(context, ref reader);
177+
continue;
178+
}
155179
if (context.TestExpression("UlBucketSize", targetDepth))
156180
{
157181
var unmarshaller = NullableIntUnmarshaller.Instance;

sdk/src/Services/IoTWireless/Generated/Model/Internal/MarshallTransformations/LoRaWANServiceProfileMarshaller.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ public void Marshall(LoRaWANServiceProfile requestObject, JsonMarshallerContext
6464
context.Writer.WriteNumberValue(requestObject.DrMin.Value);
6565
}
6666

67+
if(requestObject.IsSetNbTransMax())
68+
{
69+
context.Writer.WritePropertyName("NbTransMax");
70+
context.Writer.WriteNumberValue(requestObject.NbTransMax.Value);
71+
}
72+
73+
if(requestObject.IsSetNbTransMin())
74+
{
75+
context.Writer.WritePropertyName("NbTransMin");
76+
context.Writer.WriteNumberValue(requestObject.NbTransMin.Value);
77+
}
78+
6779
if(requestObject.IsSetPrAllowed())
6880
{
6981
context.Writer.WritePropertyName("PrAllowed");
@@ -76,6 +88,18 @@ public void Marshall(LoRaWANServiceProfile requestObject, JsonMarshallerContext
7688
context.Writer.WriteBooleanValue(requestObject.RaAllowed.Value);
7789
}
7890

91+
if(requestObject.IsSetTxPowerIndexMax())
92+
{
93+
context.Writer.WritePropertyName("TxPowerIndexMax");
94+
context.Writer.WriteNumberValue(requestObject.TxPowerIndexMax.Value);
95+
}
96+
97+
if(requestObject.IsSetTxPowerIndexMin())
98+
{
99+
context.Writer.WritePropertyName("TxPowerIndexMin");
100+
context.Writer.WriteNumberValue(requestObject.TxPowerIndexMin.Value);
101+
}
102+
79103
}
80104

81105
/// <summary>

0 commit comments

Comments
 (0)