Skip to content

Commit f5b74b0

Browse files
Removing the Anonymous types in public-preview version (#24515)
* Removing the Anonymous types in private-preview version * Prettier check fix and spell check fix * resolving prettier check * Added the type-script readme file.
1 parent 237753f commit f5b74b0

File tree

8 files changed

+809
-818
lines changed

8 files changed

+809
-818
lines changed

specification/managednetworkfabric/resource-manager/Microsoft.ManagedNetworkFabric/preview/2023-02-01-preview/AccessControlLists.json

Lines changed: 61 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -361,61 +361,7 @@
361361
"items": {
362362
"description": "Access Control List condition model.",
363363
"type": "object",
364-
"allOf": [
365-
{
366-
"$ref": "./common.json#/definitions/AnnotationResource",
367-
"description": "Common properties for annotated type."
368-
}
369-
],
370-
"properties": {
371-
"sequenceNumber": {
372-
"type": "integer",
373-
"format": "int32",
374-
"description": "sequenceNumber of the Access Control List."
375-
},
376-
"action": {
377-
"type": "string",
378-
"description": "action. Example: allow | deny.",
379-
"enum": [
380-
"allow",
381-
"deny"
382-
],
383-
"x-ms-enum": {
384-
"modelAsString": true,
385-
"name": "conditionActionType"
386-
}
387-
},
388-
"destinationAddress": {
389-
"type": "string",
390-
"description": "destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
391-
},
392-
"destinationPort": {
393-
"type": "string",
394-
"description": "destinationPort. Example: any | 1253"
395-
},
396-
"sourceAddress": {
397-
"type": "string",
398-
"description": "sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
399-
},
400-
"sourcePort": {
401-
"type": "string",
402-
"description": "sourcePort. Example: any | 1253"
403-
},
404-
"protocol": {
405-
"type": "integer",
406-
"format": "int32",
407-
"description": "TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1."
408-
}
409-
},
410-
"required": [
411-
"sequenceNumber",
412-
"action",
413-
"destinationAddress",
414-
"destinationPort",
415-
"sourceAddress",
416-
"sourcePort",
417-
"protocol"
418-
]
364+
"$ref": "#/definitions/AccessControlListConditionProperties"
419365
}
420366
},
421367
"provisioningState": {
@@ -498,61 +444,7 @@
498444
"items": {
499445
"description": "Access Control List condition model.",
500446
"type": "object",
501-
"allOf": [
502-
{
503-
"$ref": "./common.json#/definitions/AnnotationResource",
504-
"description": "Common properties for annotated type."
505-
}
506-
],
507-
"properties": {
508-
"sequenceNumber": {
509-
"type": "integer",
510-
"format": "int32",
511-
"description": "sequenceNumber of the Access Control List."
512-
},
513-
"action": {
514-
"type": "string",
515-
"description": "action. Example: allow | deny.",
516-
"enum": [
517-
"allow",
518-
"deny"
519-
],
520-
"x-ms-enum": {
521-
"modelAsString": true,
522-
"name": "conditionActionType"
523-
}
524-
},
525-
"destinationAddress": {
526-
"type": "string",
527-
"description": "destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
528-
},
529-
"destinationPort": {
530-
"type": "string",
531-
"description": "destinationPort. Example: any | 1253"
532-
},
533-
"sourceAddress": {
534-
"type": "string",
535-
"description": "sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
536-
},
537-
"sourcePort": {
538-
"type": "string",
539-
"description": "sourcePort. Example: any | 1253"
540-
},
541-
"protocol": {
542-
"type": "integer",
543-
"format": "int32",
544-
"description": "TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1."
545-
}
546-
},
547-
"required": [
548-
"sequenceNumber",
549-
"action",
550-
"destinationAddress",
551-
"destinationPort",
552-
"sourceAddress",
553-
"sourcePort",
554-
"protocol"
555-
]
447+
"$ref": "#/definitions/AccessControlListConditionProperties"
556448
}
557449
}
558450
},
@@ -576,6 +468,65 @@
576468
}
577469
},
578470
"description": "The AccessControlList patch resource definition."
471+
},
472+
"AccessControlListConditionProperties": {
473+
"description": "Access Control List condition model.",
474+
"type": "object",
475+
"allOf": [
476+
{
477+
"$ref": "./common.json#/definitions/AnnotationResource",
478+
"description": "Common properties for annotated type."
479+
}
480+
],
481+
"properties": {
482+
"sequenceNumber": {
483+
"type": "integer",
484+
"format": "int32",
485+
"description": "sequenceNumber of the Access Control List."
486+
},
487+
"action": {
488+
"type": "string",
489+
"description": "action. Example: allow | deny.",
490+
"enum": [
491+
"allow",
492+
"deny"
493+
],
494+
"x-ms-enum": {
495+
"modelAsString": true,
496+
"name": "conditionActionType"
497+
}
498+
},
499+
"destinationAddress": {
500+
"type": "string",
501+
"description": "destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
502+
},
503+
"destinationPort": {
504+
"type": "string",
505+
"description": "destinationPort. Example: any | 1253"
506+
},
507+
"sourceAddress": {
508+
"type": "string",
509+
"description": "sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
510+
},
511+
"sourcePort": {
512+
"type": "string",
513+
"description": "sourcePort. Example: any | 1253"
514+
},
515+
"protocol": {
516+
"type": "integer",
517+
"format": "int32",
518+
"description": "TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1."
519+
}
520+
},
521+
"required": [
522+
"sequenceNumber",
523+
"action",
524+
"destinationAddress",
525+
"destinationPort",
526+
"sourceAddress",
527+
"sourcePort",
528+
"protocol"
529+
]
579530
}
580531
},
581532
"parameters": {}

0 commit comments

Comments
 (0)