Skip to content

Migrate Resources from generation to main #23741

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

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion src/Resources/Authorization.Autorest/Az.Authorization.psd1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
GUID = 'ef9a8a67-ab5b-4d21-a3ff-15127e64527d'
GUID = '90ee7f74-51af-4e60-ae68-70c82d6f9606'
RootModule = './Az.Authorization.psm1'
ModuleVersion = '0.1.0'
CompatiblePSEditions = 'Core', 'Desktop'
Expand Down
23 changes: 14 additions & 9 deletions src/Resources/Authorization.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,22 @@ For information on how to develop for `Az.Authorization`, see [how-to.md](how-to
> see https://aka.ms/autorest

``` yaml
commit: 0023223a23b7a8c1693f7d88678787e50fee6c96
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/EligibleChildResources.json

- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentSchedule.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleInstance.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleAssignmentScheduleRequest.json

- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json
- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilitySchedule.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleInstance.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleEligibilityScheduleRequest.json

- https://github.com/Azure/azure-rest-api-specs/blob/0023223a23b7a8c1693f7d88678787e50fee6c96/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json
- https://github.com/Azure/azure-rest-api-specs/blob/23800927d61999e655f6fd7fd054deaa80385683/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicy.json
- $(repo)/specification/authorization/resource-manager/Microsoft.Authorization/preview/2020-10-01-preview/RoleManagementPolicyAssignment.json

root-module-name: $(prefix).Resources
title: Authorization
Expand All @@ -55,6 +56,10 @@ identity-correction-for-post: true
resourcegroup-append: true
default-exclude-tableview-properties: false

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
# Swaager bug: The scope should be readonly according to the server response.
- from: swagger-document
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"resourceType": "roleAssignmentScheduleInstances",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleAssignmentScheduleInstance",
"description": "Gets the specified role assignment schedule instance.",
"path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleassignmentscheduleinstance"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Gets the specified role assignment schedule instance.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleAssignmentScheduleInstanceName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"resourceType": "roleAssignmentScheduleRequests",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleAssignmentScheduleRequest",
"description": "Get the specified role assignment schedule request.",
"path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleassignmentschedulerequest"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Get the specified role assignment schedule request.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleAssignmentScheduleRequestName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
},
{
"name": "Stop-AzRoleAssignmentScheduleRequest",
"description": "Cancels a pending role assignment schedule request.",
"path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/stop-azroleassignmentschedulerequest"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Cancels a pending role assignment schedule request.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleAssignmentScheduleRequestName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"resourceType": "roleAssignmentSchedules",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleAssignmentSchedule",
"description": "Get the specified role assignment schedule for a resource scope",
"path": "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleassignmentschedule"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Get the specified role assignment schedule for a resource scope",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleAssignmentScheduleName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"resourceType": "roleEligibilityScheduleInstances",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleEligibilityScheduleInstance",
"description": "Gets the specified role eligibility schedule instance.",
"path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/{roleEligibilityScheduleInstanceName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleeligibilityscheduleinstance"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Gets the specified role eligibility schedule instance.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleEligibilityScheduleInstanceName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"resourceType": "roleEligibilityScheduleRequests",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleEligibilityScheduleRequest",
"description": "Get the specified role eligibility schedule request.",
"path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleeligibilityschedulerequest"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Get the specified role eligibility schedule request.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleEligibilityScheduleRequestName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
},
{
"name": "Stop-AzRoleEligibilityScheduleRequest",
"description": "Cancels a pending role eligibility schedule request.",
"path": "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/cancel",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/stop-azroleeligibilityschedulerequest"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Cancels a pending role eligibility schedule request.",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleEligibilityScheduleRequestName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"resourceType": "roleEligibilitySchedules",
"apiVersion": "2020-10-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources"
},
"commands": [
{
"name": "Get-AzRoleEligibilitySchedule",
"description": "Get the specified role eligibility schedule for a resource scope",
"path": "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules/{roleEligibilityScheduleName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.resources/get-azroleeligibilityschedule"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-Scope <String>"
]
}
]
},
"examples": [
{
"description": "Get the specified role eligibility schedule for a resource scope",
"parameters": [
{
"name": "-Name",
"value": "[Path.roleEligibilityScheduleName]"
},
{
"name": "-Scope",
"value": "[Path.scope]"
}
]
}
]
}
]
}
Loading