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.
This commit is contained in:
Mohana-Krishna-Nali 2023-06-21 13:16:04 +05:30 коммит произвёл GitHub
Родитель 237753f28c
Коммит f5b74b0784
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 809 добавлений и 818 удалений

Просмотреть файл

@ -361,61 +361,7 @@
"items": {
"description": "Access Control List condition model.",
"type": "object",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"sequenceNumber": {
"type": "integer",
"format": "int32",
"description": "sequenceNumber of the Access Control List."
},
"action": {
"type": "string",
"description": "action. Example: allow | deny.",
"enum": [
"allow",
"deny"
],
"x-ms-enum": {
"modelAsString": true,
"name": "conditionActionType"
}
},
"destinationAddress": {
"type": "string",
"description": "destinationAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
},
"destinationPort": {
"type": "string",
"description": "destinationPort. Example: any | 1253"
},
"sourceAddress": {
"type": "string",
"description": "sourceAddress. Example: any | 1.1.1.0/24 | 1.1.10.10"
},
"sourcePort": {
"type": "string",
"description": "sourcePort. Example: any | 1253"
},
"protocol": {
"type": "integer",
"format": "int32",
"description": "TCP/IP protocol as defined in the list of IP protocol numbers. Example: 255 (any) | 0 | 1."
}
},
"required": [
"sequenceNumber",
"action",
"destinationAddress",
"destinationPort",
"sourceAddress",
"sourcePort",
"protocol"
]
"$ref": "#/definitions/AccessControlListConditionProperties"
}
},
"provisioningState": {
@ -496,6 +442,34 @@
"sequenceNumber"
],
"items": {
"description": "Access Control List condition model.",
"type": "object",
"$ref": "#/definitions/AccessControlListConditionProperties"
}
}
},
"description": "AccessControlListPatchProperties define the patchable resource properties."
},
"AccessControlListPatch": {
"type": "object",
"x-ms-azure-resource": true,
"properties": {
"properties": {
"x-ms-client-flatten": true,
"description": "Resource properties.",
"$ref": "#/definitions/AccessControlListPatchProperties"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"description": "The AccessControlList patch resource definition."
},
"AccessControlListConditionProperties": {
"description": "Access Control List condition model.",
"type": "object",
"allOf": [
@ -554,29 +528,6 @@
"protocol"
]
}
}
},
"description": "AccessControlListPatchProperties define the patchable resource properties."
},
"AccessControlListPatch": {
"type": "object",
"x-ms-azure-resource": true,
"properties": {
"properties": {
"x-ms-client-flatten": true,
"description": "Resource properties.",
"$ref": "#/definitions/AccessControlListPatchProperties"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"description": "The AccessControlList patch resource definition."
}
},
"parameters": {}
}

Просмотреть файл

@ -2106,44 +2106,8 @@
}
},
"aggregateRouteConfiguration": {
"type": "object",
"description": "List of Ipv4 and Ipv6 route configurations.",
"properties": {
"ipv4Routes": {
"type": "array",
"description": "List of Ipv4Route prefixes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "aggregateIpv4Route model.",
"properties": {
"prefix": {
"type": "string",
"description": "IPv4 Prefix of the aggregate Ipv4Route."
}
}
}
},
"ipv6Routes": {
"type": "array",
"description": "List of Ipv6Routes prefixes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "aggregateIpv6Route model.",
"properties": {
"prefix": {
"type": "string",
"description": "IPv6 Prefix of the aggregate IPv6 Route."
}
}
}
}
}
"$ref": "#/definitions/AggregateRouteConfiguration"
},
"description": {
"type": "string",
@ -2371,231 +2335,33 @@
},
"connectedIPv4Subnets": {
"type": "array",
"description": "List with object connectedIPv4Subnets.",
"description": "List with object connected IPv4 Subnets.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "connectedIPv4Subnet model.",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"prefix": {
"type": "string",
"description": "Ipv4 Prefix of the connectedIPv4Subnet."
}
}
"description": "Connected IPv4 Subnet properties.",
"$ref": "#/definitions/ConnectedSubnet"
}
},
"connectedIPv6Subnets": {
"type": "array",
"description": "List with object connectedIPv6Subnets.",
"description": "List with object connected IPv6 Subnets.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "connectedIPv6Subnet model.",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"prefix": {
"type": "string",
"description": "Ipv6 Prefix of the connectedIPv6Subnet."
}
}
"description": "Connected IPv6 Subnet properties.",
"$ref": "#/definitions/ConnectedSubnet"
}
},
"staticRouteConfiguration": {
"type": "object",
"description": "staticRouteConfiguration model.",
"properties": {
"bfdConfiguration": {
"$ref": "#/definitions/BfdConfiguration"
},
"ipv4Routes": {
"type": "array",
"description": "List with object IPv4Routes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "staticIpv4Route model.",
"properties": {
"prefix": {
"type": "string",
"description": "IPv4 prefix of the staticIpv4Route."
},
"nextHop": {
"type": "array",
"description": "List of next hop IPv4 addresses.",
"items": {
"type": "string",
"description": "Next Hop IPv4 address."
}
}
},
"required": [
"prefix",
"nextHop"
]
}
},
"ipv6Routes": {
"type": "array",
"description": "List with object IPv6Routes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"type": "object",
"description": "staticIPv6Route model.",
"properties": {
"prefix": {
"type": "string",
"description": "IPv6 prefix of the staticIPv6Route."
},
"nextHop": {
"type": "array",
"description": "List of next hop IPv6 addresses.",
"items": {
"type": "string",
"description": "Next Hop IPv6 address."
}
}
},
"required": [
"prefix",
"nextHop"
]
}
}
}
"description": "Static Route Configuration properties.",
"$ref": "#/definitions/StaticRouteConfiguration"
},
"bgpConfiguration": {
"type": "object",
"description": "BGP configuration properties",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"bfdConfiguration": {
"$ref": "#/definitions/BfdConfiguration"
},
"defaultRouteOriginate": {
"description": "Originate a defaultRoute. Ex: \"True\" | \"False\".",
"$ref": "./common.json#/definitions/BooleanEnumProperty"
},
"allowAS": {
"description": "Allows for routes to be received and processed even if the router detects its own ASN in the AS-Path. 0 is disable, Possible values are 1-10, default is 2.",
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 10,
"default": 2
},
"allowASOverride": {
"type": "string",
"description": "Enable Or Disable state.",
"enum": [
"Enable",
"Disable"
],
"x-ms-enum": {
"modelAsString": true,
"name": "allowASOverride"
}
},
"fabricASN": {
"type": "integer",
"format": "int32",
"description": "ASN of Network Fabric. Example: 65048.",
"readOnly": true
},
"peerASN": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 65535,
"description": "Peer ASN. Example: 65047."
},
"ipv4ListenRangePrefixes": {
"type": "array",
"description": "BGP Ipv4 ListenRange.",
"items": {
"type": "string",
"description": "Ipv4 Listen Range Prefix. Example: 10.1.0.0/28."
}
},
"ipv6ListenRangePrefixes": {
"type": "array",
"description": "BGP Ipv6 ListenRange.",
"items": {
"type": "string",
"description": "Ipv6 Listen Range Prefix. Example: 3FFE:FFFF:0:CD30::/126."
}
},
"ipv4NeighborAddress": {
"type": "array",
"description": "List with stringified ipv4NeighborAddresses.",
"x-ms-identifiers": [
"address"
],
"items": {
"type": "object",
"description": "ipv4NeighborAddress model.",
"properties": {
"address": {
"type": "string",
"description": "IP Address of the IPv4NeighborAddress."
},
"operationalState": {
"type": "string",
"description": "operationalState of the IPv4NeighborAddress.",
"readOnly": true
}
}
}
},
"ipv6NeighborAddress": {
"type": "array",
"description": "List with stringified ipv6NeighborAddress.",
"x-ms-identifiers": [
"address"
],
"items": {
"type": "object",
"description": "ipv6NeighborAddress model.",
"properties": {
"address": {
"type": "string",
"description": "ip address of the ipv6NeighborAddress."
},
"operationalState": {
"type": "string",
"description": "operationalState of the ipv6NeighborAddress.",
"readOnly": true
}
}
}
}
},
"required": [
"peerASN"
]
"$ref": "#/definitions/BgpConfiguration"
},
"importRoutePolicyId": {
"type": "string",
@ -2653,7 +2419,6 @@
},
"optionAProperties": {
"description": "option A properties object",
"properties": {},
"allOf": [
{
"$ref": "#/definitions/Layer3OptionAProperties"
@ -2853,6 +2618,222 @@
"readOnly": true
}
}
},
"StaticRouteConfiguration": {
"type": "object",
"description": "staticRouteConfiguration model.",
"properties": {
"bfdConfiguration": {
"$ref": "#/definitions/BfdConfiguration"
},
"ipv4Routes": {
"type": "array",
"description": "List with object IPv4Routes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"description": "Static IPv4 Route properties.",
"$ref": "#/definitions/StaticRouteProperties"
}
},
"ipv6Routes": {
"type": "array",
"description": "List with object IPv6Routes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"description": "Static IPv6 Route properties.",
"$ref": "#/definitions/StaticRouteProperties"
}
}
}
},
"StaticRouteProperties": {
"type": "object",
"description": "Static Route properties.",
"properties": {
"prefix": {
"type": "string",
"description": "IPv4 | IPv6 Prefix."
},
"nextHop": {
"type": "array",
"description": "List of next hop IPv4 | IPv6 addresses.",
"items": {
"type": "string",
"description": "Next Hop IPv4 | IPv6 address."
}
}
},
"required": [
"prefix",
"nextHop"
]
},
"BgpConfiguration": {
"type": "object",
"description": "BGP configuration properties",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"bfdConfiguration": {
"$ref": "#/definitions/BfdConfiguration"
},
"defaultRouteOriginate": {
"description": "Originate a defaultRoute. Ex: \"True\" | \"False\".",
"$ref": "./common.json#/definitions/BooleanEnumProperty"
},
"allowAS": {
"description": "Allows for routes to be received and processed even if the router detects its own ASN in the AS-Path. 0 is disable, Possible values are 1-10, default is 2.",
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 10,
"default": 2
},
"allowASOverride": {
"type": "string",
"description": "Enable Or Disable state.",
"enum": [
"Enable",
"Disable"
],
"x-ms-enum": {
"modelAsString": true,
"name": "allowASOverride"
}
},
"fabricASN": {
"type": "integer",
"format": "int32",
"description": "ASN of Network Fabric. Example: 65048.",
"readOnly": true
},
"peerASN": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 65535,
"description": "Peer ASN. Example: 65047."
},
"ipv4ListenRangePrefixes": {
"type": "array",
"description": "BGP Ipv4 ListenRange.",
"items": {
"type": "string",
"description": "Ipv4 Listen Range Prefix. Example: 10.1.0.0/28."
}
},
"ipv6ListenRangePrefixes": {
"type": "array",
"description": "BGP Ipv6 ListenRange.",
"items": {
"type": "string",
"description": "Ipv6 Listen Range Prefix. Example: 3FFE:FFFF:0:CD30::/126."
}
},
"ipv4NeighborAddress": {
"type": "array",
"description": "List with stringified ipv4NeighborAddresses.",
"x-ms-identifiers": [
"address"
],
"items": {
"description": "IPv4 Neighbor Address object.",
"$ref": "#/definitions/NeighborAddress"
}
},
"ipv6NeighborAddress": {
"type": "array",
"description": "List with stringified IPv6 Neighbor Address.",
"x-ms-identifiers": [
"address"
],
"items": {
"type": "object",
"description": "IPv6 Neighbor Address object.",
"$ref": "#/definitions/NeighborAddress"
}
}
},
"required": [
"peerASN"
]
},
"NeighborAddress": {
"type": "object",
"description": "Neighbor Address properties.",
"properties": {
"address": {
"type": "string",
"description": "IP Address."
},
"operationalState": {
"type": "string",
"description": "OperationalState of the NeighborAddress.",
"readOnly": true
}
}
},
"ConnectedSubnet": {
"type": "object",
"description": "Connected Subnet properties.",
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"prefix": {
"type": "string",
"description": "Prefix of the connected Subnet."
}
}
},
"AggregateRouteConfiguration": {
"type": "object",
"description": "List of IPv4 and IPv6 route configurations.",
"properties": {
"ipv4Routes": {
"type": "array",
"description": "List of IPv4 Route prefixes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"description": "Aggregate IPv4 Route properties.",
"$ref": "#/definitions/AggregateRoute"
}
},
"ipv6Routes": {
"type": "array",
"description": "List of IPv6 Routes prefixes.",
"x-ms-identifiers": [
"prefix"
],
"items": {
"description": "Aggregate IPv6 Route properties.",
"$ref": "#/definitions/AggregateRoute"
}
}
}
},
"AggregateRoute": {
"type": "object",
"description": "Aggregate Route properties.",
"properties": {
"prefix": {
"type": "string",
"description": "Prefix of the aggregate Route."
}
}
}
},
"parameters": {}

Просмотреть файл

@ -139,82 +139,12 @@
],
"items": {
"description": "Network device interface properties.",
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Operating system and firmware combined versions."
},
"vendorOsVersion": {
"type": "string",
"description": "Operating system version."
},
"vendorFirmwareVersion": {
"type": "string",
"description": "Firmware version."
},
"isCurrent": {
"type": "string",
"enum": [
"true",
"false"
],
"x-ms-enum": {
"modelAsString": true,
"name": "isCurrentVersion"
},
"description": "If the current version is in use."
},
"isTest": {
"type": "string",
"enum": [
"true",
"false"
],
"x-ms-enum": {
"modelAsString": true,
"name": "isTestVersion"
},
"description": "If the current version is a test version."
}
}
"$ref": "#/definitions/SupportedVersionProperties"
}
},
"limits": {
"description": "Network device limits.",
"type": "object",
"properties": {
"physicalInterfaceCount": {
"type": "integer",
"format": "int32",
"description": "Maximum number of physical interfaces."
},
"maxSubInterfaces": {
"type": "integer",
"format": "int32",
"description": "Maximum number of sub-interfaces."
},
"maxTunnelInterfaces": {
"type": "integer",
"format": "int32",
"description": "Maximum number of tunnel interfaces."
},
"maxVirtualRouterFunctions": {
"type": "integer",
"format": "int32",
"description": "Maximum number of virtual router functions."
},
"maxBorderGatewayProtocolPeers": {
"type": "integer",
"format": "int32",
"description": "Maximum number of Border Gateway Protocol (BGP) peers."
},
"maxBidirectionalForwardingDetectionPeers": {
"type": "integer",
"format": "int32",
"description": "Maximum number of Bidirectional Forwarding Detection (BFD) peers."
}
}
"$ref": "#/definitions/DeviceLimits"
},
"supportedRoleTypes": {
"type": "array",
@ -243,39 +173,7 @@
],
"items": {
"description": "Network device interface properties.",
"type": "object",
"properties": {
"identifier": {
"type": "string",
"description": "Interface identifier. Example: HundredGigE0/0."
},
"interfaceType": {
"type": "string",
"description": "Interface type."
},
"supportedConnectorTypes": {
"type": "array",
"description": "List of supported connector types.",
"x-ms-identifiers": [
"connectorType"
],
"items": {
"description": "Supported connector properties.",
"type": "object",
"properties": {
"connectorType": {
"type": "string",
"description": "Connector type. Example: Optical."
},
"maxSpeedInMbps": {
"type": "integer",
"format": "int32",
"description": "Maximum speed of the connector in Mbps."
}
}
}
}
}
"$ref": "#/definitions/DeviceInterfaceProperties"
}
},
"provisioningState": {
@ -325,6 +223,124 @@
"description": "Url to follow for getting next page of resources."
}
}
},
"SupportedVersionProperties": {
"description": "Network device supported version properties.",
"type": "object",
"properties": {
"version": {
"type": "string",
"description": "Operating system and firmware combined versions."
},
"vendorOsVersion": {
"type": "string",
"description": "Operating system version."
},
"vendorFirmwareVersion": {
"type": "string",
"description": "Firmware version."
},
"isCurrent": {
"type": "string",
"enum": [
"true",
"false"
],
"x-ms-enum": {
"modelAsString": true,
"name": "isCurrentVersion"
},
"description": "If the current version is in use."
},
"isTest": {
"type": "string",
"enum": [
"true",
"false"
],
"x-ms-enum": {
"modelAsString": true,
"name": "isTestVersion"
},
"description": "If the current version is a test version."
}
}
},
"DeviceInterfaceProperties": {
"description": "Network device interface properties.",
"type": "object",
"properties": {
"identifier": {
"type": "string",
"description": "Interface identifier. Example: HundredGigE0/0."
},
"interfaceType": {
"type": "string",
"description": "Interface type."
},
"supportedConnectorTypes": {
"type": "array",
"description": "List of supported connector types.",
"x-ms-identifiers": [
"connectorType"
],
"items": {
"description": "Supported connector properties.",
"$ref": "#/definitions/SupportedConnectorProperties"
}
}
}
},
"DeviceLimits": {
"description": "Network device limits.",
"type": "object",
"properties": {
"physicalInterfaceCount": {
"type": "integer",
"format": "int32",
"description": "Maximum number of physical interfaces."
},
"maxSubInterfaces": {
"type": "integer",
"format": "int32",
"description": "Maximum number of sub-interfaces."
},
"maxTunnelInterfaces": {
"type": "integer",
"format": "int32",
"description": "Maximum number of tunnel interfaces."
},
"maxVirtualRouterFunctions": {
"type": "integer",
"format": "int32",
"description": "Maximum number of virtual router functions."
},
"maxBorderGatewayProtocolPeers": {
"type": "integer",
"format": "int32",
"description": "Maximum number of Border Gateway Protocol (BGP) peers."
},
"maxBidirectionalForwardingDetectionPeers": {
"type": "integer",
"format": "int32",
"description": "Maximum number of Bidirectional Forwarding Detection (BFD) peers."
}
}
},
"SupportedConnectorProperties": {
"description": "Supported connector properties.",
"type": "object",
"properties": {
"connectorType": {
"type": "string",
"description": "Connector type. Example: Optical."
},
"maxSpeedInMbps": {
"type": "integer",
"format": "int32",
"description": "Maximum speed of the connector in Mbps."
}
}
}
},
"parameters": {}

Просмотреть файл

@ -515,64 +515,16 @@
],
"properties": {
"infrastructureServices": {
"type": "object",
"description": "InfrastructureServices IP ranges.",
"properties": {
"ipv4AddressSpaces": {
"type": "array",
"description": "The IPv4 Address space is optional, if the value is not defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute.",
"items": {
"type": "string",
"description": "This will provide the IPv4 Network Fabric Controller Address Space."
}
},
"ipv6AddressSpaces": {
"type": "array",
"description": "The IPv6 is not supported right now.",
"items": {
"type": "string",
"description": "The IPv6 is not supported right now."
}
}
},
"readOnly": true
"$ref": "#/definitions/InfrastructureServices"
},
"workloadServices": {
"type": "object",
"description": "WorkloadServices IP ranges.",
"properties": {
"ipv4AddressSpaces": {
"type": "array",
"description": "The IPv4 Address space is optional, if the value is defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute.",
"items": {
"type": "string",
"description": "This will provide the IPv4 Network Fabric Controller Address Space."
}
},
"ipv6AddressSpaces": {
"type": "array",
"description": "The IPv6 is not supported right now.",
"items": {
"type": "string",
"description": "The IPv6 is not supported right now."
}
}
},
"readOnly": true
"$ref": "#/definitions/WorkloadServices"
},
"managedResourceGroupConfiguration": {
"type": "object",
"description": "Managed Resource Group configuration properties.",
"properties": {
"name": {
"type": "string",
"description": "The NFC service will be hosted in a Managed resource group."
},
"location": {
"type": "string",
"description": "Managed resource group location."
}
}
"$ref": "#/definitions/ManagedResourceGroupConfiguration"
},
"networkFabricIds": {
"type": "array",
@ -718,6 +670,66 @@
"description": "Url to follow for getting next page of resources."
}
}
},
"InfrastructureServices": {
"type": "object",
"description": "InfrastructureServices IP ranges.",
"properties": {
"ipv4AddressSpaces": {
"type": "array",
"description": "The IPv4 Address space is optional, if the value is not defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute.",
"items": {
"type": "string",
"description": "This will provide the IPv4 Network Fabric Controller Address Space."
}
},
"ipv6AddressSpaces": {
"type": "array",
"description": "The IPv6 is not supported right now.",
"items": {
"type": "string",
"description": "The IPv6 is not supported right now."
}
}
},
"readOnly": true
},
"WorkloadServices": {
"type": "object",
"description": "WorkloadServices IP ranges.",
"properties": {
"ipv4AddressSpaces": {
"type": "array",
"description": "The IPv4 Address space is optional, if the value is defined at the time of NFC creation, then the default value 10.0.0.0/19 is considered. The IPV4 address subnet is an optional attribute.",
"items": {
"type": "string",
"description": "This will provide the IPv4 Network Fabric Controller Address Space."
}
},
"ipv6AddressSpaces": {
"type": "array",
"description": "The IPv6 is not supported right now.",
"items": {
"type": "string",
"description": "The IPv6 is not supported right now."
}
}
},
"readOnly": true
},
"ManagedResourceGroupConfiguration": {
"type": "object",
"description": "Managed Resource Group configuration properties.",
"properties": {
"name": {
"type": "string",
"description": "The NFC service will be hosted in a Managed resource group."
},
"location": {
"type": "string",
"description": "Managed resource group location."
}
}
}
},
"parameters": {}

Просмотреть файл

@ -729,14 +729,9 @@
"type": "object",
"properties": {
"terminalServerConfiguration": {
"type": "object",
"description": "Network and credentials configuration already applied to terminal server.",
"allOf": [
{
"$ref": "#/definitions/TerminalServerPatchableProperties"
}
]
}
}
},
"TerminalServerPatchableProperties": {
@ -871,97 +866,12 @@
]
},
"terminalServerConfiguration": {
"type": "object",
"description": "Network and credentials configuration currently applied to terminal server.",
"required": [
"username",
"password",
"primaryIpv4Prefix",
"secondaryIpv4Prefix"
],
"properties": {
"networkDeviceId": {
"type": "string",
"description": "ARM Resource ID used for the NetworkDevice.",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/Layer3IpPrefixProperties"
},
{
"$ref": "#/definitions/TerminalServerPatchableProperties"
}
]
"$ref": "#/definitions/TerminalServerConfiguration"
},
"managementNetworkConfiguration": {
"type": "object",
"description": "Configuration to be used to setup the management network.",
"required": [
"infrastructureVpnConfiguration",
"workloadVpnConfiguration"
],
"properties": {
"infrastructureVpnConfiguration": {
"type": "object",
"description": "Configuration for infrastructure vpn.",
"properties": {
"administrativeState": {
"description": "Indicates configuration state. Example: Enabled | Disabled.",
"$ref": "./common.json#/definitions/EnabledDisabledState"
},
"networkToNetworkInterconnectId": {
"type": "string",
"description": "Gets the networkToNetworkInterconnectId of the resource.",
"readOnly": true
},
"peeringOption": {
"$ref": "./common.json#/definitions/PeeringOption"
},
"optionBProperties": {
"description": "option B properties",
"$ref": "#/definitions/OptionBProperties"
},
"optionAProperties": {
"description": "option A properties",
"$ref": "#/definitions/OptionAProperties"
}
},
"required": [
"peeringOption"
]
},
"workloadVpnConfiguration": {
"type": "object",
"description": "Configuration for workload vpn.",
"properties": {
"administrativeState": {
"description": "Indicates configuration state. Example: enabled | disabled.",
"$ref": "./common.json#/definitions/EnabledDisabledState"
},
"peeringOption": {
"$ref": "./common.json#/definitions/PeeringOption"
},
"networkToNetworkInterconnectId": {
"type": "string",
"description": "Gets the networkToNetworkInterconnectId of the resource.",
"readOnly": true
},
"optionAProperties": {
"description": "option A properties object",
"$ref": "#/definitions/OptionAProperties"
},
"optionBProperties": {
"description": "option B properties object",
"$ref": "#/definitions/OptionBProperties"
}
},
"required": [
"peeringOption"
]
}
}
"$ref": "#/definitions/ManagementNetworkConfiguration"
},
"operationalState": {
"description": "Gets the operational state of the resource.",
@ -1122,17 +1032,10 @@
"$ref": "./common.json#/definitions/BooleanEnumProperty"
},
"layer2Configuration": {
"type": "object",
"description": "Common properties for Layer2Configuration.",
"allOf": [
{
"$ref": "#/definitions/Layer2Configuration",
"description": "Common properties for Layer2Configuration."
}
]
"$ref": "#/definitions/Layer2Configuration"
},
"layer3Configuration": {
"type": "object",
"description": "Common properties for Layer3Configuration.",
"$ref": "#/definitions/Layer3Configuration"
},
@ -1190,22 +1093,8 @@
"description": "Peer ASN number.Example : 28"
},
"bfdConfiguration": {
"type": "object",
"description": "BFD Configuration properties.",
"properties": {
"interval": {
"type": "integer",
"format": "int32",
"description": "interval in seconds. Example: 300.",
"readOnly": true
},
"multiplier": {
"type": "integer",
"format": "int32",
"description": "multiplier. Example: 3.",
"readOnly": true
}
}
"$ref": "#/definitions/FabricBfdConfiguration"
}
},
"allOf": [
@ -1333,6 +1222,96 @@
"description": "Secondary IPv6 Address Prefix of CE-PE interconnect links. Example: 3FFE:FFFF:0:CD30::a4/126. The values can be specified at the time of creation or can be updated afterwards. Any update to the values post-provisioning may disrupt traffic. The 1st and 3rd IPs are to be configured on CE1 and CE2 for Option B interfaces. The 2nd and 4th IPs are to be configured on PE1 and PE2 for Option B interfaces."
}
}
},
"ManagementNetworkConfiguration": {
"type": "object",
"description": "Configuration to be used to setup the management network.",
"required": [
"infrastructureVpnConfiguration",
"workloadVpnConfiguration"
],
"properties": {
"infrastructureVpnConfiguration": {
"description": "Configuration for infrastructure vpn.",
"$ref": "#/definitions/VpnConfigurationProperties"
},
"workloadVpnConfiguration": {
"description": "Configuration for workload vpn.",
"$ref": "#/definitions/VpnConfigurationProperties"
}
}
},
"VpnConfigurationProperties": {
"type": "object",
"description": "Configuration for infrastructure vpn.",
"properties": {
"administrativeState": {
"description": "Indicates configuration state. Example: Enabled | Disabled.",
"$ref": "./common.json#/definitions/EnabledDisabledState"
},
"networkToNetworkInterconnectId": {
"type": "string",
"description": "Gets the networkToNetworkInterconnectId of the resource.",
"readOnly": true
},
"peeringOption": {
"$ref": "./common.json#/definitions/PeeringOption"
},
"optionBProperties": {
"description": "option B properties",
"$ref": "#/definitions/OptionBProperties"
},
"optionAProperties": {
"description": "option A properties",
"$ref": "#/definitions/OptionAProperties"
}
},
"required": [
"peeringOption"
]
},
"FabricBfdConfiguration": {
"type": "object",
"description": "BFD Configuration properties.",
"properties": {
"interval": {
"type": "integer",
"format": "int32",
"description": "interval in seconds. Example: 300.",
"readOnly": true
},
"multiplier": {
"type": "integer",
"format": "int32",
"description": "multiplier. Example: 3.",
"readOnly": true
}
}
},
"TerminalServerConfiguration": {
"type": "object",
"description": "Network and credentials configuration currently applied to terminal server.",
"required": [
"username",
"password",
"primaryIpv4Prefix",
"secondaryIpv4Prefix"
],
"properties": {
"networkDeviceId": {
"type": "string",
"description": "ARM Resource ID used for the NetworkDevice.",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/Layer3IpPrefixProperties"
},
{
"$ref": "#/definitions/TerminalServerPatchableProperties"
}
]
}
},
"parameters": {}

Просмотреть файл

@ -158,33 +158,7 @@
],
"items": {
"description": "Network device properties / role for the Network Rack.",
"type": "object",
"properties": {
"networkDeviceSkuName": {
"type": "string",
"description": "Name of the associated Network Device SKU."
},
"roleType": {
"type": "string",
"description": "Role for the network device.",
"enum": [
"CE",
"ToR",
"NPB",
"TS",
"Management"
],
"x-ms-enum": {
"modelAsString": true,
"name": "networkDeviceRackRoleType"
}
},
"rackSlot": {
"type": "integer",
"format": "int32",
"description": "Rack slot for the network device."
}
}
"$ref": "#/definitions/NetworkDeviceRoleProperties"
}
},
"provisioningState": {
@ -234,6 +208,36 @@
"description": "Url to follow for getting next page of resources."
}
}
},
"NetworkDeviceRoleProperties": {
"description": "Network device properties / role for the Network Rack.",
"type": "object",
"properties": {
"networkDeviceSkuName": {
"type": "string",
"description": "Name of the associated Network Device SKU."
},
"roleType": {
"type": "string",
"description": "Role for the network device.",
"enum": [
"CE",
"ToR",
"NPB",
"TS",
"Management"
],
"x-ms-enum": {
"modelAsString": true,
"name": "networkDeviceRackRoleType"
}
},
"rackSlot": {
"type": "integer",
"format": "int32",
"description": "Rack slot for the network device."
}
}
}
},
"parameters": {}

Просмотреть файл

@ -378,169 +378,7 @@
],
"items": {
"description": "Route Policy condition model.",
"type": "object",
"required": [
"sequenceNumber",
"condition",
"action"
],
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"sequenceNumber": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 4294967295,
"description": "Sequence to insert to/delete from existing route."
},
"condition": {
"type": "object",
"description": "Route policy condition properties.",
"properties": {
"ipCommunityIds": {
"type": "array",
"description": "List of IPCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPCommunity."
}
},
"ipExtendedCommunityIds": {
"type": "array",
"description": "List of IPExtendedCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IpExtendedCommunity."
}
},
"ipPrefixId": {
"type": "string",
"description": "Arm Resource Id of IpPrefix."
}
}
},
"action": {
"type": "object",
"description": "Route policy action properties.",
"properties": {
"localPreference": {
"type": "integer",
"format": "int64",
"minimum": 0,
"maximum": 4294967295,
"description": "localPreference of the route policy."
},
"actionType": {
"description": "action. Example: Permit | Deny.",
"$ref": "./common.json#/definitions/CommunityActionTypes"
},
"ipCommunityProperties": {
"type": "object",
"description": "ipCommunity Properties.",
"properties": {
"add": {
"type": "object",
"description": "Route policy add manipulations.",
"properties": {
"ipCommunityIds": {
"type": "array",
"description": "List of IPCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPCommunity."
}
}
}
},
"delete": {
"type": "object",
"description": "Route policy delete manipulations.",
"properties": {
"ipCommunityIds": {
"type": "array",
"description": "List of IPCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPCommunity."
}
}
}
},
"set": {
"type": "object",
"description": "Route policy set manipulations.",
"properties": {
"ipCommunityIds": {
"type": "array",
"description": "List of IPCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPCommunity."
}
}
}
}
}
},
"ipExtendedCommunityProperties": {
"type": "object",
"description": "IP Extended Community Properties.",
"properties": {
"add": {
"type": "object",
"description": "Route policy add manipulations.",
"properties": {
"ipExtendedCommunityIds": {
"type": "array",
"description": "List of IPExtendedCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPExtendedCommunity."
}
}
}
},
"delete": {
"type": "object",
"description": "Route policy delete manipulations.",
"properties": {
"ipExtendedCommunityIds": {
"type": "array",
"description": "List of IPExtendedCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPExtendedCommunity."
}
}
}
},
"set": {
"type": "object",
"description": "Route policy set manipulations.",
"properties": {
"ipExtendedCommunityIds": {
"type": "array",
"description": "List of IPExtendedCommunity resource IDs.",
"items": {
"type": "string",
"description": "Arm Resource Id of IPExtendedCommunity."
}
}
}
}
}
}
},
"required": [
"actionType"
]
}
}
"$ref": "#/definitions/RoutePolicyStatementProperties"
}
},
"provisioningState": {
@ -552,7 +390,7 @@
"required": [
"statements"
],
"description": "RoutePolicyProperties define the resource properties."
"description": "RoutePolicy Properties define the resource properties."
},
"RoutePolicy": {
"type": "object",
@ -605,6 +443,202 @@
"description": "Url to follow for getting next page of resources."
}
}
},
"RoutePolicyStatementProperties": {
"description": "Route Policy Statement properties..",
"type": "object",
"required": [
"sequenceNumber",
"condition",
"action"
],
"allOf": [
{
"$ref": "./common.json#/definitions/AnnotationResource",
"description": "Common properties for annotated type."
}
],
"properties": {
"sequenceNumber": {
"type": "integer",
"format": "int64",
"minimum": 1,
"maximum": 4294967295,
"description": "Sequence to insert to/delete from existing route."
},
"condition": {
"description": "Route policy condition properties.",
"$ref": "#/definitions/StatementConditionProperties"
},
"action": {
"description": "Route policy action properties.",
"$ref": "#/definitions/StatementActionProperties"
}
}
},
"StatementConditionProperties": {
"type": "object",
"description": "Route policy statement condition properties.",
"properties": {
"ipPrefixId": {
"type": "string",
"description": "Arm Resource Id of IpPrefix."
}
},
"allOf": [
{
"description": "List of IP Community resource IDs.",
"$ref": "#/definitions/IpCommunityIdList"
},
{
"description": "List of IP Extended Community resource IDs.",
"$ref": "#/definitions/IpExtendedCommunityIdList"
}
]
},
"StatementActionProperties": {
"type": "object",
"description": "Route policy action properties.",
"properties": {
"localPreference": {
"type": "integer",
"format": "int64",
"minimum": 0,
"maximum": 4294967295,
"description": "localPreference of the route policy."
},
"actionType": {
"description": "action. Example: Permit | Deny.",
"$ref": "./common.json#/definitions/CommunityActionTypes"
},
"ipCommunityProperties": {
"description": "IP Community Properties.",
"$ref": "#/definitions/ActionIpCommunityProperties"
},
"ipExtendedCommunityProperties": {
"description": "IP Extended Community Properties.",
"$ref": "#/definitions/ActionIpExtendedCommunityProperties"
}
},
"required": [
"actionType"
]
},
"ActionIpCommunityProperties": {
"description": "IP Community Properties.",
"allOf": [
{
"description": "IP Community add operation properties.",
"$ref": "#/definitions/IpCommunityAddOperationProperties"
},
{
"description": "IP Community delete operation properties.",
"$ref": "#/definitions/IpCommunityDeleteOperationProperties"
},
{
"description": "IP Community set operation properties.",
"$ref": "#/definitions/IpCommunitySetOperationProperties"
}
]
},
"IpCommunityAddOperationProperties": {
"type": "object",
"description": "IP Community add operation properties.",
"properties": {
"add": {
"$ref": "#/definitions/IpCommunityIdList"
}
}
},
"IpCommunitySetOperationProperties": {
"type": "object",
"description": "IP Community set operation properties.",
"properties": {
"set": {
"$ref": "#/definitions/IpCommunityIdList"
}
}
},
"IpCommunityDeleteOperationProperties": {
"type": "object",
"description": "IP Community delete operation properties.",
"properties": {
"delete": {
"$ref": "#/definitions/IpCommunityIdList"
}
}
},
"ActionIpExtendedCommunityProperties": {
"description": "IP Extended Community Properties.",
"allOf": [
{
"description": "IP Extended Community add operation properties.",
"$ref": "#/definitions/IpExtendedCommunityAddOperationProperties"
},
{
"description": "IP Extended Community delete operation properties.",
"$ref": "#/definitions/IpExtendedCommunityDeleteOperationProperties"
},
{
"description": "IP Extended Community set operation properties.",
"$ref": "#/definitions/IpExtendedCommunitySetOperationProperties"
}
]
},
"IpExtendedCommunityAddOperationProperties": {
"type": "object",
"description": "IP Extended Community add operation properties.",
"properties": {
"add": {
"$ref": "#/definitions/IpExtendedCommunityIdList"
}
}
},
"IpExtendedCommunitySetOperationProperties": {
"type": "object",
"description": "IP Extended Community set operation properties.",
"properties": {
"set": {
"$ref": "#/definitions/IpExtendedCommunityIdList"
}
}
},
"IpExtendedCommunityDeleteOperationProperties": {
"type": "object",
"description": "IP Extended Community delete operation properties.",
"properties": {
"delete": {
"$ref": "#/definitions/IpExtendedCommunityIdList"
}
}
},
"IpCommunityIdList": {
"description": "IP Community ID list properties.",
"type": "object",
"properties": {
"ipCommunityIds": {
"type": "array",
"description": "List of IP Community resource IDs.",
"items": {
"type": "string",
"description": "ARM Resource ID of IPCommunity."
}
}
}
},
"IpExtendedCommunityIdList": {
"description": "IP Extended Community Id list properties.",
"type": "object",
"properties": {
"ipExtendedCommunityIds": {
"type": "array",
"description": "List of IP Extended Community resource IDs.",
"items": {
"type": "string",
"description": "ARM Resource ID of IP Extended Community."
}
}
}
}
},
"parameters": {}

Просмотреть файл

@ -0,0 +1,14 @@
## TypeScript
These settings apply only when `--typescript` is specified on the command line.
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.
``` yaml $(typescript)
typescript:
azure-arm: true
package-name: "@azure/arm-managednetworkfabric"
output-folder: "$(typescript-sdks-folder)/sdk/managednetworkfabric/arm-managednetworkfabric"
payload-flattening-threshold: 1
clear-output-folder: true
generate-metadata: true
```