Skip to content

Commit

Permalink
fixing NRP networking resource properties (#12570)
Browse files Browse the repository at this point in the history
* fixing NRP networking resource properties

* fixing natgateway and privatelinkservice references

* adding custom word privatelinkservice

* virtualnetwork prettier fix

* added custom word natgateway

* added more missing resource properties as per S360

* correct natgateway reference

* revert 'Error' property casing

* fix linkedpublicipaddress property

* adding enum values

* added prefixes and prettier check done

* added prefix for 2 properties
  • Loading branch information
guptas14 authored Feb 19, 2021
1 parent 2083db7 commit ec98b0d
Show file tree
Hide file tree
Showing 11 changed files with 212 additions and 5 deletions.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2094,3 +2094,5 @@ azureasyncoperations
saskey
vmsize
FSLogix
privatelinkservice
natgateway
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand Down Expand Up @@ -1153,6 +1157,22 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the network interface resource."
},
"nicType": {
"type": "string",
"description": "Type of Network Interface resource.",
"enum": [
"Standard",
"Elastic"
],
"x-ms-enum": {
"name": "NetworkInterfaceNicType",
"modelAsString": true
}
},
"privateLinkService": {
"$ref": "./privateLinkService.json#/definitions/PrivateLinkService",
"description": "Privatelinkservice of the network interface resource."
}
},
"description": "NetworkInterface properties."
Expand Down Expand Up @@ -1485,7 +1505,8 @@
},
"privateIPAllocationMethod": {
"$ref": "./network.json#/definitions/IPAllocationMethod",
"description": "The private IP address allocation method."
"description": "The private IP address allocation method.",
"default": "Dynamic"
},
"subnet": {
"$ref": "./virtualNetwork.json#/definitions/Subnet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,10 @@
"resourceName": {
"type": "string",
"description": "The name of the service and resource."
},
"displayName": {
"type": "string",
"description": "Display name of the resource."
}
},
"description": "The information of an AvailablePrivateEndpointType."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,29 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the public IP address resource."
},
"natGateway": {
"$ref": "./natGateway.json#/definitions/NatGateway",
"description": "The NatGateway for the Public IP address."
},
"migrationPhase": {
"type": "string",
"description": "Migration phase of Public IP Address.",
"enum": [
"None",
"Prepare",
"Commit",
"Abort",
"Committed"
],
"x-ms-enum": {
"name": "PublicIPAddressMigrationPhase",
"modelAsString": true
}
},
"linkedPublicIPAddress": {
"$ref": "#/definitions/PublicIPAddress",
"description": "The linked public IP address of the public IP address resource."
}
},
"description": "Public IP address properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the public IP prefix resource."
},
"natGateway": {
"$ref": "./natGateway.json#/definitions/NatGateway",
"description": "NatGateway of Public IP Prefix."
}
},
"description": "Public IP prefix properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@
},
"readOnly": true,
"description": "The list of IP address prefixes."
},
"state": {
"type": "string",
"readOnly": true,
"description": "The state of the service tag."
}
},
"description": "Properties of the service tag information."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1496,11 +1496,29 @@
},
"privateEndpointNetworkPolicies": {
"type": "string",
"description": "Enable or Disable apply network policies on private end point in the subnet."
"default": "Enabled",
"description": "Enable or Disable apply network policies on private end point in the subnet.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "VirtualNetworkPrivateEndpointNetworkPolicies",
"modelAsString": true
}
},
"privateLinkServiceNetworkPolicies": {
"type": "string",
"description": "Enable or Disable apply network policies on private link service in the subnet."
"default": "Enabled",
"description": "Enable or Disable apply network policies on private link service in the subnet.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "VirtualNetworkPrivateLinkServiceNetworkPolicies",
"modelAsString": true
}
}
},
"description": "Properties of the subnet."
Expand Down Expand Up @@ -1574,6 +1592,11 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the virtual network peering resource."
},
"resourceGuid": {
"readOnly": true,
"type": "string",
"description": "The resourceGuid property of the Virtual Network peering resource."
}
},
"description": "Properties of the virtual network peering."
Expand All @@ -1593,6 +1616,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand All @@ -1617,6 +1644,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand Down Expand Up @@ -1849,6 +1880,10 @@
"type": "string"
},
"description": "Contains other available private IP addresses if the asked for address is taken."
},
"isPlatformReserved": {
"type": "boolean",
"description": "Private IP address platform reserved."
}
},
"description": "Response for CheckIPAddressAvailability API service call."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand Down Expand Up @@ -1153,6 +1157,38 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the network interface resource."
},
"nicType": {
"type": "string",
"default": "Standard",
"description": "Type of Network Interface resource.",
"enum": [
"Standard",
"Elastic"
],
"x-ms-enum": {
"name": "NetworkInterfaceNicType",
"modelAsString": true
}
},
"privateLinkService": {
"$ref": "./privateLinkService.json#/definitions/PrivateLinkService",
"description": "Privatelinkservice of the network interface resource."
},
"migrationPhase": {
"type": "string",
"description": "Migration phase of Network Interface resource.",
"enum": [
"None",
"Prepare",
"Commit",
"Abort",
"Committed"
],
"x-ms-enum": {
"name": "NetworkInterfaceMigrationPhase",
"modelAsString": true
}
}
},
"description": "NetworkInterface properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,33 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the public IP address resource."
},
"servicePublicIPAddress": {
"$ref": "#/definitions/PublicIPAddress",
"description": "The service public IP address of the public IP address resource."
},
"natGateway": {
"$ref": "./natGateway.json#/definitions/NatGateway",
"description": "The NatGateway for the Public IP address."
},
"migrationPhase": {
"type": "string",
"description": "Migration phase of Public IP Address.",
"enum": [
"None",
"Prepare",
"Commit",
"Abort",
"Committed"
],
"x-ms-enum": {
"name": "PublicIpAddressMigrationPhase",
"modelAsString": true
}
},
"linkedPublicIPAddress": {
"$ref": "#/definitions/PublicIPAddress",
"description": "The source Public IP Address (IPv6) that links to this address (IPv4)."
}
},
"description": "Public IP address properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the public IP prefix resource."
},
"natGateway": {
"$ref": "./natGateway.json#/definitions/NatGateway",
"description": "NatGateway of Public IP Prefix."
}
},
"description": "Public IP prefix properties."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand Down Expand Up @@ -1496,11 +1500,36 @@
},
"privateEndpointNetworkPolicies": {
"type": "string",
"description": "Enable or Disable apply network policies on private end point in the subnet."
"default": "Enabled",
"description": "Enable or Disable apply network policies on private end point in the subnet.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "VirtualNetworkPrivateEndpointNetworkPolicies",
"modelAsString": true
}
},
"privateLinkServiceNetworkPolicies": {
"type": "string",
"description": "Enable or Disable apply network policies on private link service in the subnet."
"default": "Enabled",
"description": "Enable or Disable apply network policies on private link service in the subnet.",
"enum": [
"Enabled",
"Disabled"
],
"x-ms-enum": {
"name": "VirtualNetworkPrivateLinkServiceNetworkPolicies",
"modelAsString": true
}
},
"applicationGatewayIpConfigurations": {
"type": "array",
"items": {
"$ref": "./applicationGateway.json#/definitions/ApplicationGatewayIPConfiguration"
},
"description": "Application gateway IP configurations of virtual network resource."
}
},
"description": "Properties of the subnet."
Expand Down Expand Up @@ -1574,6 +1603,15 @@
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
"description": "The provisioning state of the virtual network peering resource."
},
"doNotVerifyRemoteGateways": {
"type": "boolean",
"description": "If we need to verify the provisioning state of the remote gateway."
},
"resourceGuid": {
"readOnly": true,
"type": "string",
"description": "The resourceGuid property of the Virtual Network Peering resource."
}
},
"description": "Properties of the virtual network peering."
Expand All @@ -1593,6 +1631,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand All @@ -1617,6 +1659,10 @@
"readOnly": true,
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated."
},
"type": {
"type": "string",
"description": "Resource type."
}
},
"allOf": [
Expand Down

0 comments on commit ec98b0d

Please sign in to comment.