Skip to content

Commit

Permalink
Add Swagger specs for ARE[Azure Runtime Environment] (#23988)
Browse files Browse the repository at this point in the history
* First Commit of Stable version

* Add Swagger file for ARE

* rename name to packageName

* fix Package operation examples

* Fixed Avacado errors

* Fixed duplicate schema

* Fix Duplicate schema erors.

* Fix Duplicate schema erors.

* Fix Duplicate Schema error

* Fix Errors

* Testing

* Fix errors

* Removed uuid format for PrincipalId in Identity properties

* Fix example for ModelValidation Failure

* Re-run Go SDK

---------

Co-authored-by: Sushil Upadhyay <supadhyay@microsoft.com>
Co-authored-by: Alancere <804873052@qq.com>
Co-authored-by: mahakjain314 <50352900+mahakjain314@users.noreply.github.com>
  • Loading branch information
4 people authored and jnlycklama committed Nov 8, 2023
1 parent 2e6751f commit 2f88bb8
Show file tree
Hide file tree
Showing 236 changed files with 44,474 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
{
"swagger": "2.0",
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"info": {
"version": "2018-06-10",
"title": "Common types"
},
"paths": {},
"definitions": {
"PrivateEndpointConnection": {
"description": "A private endpoint connection",
"type": "object",
"properties": {
"properties": {
"$ref": "#/definitions/PrivateEndpointConnectionProperties",
"description": "Resource properties.",
"x-ms-client-flatten": true
}
},
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
}
]
},
"PrivateEndpointConnectionProperties": {
"description": "Properties of a private endpoint connection.",
"type": "object",
"properties": {
"privateEndpoint": {
"$ref": "#/definitions/PrivateEndpointProperty",
"description": "Private endpoint which the connection belongs to."
},
"groupIds": {
"$ref": "#/definitions/GroupIdsProperty",
"description": "Gets the groupIds."
},
"privateLinkServiceConnectionState": {
"$ref": "#/definitions/PrivateLinkServiceConnectionStateProperty",
"description": "Connection State of the Private Endpoint Connection."
}
}
},
"PrivateEndpointProperty": {
"type": "object",
"description": "Private endpoint which the connection belongs to.",
"properties": {
"id": {
"type": "string",
"description": "Resource id of the private endpoint."
}
}
},
"GroupIdsProperty": {
"type": "array",
"items": {
"type": "string"
},
"description": "Gets the groupIds."
},
"PrivateLinkServiceConnectionStateProperty": {
"type": "object",
"description": "Connection State of the Private Endpoint Connection.",
"properties": {
"status": {
"type": "string",
"description": "The private link service connection status."
},
"description": {
"type": "string",
"description": "The private link service connection description."
},
"actionsRequired": {
"type": "string",
"description": "Any action that is required beyond basic workflow (approve/ reject/ disconnect)",
"readOnly": true
}
}
}
},
"parameters": {
"RuntimeEnvironmentNameParameter": {
"name": "runtimeEnvironmentName",
"description": "The name of the Runtime Environment.",
"type": "string",
"required": true,
"in": "path",
"x-ms-parameter-location": "method",
"pattern": "^[a-zA-Z][a-zA-Z-_0-9]*$"
},
"AutomationAccountNameParameter": {
"name": "automationAccountName",
"description": "The name of the automation account.",
"type": "string",
"required": true,
"in": "path",
"x-ms-parameter-location": "method",
"pattern": "^[a-zA-Z][a-zA-Z-_0-9]*$"
}
}
}
Loading

0 comments on commit 2f88bb8

Please sign in to comment.