-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding PowerPlatform swagger. #10651
Merged
Merged
Changes from 40 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
cd785e5
PowerPlatform RP specifications
rapatank e151577
PowerPlatform changes
rapatank 78e46e4
Updating powerplatform json
rapatank 427ee1a
Update definitions.json
rapatank ebc1721
Updating the schema
rapatank 11a7c98
Updated the schema.
rapatank 2df5362
Updates to schema
rapatank b9a8313
Schema update
rapatank 96d3724
Schema update
rapatank ef80aa7
Example update
rapatank 9176284
Update description
rapatank 13bba62
Merge branch 'master' of https://github.com/Azure/azure-rest-api-spec…
rapatank 3d29651
Updating the swagger
rapatank a1860b6
Updating the swagger definition
rapatank 2702186
Swagger update.
rapatank 744dca9
Swagger updates
rapatank 727a2d4
Adding private link changes.
rapatank 54d2857
Updates to readme.md
rapatank 6be2038
Private link updates
rapatank cf306c6
Schema update
rapatank d056bb8
private link update
rapatank d980951
response update
rapatank 274ff3f
Added systemData
rapatank e1b4b31
Updated description.
rapatank 0294be7
Adding subnet configuration
rapatank ee9c034
readme update.
rapatank 1a08032
Adding systemData.
rapatank e9ead83
Updated example
rapatank 0f48cd1
Update
rapatank 830777c
Update to systemData
rapatank 13d5d5b
Updates
rapatank 5873c3b
Updates
rapatank 647588a
Updated the version of common types
rapatank 60207f6
readme.go update
rapatank d2849d2
Update
rapatank a2ca562
Updated version
rapatank f8a6e58
version update
rapatank 4f0d9be
update
rapatank 0d0057d
update
rapatank dce442b
Updated "enterprisePromise" to "enterprisePolicy".
rapatank 28a766b
Updates
rapatank b4b4459
Updates
rapatank eae057d
Updating to use common type
rapatank 5e23a00
updates
rapatank File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule azure-rest-api-specs
added at
545a9a
213 changes: 213 additions & 0 deletions
213
...ication/powerplatform/resource-manager/Microsoft.PowerPlatform/common/v1/definitions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,213 @@ | ||
{ | ||
"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": "v1", | ||
"title": "Common types" | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"ErrorResponse": { | ||
"description": "ARM error response body.", | ||
"type": "object", | ||
"properties": { | ||
"error": { | ||
"$ref": "#/definitions/ErrorResponseBody", | ||
"description": "Details about the error." | ||
} | ||
} | ||
}, | ||
"ErrorResponseBody": { | ||
"properties": { | ||
"code": { | ||
"type": "string", | ||
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically." | ||
}, | ||
"message": { | ||
"type": "string", | ||
"description": "A message describing the error, intended to be suitable for display in a user interface." | ||
}, | ||
"target": { | ||
"type": "string", | ||
"description": "The target of the particular error. For example, the name of the property in error." | ||
} | ||
}, | ||
"description": "An error response from the PowerPlatform service." | ||
}, | ||
"Resource": { | ||
"description": "The core properties of ARM resources", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "ARM resource id of the EnterprisePolicy." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "Name of the EnterprisePolicy." | ||
}, | ||
"location": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "Region where the EnterprisePolicy is located." | ||
}, | ||
"type": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The type of the resource." | ||
} | ||
}, | ||
"x-ms-azure-resource": true | ||
}, | ||
"TrackedResource": { | ||
"description": "The resource model definition for a ARM tracked top level resource", | ||
"type": "object", | ||
"properties": { | ||
"tags": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"x-ms-mutability": [ | ||
"read", | ||
"create", | ||
"update" | ||
], | ||
"description": "Resource tags." | ||
}, | ||
"location": { | ||
"type": "string", | ||
"x-ms-mutability": [ | ||
"read", | ||
"create" | ||
], | ||
"description": "The Azure Region where the resource lives" | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Resource" | ||
} | ||
] | ||
}, | ||
"ProxyResource": { | ||
"description": "ARM proxy resource.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Resource" | ||
} | ||
], | ||
"properties": {} | ||
}, | ||
"Operation": { | ||
"description": "PowerPlatform REST API operation", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"description": "Operation name: For ex. providers/Microsoft.PowerPlatform/enterprisePolicies/write or read", | ||
"type": "string" | ||
}, | ||
"isDataAction": { | ||
"description": "Indicates whether the operation is a data action", | ||
"type": "string" | ||
}, | ||
"display": { | ||
"properties": { | ||
"provider": { | ||
"description": "Service provider: Microsoft.PowerPlatform", | ||
"type": "string" | ||
}, | ||
"resource": { | ||
"description": "Resource on which the operation is performed.", | ||
"type": "string" | ||
}, | ||
"operation": { | ||
"description": "Operation type: Read, write, delete, etc.", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"description": "Description about operation.", | ||
"type": "string" | ||
} | ||
}, | ||
"description": "Provider, Resource, Operation and description values." | ||
}, | ||
"properties": { | ||
"properties": { | ||
"statusCode": { | ||
"description": "Service provider: Microsoft.PowerPlatform", | ||
"type": "string" | ||
} | ||
}, | ||
"x-ms-client-flatten": true, | ||
"description": "Provider, Resource, Operation and description values." | ||
} | ||
} | ||
}, | ||
"OperationList": { | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Operation" | ||
}, | ||
"description": "List of PowerPlatform operations supported by the PowerPlatform resource provider." | ||
} | ||
}, | ||
"description": "The response model for the list of PowerPlatform operations" | ||
} | ||
}, | ||
"parameters": { | ||
"SubscriptionIdParameter": { | ||
"name": "subscriptionId", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "Subscription ID which uniquely identifies Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." | ||
}, | ||
"ApiVersionParameter": { | ||
"name": "api-version", | ||
"in": "query", | ||
"required": true, | ||
"type": "string", | ||
"description": "Client Api Version." | ||
}, | ||
"ResourceGroupNameParameter": { | ||
"name": "resourceGroupName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"pattern": "^[-\\w\\._]+$", | ||
"description": "The resource group name.", | ||
"x-ms-parameter-location": "method" | ||
}, | ||
"EnterprisePolicyNameParameter": { | ||
"name": "enterprisePolicyName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "EnterprisePolicy for the Microsoft Azure subscription.", | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As commented in different file; these should refer to global common definitions rather than copying locally.