Skip to content

Commit

Permalink
Add network rule set properties, empty resource group validation (#4506)
Browse files Browse the repository at this point in the history
  • Loading branch information
djyou authored and sergey-shandar committed Nov 30, 2018
1 parent 2f4118b commit 786508d
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@
"type": "integer"
},
"digest": {
"description": "The digest of the content, as defined by the Registry V2 HTTP API Specificiation.",
"description": "The digest of the content, as defined by the Registry V2 HTTP API Specification.",
"type": "string"
},
"length": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@
"description": "The name of the resource group to which the container registry belongs.",
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"RegistryNameParameter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,10 @@
"storageAccount": {
"$ref": "#/definitions/StorageAccountProperties",
"description": "The properties of the storage account for the container registry. Only applicable to Classic SKU."
},
"networkRuleSet": {
"$ref": "#/definitions/NetworkRuleSet",
"description": "The network rule set for a container registry."
}
}
},
Expand Down Expand Up @@ -1535,6 +1539,48 @@
}
}
},
"NetworkRuleSet": {
"description": "The network rule set for a container registry.",
"required": [
"defaultAction"
],
"type": "object",
"properties": {
"defaultAction": {
"description": "The default action of allow or deny when no other rules match.",
"default": "Allow",
"enum": [
"Allow",
"Deny"
],
"type": "string",
"x-ms-enum": {
"name": "DefaultAction",
"modelAsString": true
}
},
"virtualNetworkRules": {
"description": "The virtual network rules.",
"type": "array",
"items": {
"$ref": "#/definitions/VirtualNetworkRule"
}
}
}
},
"VirtualNetworkRule": {
"description": "The virtual network rule for a container registry.",
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"description": "Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.",
"type": "string"
}
}
},
"RegistryUpdateParameters": {
"description": "The parameters for updating a container registry.",
"type": "object",
Expand Down Expand Up @@ -1568,6 +1614,10 @@
"storageAccount": {
"$ref": "#/definitions/StorageAccountProperties",
"description": "The parameters of a storage account for the container registry. Only applicable to Classic SKU. If specified, the storage account must be in the same physical location as the container registry."
},
"networkRuleSet": {
"$ref": "#/definitions/NetworkRuleSet",
"description": "The network rule set for a container registry."
}
}
},
Expand Down Expand Up @@ -2370,6 +2420,7 @@
"description": "The name of the resource group to which the container registry belongs.",
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"RegistryNameParameter": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@
}
},
"Task": {
"description": "The task that has the ARM resource and task properties. \r\nThe task will have all information to schedule a run against it.",
"description": "The task that has the ARM resource and task properties. \r\nThe task will have all information to schedule a run against it.",
"type": "object",
"allOf": [
{
Expand Down Expand Up @@ -2194,6 +2194,7 @@
"description": "The name of the resource group to which the container registry belongs.",
"required": true,
"type": "string",
"minLength": 1,
"x-ms-parameter-location": "method"
},
"RegistryNameParameter": {
Expand Down

0 comments on commit 786508d

Please sign in to comment.