Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnectionListResult"
"$ref": "./privatelinks.json#/definitions/PrivateEndpointConnectionListResult"
}
},
"default": {
Expand Down Expand Up @@ -716,14 +716,14 @@
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/parameters/PrivateEndpointConnectionName"
"$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName"
}
],
"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnection"
"$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection"
}
},
"default": {
Expand Down Expand Up @@ -759,23 +759,23 @@
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/parameters/PrivateEndpointConnectionName"
"$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName"
},
{
"name": "privateEndpointConnection",
"in": "body",
"description": "The parameters for creating a private endpoint connection.",
"required": true,
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnection"
"$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection"
}
}
],
"responses": {
"201": {
"description": "The request was successful; the operation will complete asynchronously.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateEndpointConnection"
"$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection"
}
},
"default": {
Expand Down Expand Up @@ -815,7 +815,7 @@
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/parameters/PrivateEndpointConnectionName"
"$ref": "./privatelinks.json#/parameters/PrivateEndpointConnectionName"
}
],
"responses": {
Expand Down Expand Up @@ -1249,7 +1249,7 @@
"readOnly": true
},
"publicNetworkAccess": {
"description": "Whether or not public network access is allowed for the container registry.",
"description": "Whether or not public network access is allowed for the account.",
"default": "Enabled",
"enum": [
"Enabled",
Expand All @@ -1260,6 +1260,13 @@
"name": "PublicNetworkAccess",
"modelAsString": true
}
},
"privateEndpointConnections": {
"description": "List of private endpoint connections associated with the account.",
"type": "array",
"items": {
"$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection"
}
}
}
},
Expand Down Expand Up @@ -1489,7 +1496,7 @@
"type": "object",
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkResourceProperties"
"$ref": "./privatelinks.json#/definitions/PrivateLinkResourceProperties"
}
],
"properties": {
Expand Down Expand Up @@ -1636,7 +1643,7 @@
},
"remotePrivateLinkServiceConnectionState": {
"description": "Remote private link service connection state",
"$ref": "../../../../../common-types/resource-management/v3/privatelinks.json#/definitions/PrivateLinkServiceConnectionState"
"$ref": "./privatelinks.json#/definitions/PrivateLinkServiceConnectionState"
},
"remotePrivateEndpointConnection": {
"description": "Remote private endpoint connection details.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Accepted",
"hostName": "contoso.api.adu.microsoft.com"
"hostName": "contoso.api.adu.microsoft.com",
"privateEndpointConnections": []
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
"hostName": "contoso.api.adu.microsoft.com",
"privateEndpointConnections": []
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
"hostName": "contoso.api.adu.microsoft.com",
"privateEndpointConnections": []
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
"hostName": "contoso.api.adu.microsoft.com",
"privateEndpointConnections": []
},
"tags": {
"tagKey": "tagValue"
Expand All @@ -39,7 +40,8 @@
},
"properties": {
"provisioningState": "Created",
"hostName": "contoso.api.adu.microsoft.com"
"hostName": "contoso.api.adu.microsoft.com",
"privateEndpointConnections": []
},
"tags": {
"tagKey": "tagValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
"status": "Approved",
"description": "Auto-Approved",
"actionsRequired": "None"
}
},
"groupIds": [
"groupId"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"status": "Approved",
"description": "Auto-Approved",
"actionsRequired": "None"
}
},
"groupIds": [
"groupId"
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
"status": "Approved",
"description": "Auto-Approved",
"actionsRequired": "None"
}
},
"groupIds": [
"groupId"
]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
{
"swagger": "2.0",
"info": {
"version": "2020-03-01-preview",
"title": "Common private link types"
},
"paths": {},
"definitions": {
"PrivateEndpoint": {
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "The ARM identifier for Private Endpoint"
}
},
"description": "The Private Endpoint resource."
},
"PrivateEndpointConnection": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
"x-ms-client-flatten": true,
"description": "Resource properties."
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource"
}
],
"description": "The Private Endpoint Connection resource."
},
"PrivateEndpointConnectionProperties": {
"type": "object",
"properties": {
"privateEndpoint": {
"$ref": "#/definitions/PrivateEndpoint",
"description": "The resource of private end point."
},
"privateLinkServiceConnectionState": {
"$ref": "#/definitions/PrivateLinkServiceConnectionState",
"description": "A collection of information about the state of the connection between service consumer and provider."
},
"groupIds": {
"type": "array",
"description": "Array of group IDs.",
"items": {
"type": "string"
}
},
"provisioningState": {
"$ref": "#/definitions/PrivateEndpointConnectionProvisioningState",
"description": "The provisioning state of the private endpoint connection resource."
}
},
"required": [
"privateLinkServiceConnectionState"
],
"description": "Properties of the PrivateEndpointConnectProperties."
},
"PrivateLinkServiceConnectionState": {
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/PrivateEndpointServiceConnectionStatus",
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
},
"description": {
"type": "string",
"description": "The reason for approval/rejection of the connection."
},
"actionsRequired": {
"type": "string",
"description": "A message indicating if changes on the service provider require any updates on the consumer."
}
},
"description": "A collection of information about the state of the connection between service consumer and provider."
},
"PrivateEndpointServiceConnectionStatus": {
"type": "string",
"description": "The private endpoint connection status.",
"enum": [
"Pending",
"Approved",
"Rejected"
],
"x-ms-enum": {
"name": "PrivateEndpointServiceConnectionStatus",
"modelAsString": true
}
},
"PrivateEndpointConnectionProvisioningState": {
"type": "string",
"readOnly": true,
"description": "The current provisioning state.",
"enum": [
"Succeeded",
"Creating",
"Deleting",
"Failed"
],
"x-ms-enum": {
"name": "PrivateEndpointConnectionProvisioningState",
"modelAsString": true
}
},
"PrivateLinkResource": {
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/PrivateLinkResourceProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/Resource"
}
],
"description": "A private link resource"
},
"PrivateLinkResourceProperties": {
"type": "object",
"properties": {
"groupId": {
"description": "The private link resource group id.",
"type": "string",
"readOnly": true
},
"requiredMembers": {
"description": "The private link resource required member names.",
"type": "array",
"items": {
"type": "string"
},
"readOnly": true
},
"requiredZoneNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "The private link resource Private link DNS zone name."
}
},
"description": "Properties of a private link resource."
},
"PrivateEndpointConnectionListResult": {
"type": "object",
"properties": {
"value": {
"type": "array",
"description": "Array of private endpoint connections",
"items": {
"$ref": "#/definitions/PrivateEndpointConnection"
}
}
},
"description": "List of private endpoint connection associated with the specified storage account"
}
},
"parameters": {
"PrivateEndpointConnectionName": {
"name": "privateEndpointConnectionName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the private endpoint connection associated with the Azure resource",
"x-ms-parameter-location": "method"
}
}
}