Skip to content

Commit

Permalink
data: regenerating based on the latest Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
hc-github-team-tf-azure committed Dec 14, 2023
1 parent f9d627a commit cacc26e
Show file tree
Hide file tree
Showing 44 changed files with 1,428 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"apiVersion": "2020-04-01-preview",
"isPreview": true,
"generate": true,
"resources": [
"RoleAssignments"
],
"source": "Azure/azure-rest-api-specs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "PrincipalType",
"type": "String",
"values": [
{
"key": "ForeignGroup",
"value": "ForeignGroup"
},
{
"key": "Group",
"value": "Group"
},
{
"key": "ServicePrincipal",
"value": "ServicePrincipal"
},
{
"key": "User",
"value": "User"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "RoleAssignment",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "id",
"name": "Id",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "name",
"name": "Name",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"referenceName": "RoleAssignmentPropertiesWithScope"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "type",
"name": "Type",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "RoleAssignmentCreateParameters",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "properties",
"name": "Properties",
"objectDefinition": {
"type": "Reference",
"referenceName": "RoleAssignmentProperties"
},
"optional": false,
"required": true,
"description": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"name": "RoleAssignmentProperties",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "canDelegate",
"name": "CanDelegate",
"objectDefinition": {
"type": "Boolean",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "condition",
"name": "Condition",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "conditionVersion",
"name": "ConditionVersion",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "delegatedManagedIdentityResourceId",
"name": "DelegatedManagedIdentityResourceId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "description",
"name": "Description",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "principalId",
"name": "PrincipalId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": false,
"required": true,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "principalType",
"name": "PrincipalType",
"objectDefinition": {
"type": "Reference",
"referenceName": "PrincipalType"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "roleDefinitionId",
"name": "RoleDefinitionId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": false,
"required": true,
"description": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"name": "RoleAssignmentPropertiesWithScope",
"fields": [
{
"containsDiscriminatedTypeValue": false,
"jsonName": "canDelegate",
"name": "CanDelegate",
"objectDefinition": {
"type": "Boolean",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "condition",
"name": "Condition",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "conditionVersion",
"name": "ConditionVersion",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "createdBy",
"name": "CreatedBy",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "createdOn",
"name": "CreatedOn",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "delegatedManagedIdentityResourceId",
"name": "DelegatedManagedIdentityResourceId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "description",
"name": "Description",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "principalId",
"name": "PrincipalId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "principalType",
"name": "PrincipalType",
"objectDefinition": {
"type": "Reference",
"referenceName": "PrincipalType"
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "roleDefinitionId",
"name": "RoleDefinitionId",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "scope",
"name": "Scope",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "updatedBy",
"name": "UpdatedBy",
"objectDefinition": {
"type": "String",
"referenceName": null
},
"optional": true,
"required": false,
"description": ""
},
{
"containsDiscriminatedTypeValue": false,
"jsonName": "updatedOn",
"name": "UpdatedOn",
"objectDefinition": {
"type": "DateTime",
"referenceName": null,
"dateFormat": "RFC3339"
},
"optional": true,
"required": false,
"description": ""
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Create",
"contentType": "application/json; charset=utf-8",
"expectedStatusCodes": [
201
],
"longRunning": false,
"httpMethod": "PUT",
"resourceIdName": "ScopedRoleAssignmentId",
"requestObject": {
"type": "Reference",
"referenceName": "RoleAssignmentCreateParameters"
},
"responseObject": {
"type": "Reference",
"referenceName": "RoleAssignment"
}
}
Loading

0 comments on commit cacc26e

Please sign in to comment.