Skip to content

Commit

Permalink
acr: updating existing version to fix swagger quality issue in s360 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yugangw-msft authored Feb 2, 2021
1 parent 8d7208b commit 7b3e3d4
Show file tree
Hide file tree
Showing 8 changed files with 216 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@
}
}
},
"x-ms-examples": {
"OperationList": {
"$ref": "./examples/OperationList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -2338,6 +2343,13 @@
"items": {
"$ref": "#/definitions/OperationMetricSpecificationDefinition"
}
},
"logSpecifications": {
"description": "A list of Azure Monitoring log definitions.",
"type": "array",
"items": {
"$ref": "#/definitions/OperationLogSpecificationDefinition"
}
}
}
},
Expand Down Expand Up @@ -2371,6 +2383,24 @@
}
}
},
"OperationLogSpecificationDefinition": {
"description": "The definition of Azure Monitoring log.",
"type": "object",
"properties": {
"name": {
"description": "Log name.",
"type": "string"
},
"displayName": {
"description": "Log display name.",
"type": "string"
},
"blobDuration": {
"description": "Log blob duration.",
"type": "string"
}
}
},
"PipelineRun": {
"description": "An object that represents a pipeline run for a container registry.",
"type": "object",
Expand Down Expand Up @@ -2855,6 +2885,19 @@
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"networkRuleBypassOptions": {
"description": "Whether to allow trusted Azure services to access a network restricted registry.",
"default": "AzureServices",
"enum": [
"AzureServices",
"None"
],
"type": "string",
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -3134,6 +3177,10 @@
"description": "The parameters for updating a container registry.",
"type": "object",
"properties": {
"identity": {
"$ref": "#/definitions/IdentityProperties",
"description": "The identity of the container registry."
},
"tags": {
"description": "The tags for the container registry.",
"type": "object",
Expand All @@ -3145,10 +3192,6 @@
"$ref": "#/definitions/Sku",
"description": "The SKU of the container registry."
},
"identity": {
"$ref": "#/definitions/IdentityProperties",
"description": "The identity of the container registry."
},
"properties": {
"$ref": "#/definitions/RegistryPropertiesUpdateParameters",
"description": "The properties that the container registry will be updated with.",
Expand Down Expand Up @@ -3191,6 +3234,19 @@
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"networkRuleBypassOptions": {
"description": "Whether to allow trusted Azure services to access a network restricted registry.",
"default": "AzureServices",
"enum": [
"AzureServices",
"None"
],
"type": "string",
"x-ms-enum": {
"name": "NetworkRuleBypassOptions",
"modelAsString": true
}
}
}
},
Expand Down Expand Up @@ -3585,14 +3641,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down Expand Up @@ -3654,14 +3712,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ContainerRegistry/locations/deleteVirtualNetworkOrSubnets/action",
"display": {
"provider": "Microsoft ContainerRegistry",
"resource": "",
"operation": "Delete virtual network or subnets notifications",
"description": "Notifies Microsoft.ContainerRegistry that virtual network or subnet is being deleted"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,11 @@
}
}
},
"x-ms-examples": {
"OperationList": {
"$ref": "./examples/OperationList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -3534,6 +3539,13 @@
"items": {
"$ref": "#/definitions/OperationMetricSpecificationDefinition"
}
},
"logSpecifications": {
"description": "A list of Azure Monitoring log definitions.",
"type": "array",
"items": {
"$ref": "#/definitions/OperationLogSpecificationDefinition"
}
}
}
},
Expand Down Expand Up @@ -3567,6 +3579,24 @@
}
}
},
"OperationLogSpecificationDefinition": {
"description": "The definition of Azure Monitoring log.",
"type": "object",
"properties": {
"name": {
"description": "Log name.",
"type": "string"
},
"displayName": {
"description": "Log display name.",
"type": "string"
},
"blobDuration": {
"description": "Log blob duration.",
"type": "string"
}
}
},
"PipelineRun": {
"description": "An object that represents a pipeline run for a container registry.",
"type": "object",
Expand Down Expand Up @@ -4356,6 +4386,10 @@
"description": "The parameters for updating a container registry.",
"type": "object",
"properties": {
"identity": {
"$ref": "#/definitions/IdentityProperties",
"description": "The identity of the container registry."
},
"tags": {
"description": "The tags for the container registry.",
"type": "object",
Expand All @@ -4367,10 +4401,6 @@
"$ref": "#/definitions/Sku",
"description": "The SKU of the container registry."
},
"identity": {
"$ref": "#/definitions/IdentityProperties",
"description": "The identity of the container registry."
},
"properties": {
"$ref": "#/definitions/RegistryPropertiesUpdateParameters",
"description": "The properties that the container registry will be updated with.",
Expand Down Expand Up @@ -5200,14 +5230,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down Expand Up @@ -5269,14 +5301,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-11-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ContainerRegistry/locations/deleteVirtualNetworkOrSubnets/action",
"display": {
"provider": "Microsoft ContainerRegistry",
"resource": "",
"operation": "Delete virtual network or subnets notifications",
"description": "Notifies Microsoft.ContainerRegistry that virtual network or subnet is being deleted"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
}
}
},
"x-ms-examples": {
"OperationList": {
"$ref": "./examples/OperationList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2017-10-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.ContainerRegistry/operations/read",
"display": {
"provider": "",
"resource": "",
"operation": "",
"description": ""
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@
}
}
},
"x-ms-examples": {
"OperationList": {
"$ref": "./examples/OperationList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -1992,14 +1997,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down Expand Up @@ -2061,14 +2068,16 @@
"properties": {
"serviceUri": {
"description": "The service URI for the webhook to post notifications.",
"type": "string"
"type": "string",
"x-ms-secret": true
},
"customHeaders": {
"description": "Custom headers that will be added to the webhook notifications.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"x-ms-secret": true
},
"status": {
"description": "The status of the webhook at the time the operation was called.",
Expand Down
Loading

0 comments on commit 7b3e3d4

Please sign in to comment.