From 9722b1e82af78cba0ddb354b19aa9e0497259e9b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 2 Oct 2024 18:04:51 +0000 Subject: [PATCH] CodeGen from PR 30833 in Azure/azure-rest-api-specs Merge f367f850a67f99ffa5d92fe0aa9b7d48fb0a24c6 into a9183ee333c9a2ef163fc90e4116d72771401e16 --- common/config/rush/pnpm-lock.yaml | 9 +- .../arm-authorization/CHANGELOG.md | 317 +- sdk/authorization/arm-authorization/LICENSE | 2 +- .../arm-authorization/_meta.json | 8 +- .../arm-authorization/package.json | 75 +- .../review/arm-authorization.api.md | 52 +- .../src/authorizationManagementClient.ts | 161 +- .../arm-authorization/src/lroImpl.ts | 6 +- .../arm-authorization/src/models/index.ts | 426 +- .../arm-authorization/src/models/mappers.ts | 6098 +++++++++-------- .../src/models/parameters.ts | 342 +- .../accessReviewDefaultSettingsOperations.ts | 33 +- .../accessReviewHistoryDefinitionInstance.ts | 22 +- .../accessReviewHistoryDefinitionInstances.ts | 48 +- ...accessReviewHistoryDefinitionOperations.ts | 37 +- .../accessReviewHistoryDefinitions.ts | 57 +- .../accessReviewInstanceContactedReviewers.ts | 48 +- .../accessReviewInstanceDecisions.ts | 48 +- .../accessReviewInstanceMyDecisions.ts | 82 +- .../accessReviewInstanceOperations.ts | 80 +- .../src/operations/accessReviewInstances.ts | 79 +- ...essReviewInstancesAssignedForMyApproval.ts | 63 +- .../accessReviewScheduleDefinitions.ts | 104 +- ...cheduleDefinitionsAssignedForMyApproval.ts | 39 +- .../src/operations/alertConfigurations.ts | 71 +- .../src/operations/alertDefinitions.ts | 58 +- .../src/operations/alertIncidents.ts | 81 +- .../src/operations/alertOperation.ts | 19 +- .../src/operations/alerts.ts | 162 +- .../src/operations/classicAdministrators.ts | 37 +- .../src/operations/denyAssignments.ts | 196 +- .../src/operations/eligibleChildResources.ts | 34 +- .../src/operations/globalAdministrator.ts | 10 +- .../src/operations/operations.ts | 32 +- .../src/operations/permissions.ts | 100 +- .../providerOperationsMetadataOperations.ts | 50 +- .../roleAssignmentScheduleInstances.ts | 57 +- .../roleAssignmentScheduleRequests.ts | 124 +- .../src/operations/roleAssignmentSchedules.ts | 51 +- .../src/operations/roleAssignments.ts | 268 +- .../src/operations/roleDefinitions.ts | 97 +- .../roleEligibilityScheduleInstances.ts | 57 +- .../roleEligibilityScheduleRequests.ts | 124 +- .../operations/roleEligibilitySchedules.ts | 51 +- .../src/operations/roleManagementPolicies.ts | 83 +- .../roleManagementPolicyAssignments.ts | 89 +- .../scopeAccessReviewDefaultSettings.ts | 35 +- .../scopeAccessReviewHistoryDefinition.ts | 37 +- ...peAccessReviewHistoryDefinitionInstance.ts | 26 +- ...eAccessReviewHistoryDefinitionInstances.ts | 50 +- .../scopeAccessReviewHistoryDefinitions.ts | 57 +- .../operations/scopeAccessReviewInstance.ts | 80 +- ...eAccessReviewInstanceContactedReviewers.ts | 50 +- .../scopeAccessReviewInstanceDecisions.ts | 50 +- .../operations/scopeAccessReviewInstances.ts | 84 +- .../scopeAccessReviewScheduleDefinitions.ts | 104 +- ...lAccessReviewInstanceContactedReviewers.ts | 52 +- .../accessReviewDefaultSettingsOperations.ts | 6 +- .../accessReviewHistoryDefinitionInstance.ts | 4 +- .../accessReviewHistoryDefinitionInstances.ts | 4 +- ...accessReviewHistoryDefinitionOperations.ts | 6 +- .../accessReviewHistoryDefinitions.ts | 6 +- .../accessReviewInstanceContactedReviewers.ts | 4 +- .../accessReviewInstanceDecisions.ts | 4 +- .../accessReviewInstanceMyDecisions.ts | 8 +- .../accessReviewInstanceOperations.ts | 12 +- .../accessReviewInstances.ts | 8 +- ...essReviewInstancesAssignedForMyApproval.ts | 6 +- .../accessReviewScheduleDefinitions.ts | 12 +- ...cheduleDefinitionsAssignedForMyApproval.ts | 4 +- .../alertConfigurations.ts | 8 +- .../operationsInterfaces/alertDefinitions.ts | 6 +- .../operationsInterfaces/alertIncidents.ts | 8 +- .../operationsInterfaces/alertOperation.ts | 4 +- .../src/operationsInterfaces/alerts.ts | 16 +- .../classicAdministrators.ts | 4 +- .../operationsInterfaces/denyAssignments.ts | 14 +- .../eligibleChildResources.ts | 4 +- .../globalAdministrator.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/permissions.ts | 6 +- .../providerOperationsMetadataOperations.ts | 6 +- .../roleAssignmentScheduleInstances.ts | 6 +- .../roleAssignmentScheduleRequests.ts | 20 +- .../roleAssignmentSchedules.ts | 6 +- .../operationsInterfaces/roleAssignments.ts | 22 +- .../operationsInterfaces/roleDefinitions.ts | 12 +- .../roleEligibilityScheduleInstances.ts | 6 +- .../roleEligibilityScheduleRequests.ts | 20 +- .../roleEligibilitySchedules.ts | 6 +- .../roleManagementPolicies.ts | 10 +- .../roleManagementPolicyAssignments.ts | 10 +- .../scopeAccessReviewDefaultSettings.ts | 6 +- .../scopeAccessReviewHistoryDefinition.ts | 6 +- ...peAccessReviewHistoryDefinitionInstance.ts | 8 +- ...eAccessReviewHistoryDefinitionInstances.ts | 4 +- .../scopeAccessReviewHistoryDefinitions.ts | 6 +- .../scopeAccessReviewInstance.ts | 12 +- ...eAccessReviewInstanceContactedReviewers.ts | 4 +- .../scopeAccessReviewInstanceDecisions.ts | 4 +- .../scopeAccessReviewInstances.ts | 8 +- .../scopeAccessReviewScheduleDefinitions.ts | 12 +- ...lAccessReviewInstanceContactedReviewers.ts | 4 +- .../arm-authorization/src/pagingHelper.ts | 2 +- .../arm-authorization/test/sampleTest.ts | 43 + .../arm-authorization/tsconfig.json | 10 +- 106 files changed, 5845 insertions(+), 5278 deletions(-) create mode 100644 sdk/authorization/arm-authorization/test/sampleTest.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 23e660a64126..25f7cf6de68c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10659,7 +10659,7 @@ packages: resolve-import: 1.4.6 rimraf: 5.0.10 sync-content: 1.0.2 - typescript: 5.5.4 + typescript: 5.6.2 walk-up-path: 3.0.1 dev: false @@ -12876,7 +12876,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-fVHt83RsUiOUMiyDVLxiocujqCYf9b1HFDQATmwjQxEYpCwbhgJPkaw8Qm8A55gogDeOvSCby+XTRAG2NOk7CQ==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-be7ISEKTSHoFBMH+5XTCWUJ2acxr7G9oAK+dXQYqSWgwjCUgfYeMeWHnna0TL8SgDh8HHjgUnkE4Wt6YWg0NDA==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -12895,9 +12895,10 @@ packages: mkdirp: 3.0.1 mocha: 10.7.3 rimraf: 5.0.10 - ts-node: 10.9.2(@types/node@18.19.54)(typescript@5.6.2) + ts-node: 10.9.2(@types/node@18.19.54)(typescript@5.5.4) tslib: 2.7.0 - typescript: 5.6.2 + tsx: 4.19.1 + typescript: 5.5.4 uglify-js: 3.19.3 transitivePeerDependencies: - '@swc/core' diff --git a/sdk/authorization/arm-authorization/CHANGELOG.md b/sdk/authorization/arm-authorization/CHANGELOG.md index 2a9984f8dca3..695ebdb50424 100644 --- a/sdk/authorization/arm-authorization/CHANGELOG.md +++ b/sdk/authorization/arm-authorization/CHANGELOG.md @@ -1,15 +1,316 @@ # Release History - -## 10.0.0-beta.2 (Unreleased) - + +## 10.0.0-beta.2 (2024-10-02) +Compared with version 9.0.0 + ### Features Added -### Breaking Changes - -### Bugs Fixed + - Added operation group AccessReviewDefaultSettingsOperations + - Added operation group AccessReviewHistoryDefinitionInstance + - Added operation group AccessReviewHistoryDefinitionInstances + - Added operation group AccessReviewHistoryDefinitionOperations + - Added operation group AccessReviewHistoryDefinitions + - Added operation group AccessReviewInstanceContactedReviewers + - Added operation group AccessReviewInstanceDecisions + - Added operation group AccessReviewInstanceMyDecisions + - Added operation group AccessReviewInstanceOperations + - Added operation group AccessReviewInstances + - Added operation group AccessReviewInstancesAssignedForMyApproval + - Added operation group AccessReviewScheduleDefinitions + - Added operation group AccessReviewScheduleDefinitionsAssignedForMyApproval + - Added operation group AlertConfigurations + - Added operation group AlertDefinitions + - Added operation group AlertIncidents + - Added operation group AlertOperation + - Added operation group Alerts + - Added operation group Operations + - Added operation group ScopeAccessReviewDefaultSettings + - Added operation group ScopeAccessReviewHistoryDefinition + - Added operation group ScopeAccessReviewHistoryDefinitionInstance + - Added operation group ScopeAccessReviewHistoryDefinitionInstances + - Added operation group ScopeAccessReviewHistoryDefinitions + - Added operation group ScopeAccessReviewInstance + - Added operation group ScopeAccessReviewInstanceContactedReviewers + - Added operation group ScopeAccessReviewInstanceDecisions + - Added operation group ScopeAccessReviewInstances + - Added operation group ScopeAccessReviewScheduleDefinitions + - Added operation group TenantLevelAccessReviewInstanceContactedReviewers + - Added Interface AccessReviewContactedReviewer + - Added Interface AccessReviewContactedReviewerListResult + - Added Interface AccessReviewDecision + - Added Interface AccessReviewDecisionIdentity + - Added Interface AccessReviewDecisionInsight + - Added Interface AccessReviewDecisionInsightProperties + - Added Interface AccessReviewDecisionListResult + - Added Interface AccessReviewDecisionProperties + - Added Interface AccessReviewDecisionServicePrincipalIdentity + - Added Interface AccessReviewDecisionUserIdentity + - Added Interface AccessReviewDecisionUserSignInInsightProperties + - Added Interface AccessReviewDefaultSettings + - Added Interface AccessReviewDefaultSettingsGetOptionalParams + - Added Interface AccessReviewDefaultSettingsPutOptionalParams + - Added Interface AccessReviewHistoryDefinition + - Added Interface AccessReviewHistoryDefinitionCreateOptionalParams + - Added Interface AccessReviewHistoryDefinitionDeleteByIdOptionalParams + - Added Interface AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams + - Added Interface AccessReviewHistoryDefinitionInstanceListResult + - Added Interface AccessReviewHistoryDefinitionInstancesListNextOptionalParams + - Added Interface AccessReviewHistoryDefinitionInstancesListOptionalParams + - Added Interface AccessReviewHistoryDefinitionListResult + - Added Interface AccessReviewHistoryDefinitionProperties + - Added Interface AccessReviewHistoryDefinitionsGetByIdOptionalParams + - Added Interface AccessReviewHistoryDefinitionsListNextOptionalParams + - Added Interface AccessReviewHistoryDefinitionsListOptionalParams + - Added Interface AccessReviewHistoryInstance + - Added Interface AccessReviewInstance + - Added Interface AccessReviewInstanceAcceptRecommendationsOptionalParams + - Added Interface AccessReviewInstanceApplyDecisionsOptionalParams + - Added Interface AccessReviewInstanceContactedReviewersListNextOptionalParams + - Added Interface AccessReviewInstanceContactedReviewersListOptionalParams + - Added Interface AccessReviewInstanceDecisionsListNextOptionalParams + - Added Interface AccessReviewInstanceDecisionsListOptionalParams + - Added Interface AccessReviewInstanceListResult + - Added Interface AccessReviewInstanceMyDecisionsGetByIdOptionalParams + - Added Interface AccessReviewInstanceMyDecisionsListNextOptionalParams + - Added Interface AccessReviewInstanceMyDecisionsListOptionalParams + - Added Interface AccessReviewInstanceMyDecisionsPatchOptionalParams + - Added Interface AccessReviewInstanceProperties + - Added Interface AccessReviewInstanceResetDecisionsOptionalParams + - Added Interface AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams + - Added Interface AccessReviewInstancesAssignedForMyApprovalListNextOptionalParams + - Added Interface AccessReviewInstancesAssignedForMyApprovalListOptionalParams + - Added Interface AccessReviewInstancesCreateOptionalParams + - Added Interface AccessReviewInstanceSendRemindersOptionalParams + - Added Interface AccessReviewInstancesGetByIdOptionalParams + - Added Interface AccessReviewInstancesListNextOptionalParams + - Added Interface AccessReviewInstancesListOptionalParams + - Added Interface AccessReviewInstanceStopOptionalParams + - Added Interface AccessReviewReviewer + - Added Interface AccessReviewScheduleDefinition + - Added Interface AccessReviewScheduleDefinitionListResult + - Added Interface AccessReviewScheduleDefinitionProperties + - Added Interface AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextOptionalParams + - Added Interface AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + - Added Interface AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + - Added Interface AccessReviewScheduleDefinitionsDeleteByIdOptionalParams + - Added Interface AccessReviewScheduleDefinitionsGetByIdOptionalParams + - Added Interface AccessReviewScheduleDefinitionsListNextOptionalParams + - Added Interface AccessReviewScheduleDefinitionsListOptionalParams + - Added Interface AccessReviewScheduleDefinitionsStopOptionalParams + - Added Interface AccessReviewScheduleSettings + - Added Interface AccessReviewScope + - Added Interface Alert + - Added Interface AlertConfiguration + - Added Interface AlertConfigurationListResult + - Added Interface AlertConfigurationProperties + - Added Interface AlertConfigurationsGetOptionalParams + - Added Interface AlertConfigurationsListForScopeNextOptionalParams + - Added Interface AlertConfigurationsListForScopeOptionalParams + - Added Interface AlertConfigurationsUpdateOptionalParams + - Added Interface AlertDefinition + - Added Interface AlertDefinitionListResult + - Added Interface AlertDefinitionsGetOptionalParams + - Added Interface AlertDefinitionsListForScopeNextOptionalParams + - Added Interface AlertDefinitionsListForScopeOptionalParams + - Added Interface AlertIncident + - Added Interface AlertIncidentListResult + - Added Interface AlertIncidentProperties + - Added Interface AlertIncidentsGetOptionalParams + - Added Interface AlertIncidentsListForScopeNextOptionalParams + - Added Interface AlertIncidentsListForScopeOptionalParams + - Added Interface AlertIncidentsRemediateOptionalParams + - Added Interface AlertListResult + - Added Interface AlertOperationGetOptionalParams + - Added Interface AlertOperationResult + - Added Interface AlertsGetOptionalParams + - Added Interface AlertsListForScopeNextOptionalParams + - Added Interface AlertsListForScopeOptionalParams + - Added Interface AlertsRefreshAllHeaders + - Added Interface AlertsRefreshAllOptionalParams + - Added Interface AlertsRefreshHeaders + - Added Interface AlertsRefreshOptionalParams + - Added Interface AlertsUpdateOptionalParams + - Added Interface AzureRolesAssignedOutsidePimAlertConfigurationProperties + - Added Interface AzureRolesAssignedOutsidePimAlertIncidentProperties + - Added Interface DuplicateRoleCreatedAlertConfigurationProperties + - Added Interface DuplicateRoleCreatedAlertIncidentProperties + - Added Interface ErrorDefinition + - Added Interface ErrorDefinitionProperties + - Added Interface Operation + - Added Interface OperationDisplay + - Added Interface OperationListResult + - Added Interface OperationsListNextOptionalParams + - Added Interface OperationsListOptionalParams + - Added Interface PIMOnlyModeSettings + - Added Interface RecordAllDecisionsProperties + - Added Interface RoleManagementPolicyPimOnlyModeRule + - Added Interface ScopeAccessReviewDefaultSettingsGetOptionalParams + - Added Interface ScopeAccessReviewDefaultSettingsPutOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionCreateOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionInstancesListNextOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionsListNextOptionalParams + - Added Interface ScopeAccessReviewHistoryDefinitionsListOptionalParams + - Added Interface ScopeAccessReviewInstanceApplyDecisionsOptionalParams + - Added Interface ScopeAccessReviewInstanceContactedReviewersListNextOptionalParams + - Added Interface ScopeAccessReviewInstanceContactedReviewersListOptionalParams + - Added Interface ScopeAccessReviewInstanceDecisionsListNextOptionalParams + - Added Interface ScopeAccessReviewInstanceDecisionsListOptionalParams + - Added Interface ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams + - Added Interface ScopeAccessReviewInstanceResetDecisionsOptionalParams + - Added Interface ScopeAccessReviewInstancesCreateOptionalParams + - Added Interface ScopeAccessReviewInstanceSendRemindersOptionalParams + - Added Interface ScopeAccessReviewInstancesGetByIdOptionalParams + - Added Interface ScopeAccessReviewInstancesListNextOptionalParams + - Added Interface ScopeAccessReviewInstancesListOptionalParams + - Added Interface ScopeAccessReviewInstanceStopOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsListNextOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsListOptionalParams + - Added Interface ScopeAccessReviewScheduleDefinitionsStopOptionalParams + - Added Interface TenantLevelAccessReviewInstanceContactedReviewersListNextOptionalParams + - Added Interface TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + - Added Interface TooManyOwnersAssignedToResourceAlertConfigurationProperties + - Added Interface TooManyOwnersAssignedToResourceAlertIncidentProperties + - Added Interface TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties + - Added Interface TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties + - Added Interface UsersOrServicePrincipalSet + - Added Type Alias AccessRecommendationType + - Added Type Alias AccessReviewActorIdentityType + - Added Type Alias AccessReviewApplyResult + - Added Type Alias AccessReviewDecisionIdentityUnion + - Added Type Alias AccessReviewDecisionInsightPropertiesUnion + - Added Type Alias AccessReviewDecisionInsightType + - Added Type Alias AccessReviewDecisionPrincipalResourceMembershipType + - Added Type Alias AccessReviewDefaultSettingsGetResponse + - Added Type Alias AccessReviewDefaultSettingsPutResponse + - Added Type Alias AccessReviewHistoryDefinitionCreateResponse + - Added Type Alias AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + - Added Type Alias AccessReviewHistoryDefinitionInstancesListNextResponse + - Added Type Alias AccessReviewHistoryDefinitionInstancesListResponse + - Added Type Alias AccessReviewHistoryDefinitionsGetByIdResponse + - Added Type Alias AccessReviewHistoryDefinitionsListNextResponse + - Added Type Alias AccessReviewHistoryDefinitionsListResponse + - Added Type Alias AccessReviewHistoryDefinitionStatus + - Added Type Alias AccessReviewInstanceContactedReviewersListNextResponse + - Added Type Alias AccessReviewInstanceContactedReviewersListResponse + - Added Type Alias AccessReviewInstanceDecisionsListNextResponse + - Added Type Alias AccessReviewInstanceDecisionsListResponse + - Added Type Alias AccessReviewInstanceMyDecisionsGetByIdResponse + - Added Type Alias AccessReviewInstanceMyDecisionsListNextResponse + - Added Type Alias AccessReviewInstanceMyDecisionsListResponse + - Added Type Alias AccessReviewInstanceMyDecisionsPatchResponse + - Added Type Alias AccessReviewInstanceReviewersType + - Added Type Alias AccessReviewInstancesAssignedForMyApprovalGetByIdResponse + - Added Type Alias AccessReviewInstancesAssignedForMyApprovalListNextResponse + - Added Type Alias AccessReviewInstancesAssignedForMyApprovalListResponse + - Added Type Alias AccessReviewInstancesCreateResponse + - Added Type Alias AccessReviewInstancesGetByIdResponse + - Added Type Alias AccessReviewInstancesListNextResponse + - Added Type Alias AccessReviewInstancesListResponse + - Added Type Alias AccessReviewInstanceStatus + - Added Type Alias AccessReviewRecurrencePatternType + - Added Type Alias AccessReviewRecurrenceRangeType + - Added Type Alias AccessReviewResult + - Added Type Alias AccessReviewReviewerType + - Added Type Alias AccessReviewScheduleDefinitionReviewersType + - Added Type Alias AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse + - Added Type Alias AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse + - Added Type Alias AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse + - Added Type Alias AccessReviewScheduleDefinitionsGetByIdResponse + - Added Type Alias AccessReviewScheduleDefinitionsListNextResponse + - Added Type Alias AccessReviewScheduleDefinitionsListResponse + - Added Type Alias AccessReviewScheduleDefinitionStatus + - Added Type Alias AccessReviewScopeAssignmentState + - Added Type Alias AccessReviewScopePrincipalType + - Added Type Alias AlertConfigurationPropertiesUnion + - Added Type Alias AlertConfigurationsGetResponse + - Added Type Alias AlertConfigurationsListForScopeNextResponse + - Added Type Alias AlertConfigurationsListForScopeResponse + - Added Type Alias AlertDefinitionsGetResponse + - Added Type Alias AlertDefinitionsListForScopeNextResponse + - Added Type Alias AlertDefinitionsListForScopeResponse + - Added Type Alias AlertIncidentPropertiesUnion + - Added Type Alias AlertIncidentsGetResponse + - Added Type Alias AlertIncidentsListForScopeNextResponse + - Added Type Alias AlertIncidentsListForScopeResponse + - Added Type Alias AlertOperationGetResponse + - Added Type Alias AlertsGetResponse + - Added Type Alias AlertsListForScopeNextResponse + - Added Type Alias AlertsListForScopeResponse + - Added Type Alias AlertsRefreshAllResponse + - Added Type Alias AlertsRefreshResponse + - Added Type Alias DecisionResourceType + - Added Type Alias DecisionTargetType + - Added Type Alias DefaultDecisionType + - Added Type Alias ExcludedPrincipalTypes + - Added Type Alias OperationsListNextResponse + - Added Type Alias OperationsListResponse + - Added Type Alias PIMOnlyMode + - Added Type Alias RecordAllDecisionsResult + - Added Type Alias ScopeAccessReviewDefaultSettingsGetResponse + - Added Type Alias ScopeAccessReviewDefaultSettingsPutResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionCreateResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionInstancesListNextResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionInstancesListResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionsGetByIdResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionsListNextResponse + - Added Type Alias ScopeAccessReviewHistoryDefinitionsListResponse + - Added Type Alias ScopeAccessReviewInstanceContactedReviewersListNextResponse + - Added Type Alias ScopeAccessReviewInstanceContactedReviewersListResponse + - Added Type Alias ScopeAccessReviewInstanceDecisionsListNextResponse + - Added Type Alias ScopeAccessReviewInstanceDecisionsListResponse + - Added Type Alias ScopeAccessReviewInstancesCreateResponse + - Added Type Alias ScopeAccessReviewInstancesGetByIdResponse + - Added Type Alias ScopeAccessReviewInstancesListNextResponse + - Added Type Alias ScopeAccessReviewInstancesListResponse + - Added Type Alias ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse + - Added Type Alias ScopeAccessReviewScheduleDefinitionsGetByIdResponse + - Added Type Alias ScopeAccessReviewScheduleDefinitionsListNextResponse + - Added Type Alias ScopeAccessReviewScheduleDefinitionsListResponse + - Added Type Alias SeverityLevel + - Added Type Alias TenantLevelAccessReviewInstanceContactedReviewersListNextResponse + - Added Type Alias TenantLevelAccessReviewInstanceContactedReviewersListResponse + - Interface Permission has a new optional parameter condition + - Interface Permission has a new optional parameter conditionVersion + - Type of parameter ruleType of interface RoleManagementPolicyRule is changed from "RoleManagementPolicyApprovalRule" | "RoleManagementPolicyAuthenticationContextRule" | "RoleManagementPolicyEnablementRule" | "RoleManagementPolicyExpirationRule" | "RoleManagementPolicyNotificationRule" to "RoleManagementPolicyApprovalRule" | "RoleManagementPolicyAuthenticationContextRule" | "RoleManagementPolicyEnablementRule" | "RoleManagementPolicyExpirationRule" | "RoleManagementPolicyNotificationRule" | "RoleManagementPolicyPimOnlyModeRule" + - Added Enum KnownAccessRecommendationType + - Added Enum KnownAccessReviewActorIdentityType + - Added Enum KnownAccessReviewApplyResult + - Added Enum KnownAccessReviewDecisionInsightType + - Added Enum KnownAccessReviewDecisionPrincipalResourceMembershipType + - Added Enum KnownAccessReviewHistoryDefinitionStatus + - Added Enum KnownAccessReviewInstanceReviewersType + - Added Enum KnownAccessReviewInstanceStatus + - Added Enum KnownAccessReviewRecurrencePatternType + - Added Enum KnownAccessReviewRecurrenceRangeType + - Added Enum KnownAccessReviewResult + - Added Enum KnownAccessReviewReviewerType + - Added Enum KnownAccessReviewScheduleDefinitionReviewersType + - Added Enum KnownAccessReviewScheduleDefinitionStatus + - Added Enum KnownAccessReviewScopeAssignmentState + - Added Enum KnownAccessReviewScopePrincipalType + - Added Enum KnownDecisionResourceType + - Added Enum KnownDecisionTargetType + - Added Enum KnownDefaultDecisionType + - Added Enum KnownExcludedPrincipalTypes + - Added Enum KnownPIMOnlyMode + - Added Enum KnownRecordAllDecisionsResult + - Added Enum KnownSeverityLevel + - Enum KnownRoleManagementPolicyRuleType has a new value RoleManagementPolicyPimOnlyModeRule + - Enum KnownUserType has a new value ServicePrincipal -### Other Changes +### Breaking Changes + - Class AuthorizationManagementClient has a new signature + + ## 10.0.0-beta.1 (2023-07-04) ### Features Added @@ -319,4 +620,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/authorization/arm-authorization/LICENSE b/sdk/authorization/arm-authorization/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/authorization/arm-authorization/LICENSE +++ b/sdk/authorization/arm-authorization/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/authorization/arm-authorization/_meta.json b/sdk/authorization/arm-authorization/_meta.json index f0602bf31982..61b0d920237b 100644 --- a/sdk/authorization/arm-authorization/_meta.json +++ b/sdk/authorization/arm-authorization/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a8fb6bcb9872431012ed1c7edbb7f369295422a5", + "commit": "1aedea02f1e210d0fd2925e273dc515c0e82e797", "readme": "specification/authorization/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\authorization\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/authorization/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.14", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/authorization/arm-authorization/package.json b/sdk/authorization/arm-authorization/package.json index a5443cb62c15..f0bb79c4337a 100644 --- a/sdk/authorization/arm-authorization/package.json +++ b/sdk/authorization/arm-authorization/package.json @@ -8,12 +8,12 @@ "node": ">=18.0.0" }, "dependencies": { - "@azure/abort-controller": "^1.0.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-client": "^1.7.0", - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-client": "^1.7.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -28,23 +28,24 @@ "module": "./dist-esm/src/index.js", "types": "./types/arm-authorization.d.ts", "devDependencies": { - "@azure-tools/test-credential": "^1.0.0", - "@azure-tools/test-recorder": "^3.0.0", - "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", "@microsoft/api-extractor": "^7.31.1", - "@types/chai": "^4.2.8", + "mkdirp": "^3.0.1", + "typescript": "~5.5.3", + "uglify-js": "^3.4.9", + "rimraf": "^5.0.0", + "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", + "@azure/identity": "^4.2.1", + "@azure-tools/test-recorder": "^3.0.0", + "@azure-tools/test-credential": "^1.1.0", + "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "@types/node": "^18.0.0", + "tsx": "^4.7.1", + "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", - "dotenv": "^16.0.0", - "mkdirp": "^3.0.1", - "mocha": "^10.0.0", - "rimraf": "^5.0.5", - "ts-node": "^10.0.0", - "typescript": "~5.6.2", - "uglify-js": "^3.4.9" + "@types/node": "^18.0.0", + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -71,31 +72,29 @@ "types/*" ], "scripts": { - "audit": "echo skipped", "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api", - "build:browser": "echo skipped", + "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", + "prepack": "npm run build", + "pack": "npm pack 2>&1", + "extract-api": "dev-tool run extract-api", + "lint": "echo skipped", + "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", - "build:samples": "echo skipped.", + "build:browser": "echo skipped", "build:test": "echo skipped", + "build:samples": "echo skipped.", "check-format": "echo skipped", - "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", - "extract-api": "dev-tool run extract-api", "format": "echo skipped", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", - "lint": "echo skipped", - "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", - "pack": "npm pack 2>&1", - "prepack": "npm run build", "test": "npm run integration-test", - "test:browser": "echo skipped", "test:node": "echo skipped", + "test:browser": "echo skipped", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "echo skipped", "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node", - "update-snippets": "echo skipped" + "unit-test:browser": "echo skipped", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'", + "integration-test:browser": "echo skipped" }, "sideEffects": false, "//metadata": { @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/authorization/arm-authorization", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-authorization?view=azure-node-preview" - } + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/authorization/arm-authorization" } \ No newline at end of file diff --git a/sdk/authorization/arm-authorization/review/arm-authorization.api.md b/sdk/authorization/arm-authorization/review/arm-authorization.api.md index 3d91584e2688..a670a2aeff55 100644 --- a/sdk/authorization/arm-authorization/review/arm-authorization.api.md +++ b/sdk/authorization/arm-authorization/review/arm-authorization.api.md @@ -1455,6 +1455,9 @@ export interface ErrorResponse { error?: ErrorDetail; } +// @public +export type ExcludedPrincipalTypes = string; + // @public (undocumented) export interface ExpandedProperties { principal?: ExpandedPropertiesPrincipal; @@ -1664,6 +1667,12 @@ export enum KnownEnablementRules { Ticketing = "Ticketing" } +// @public +export enum KnownExcludedPrincipalTypes { + ServicePrincipalsAsRequestor = "ServicePrincipalsAsRequestor", + ServicePrincipalsAsTarget = "ServicePrincipalsAsTarget" +} + // @public export enum KnownMemberType { Direct = "Direct", @@ -1683,6 +1692,13 @@ export enum KnownNotificationLevel { None = "None" } +// @public +export enum KnownPIMOnlyMode { + Disabled = "Disabled", + Enabled = "Enabled", + ReportOnly = "ReportOnly" +} + // @public export enum KnownPrincipalType { Device = "Device", @@ -1724,7 +1740,8 @@ export enum KnownRoleManagementPolicyRuleType { RoleManagementPolicyAuthenticationContextRule = "RoleManagementPolicyAuthenticationContextRule", RoleManagementPolicyEnablementRule = "RoleManagementPolicyEnablementRule", RoleManagementPolicyExpirationRule = "RoleManagementPolicyExpirationRule", - RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule" + RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule", + RoleManagementPolicyPimOnlyModeRule = "RoleManagementPolicyPimOnlyModeRule" } // @public @@ -1770,6 +1787,7 @@ export enum KnownType { // @public export enum KnownUserType { Group = "Group", + ServicePrincipal = "ServicePrincipal", User = "User" } @@ -1874,7 +1892,17 @@ export interface PermissionsListForResourceOptionalParams extends coreClient.Ope // @public export type PermissionsListForResourceResponse = PermissionGetResult; -// @public (undocumented) +// @public +export type PIMOnlyMode = string; + +// @public +export interface PIMOnlyModeSettings { + excludedAssignmentTypes?: ExcludedPrincipalTypes[]; + excludes?: UsersOrServicePrincipalSet[]; + mode?: PIMOnlyMode; +} + +// @public export interface PolicyAssignmentProperties { policy?: PolicyAssignmentPropertiesPolicy; roleDefinition?: PolicyAssignmentPropertiesRoleDefinition; @@ -1902,7 +1930,7 @@ export interface PolicyAssignmentPropertiesScope { type?: string; } -// @public (undocumented) +// @public export interface PolicyProperties { readonly scope?: PolicyPropertiesScope; } @@ -2786,6 +2814,7 @@ export interface RoleManagementPolicyApprovalRule extends RoleManagementPolicyRu // @public export interface RoleManagementPolicyAssignment { + readonly effectiveRules?: RoleManagementPolicyRuleUnion[]; readonly id?: string; readonly name?: string; readonly policyAssignmentProperties?: PolicyAssignmentProperties; @@ -2877,10 +2906,16 @@ export interface RoleManagementPolicyNotificationRule extends RoleManagementPoli ruleType: "RoleManagementPolicyNotificationRule"; } +// @public +export interface RoleManagementPolicyPimOnlyModeRule extends RoleManagementPolicyRule { + pimOnlyModeSettings?: PIMOnlyModeSettings; + ruleType: "RoleManagementPolicyPimOnlyModeRule"; +} + // @public export interface RoleManagementPolicyRule { id?: string; - ruleType: "RoleManagementPolicyApprovalRule" | "RoleManagementPolicyAuthenticationContextRule" | "RoleManagementPolicyEnablementRule" | "RoleManagementPolicyExpirationRule" | "RoleManagementPolicyNotificationRule"; + ruleType: "RoleManagementPolicyApprovalRule" | "RoleManagementPolicyAuthenticationContextRule" | "RoleManagementPolicyEnablementRule" | "RoleManagementPolicyExpirationRule" | "RoleManagementPolicyNotificationRule" | "RoleManagementPolicyPimOnlyModeRule"; target?: RoleManagementPolicyRuleTarget; } @@ -2898,7 +2933,7 @@ export interface RoleManagementPolicyRuleTarget { export type RoleManagementPolicyRuleType = string; // @public (undocumented) -export type RoleManagementPolicyRuleUnion = RoleManagementPolicyRule | RoleManagementPolicyApprovalRule | RoleManagementPolicyAuthenticationContextRule | RoleManagementPolicyEnablementRule | RoleManagementPolicyExpirationRule | RoleManagementPolicyNotificationRule; +export type RoleManagementPolicyRuleUnion = RoleManagementPolicyRule | RoleManagementPolicyApprovalRule | RoleManagementPolicyAuthenticationContextRule | RoleManagementPolicyEnablementRule | RoleManagementPolicyExpirationRule | RoleManagementPolicyNotificationRule | RoleManagementPolicyPimOnlyModeRule; // @public export interface ScopeAccessReviewDefaultSettings { @@ -3210,6 +3245,13 @@ export interface UserSet { userType?: UserType; } +// @public +export interface UsersOrServicePrincipalSet { + displayName?: string; + id?: string; + type?: UserType; +} + // @public export type UserType = string; diff --git a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts index 770f0077cd1e..6801ea9aee9d 100644 --- a/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts +++ b/sdk/authorization/arm-authorization/src/authorizationManagementClient.ts @@ -55,7 +55,7 @@ import { AlertConfigurationsImpl, AlertDefinitionsImpl, AlertIncidentsImpl, - AlertOperationImpl + AlertOperationImpl, } from "./operations"; import { ClassicAdministrators, @@ -103,7 +103,7 @@ import { AlertConfigurations, AlertDefinitions, AlertIncidents, - AlertOperation + AlertOperation, } from "./operationsInterfaces"; import { AuthorizationManagementClientOptionalParams } from "./models"; @@ -120,18 +120,18 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AuthorizationManagementClientOptionalParams + options?: AuthorizationManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: AuthorizationManagementClientOptionalParams + options?: AuthorizationManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: | AuthorizationManagementClientOptionalParams | string, - options?: AuthorizationManagementClientOptionalParams + options?: AuthorizationManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -151,7 +151,7 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { } const defaults: AuthorizationManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-authorization/10.0.0-beta.2`; @@ -164,20 +164,21 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -187,7 +188,7 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -197,9 +198,9 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -210,98 +211,72 @@ export class AuthorizationManagementClient extends coreClient.ServiceClient { this.classicAdministrators = new ClassicAdministratorsImpl(this); this.globalAdministrator = new GlobalAdministratorImpl(this); this.denyAssignments = new DenyAssignmentsImpl(this); - this.providerOperationsMetadataOperations = new ProviderOperationsMetadataOperationsImpl( - this - ); + this.providerOperationsMetadataOperations = + new ProviderOperationsMetadataOperationsImpl(this); this.roleAssignments = new RoleAssignmentsImpl(this); this.permissions = new PermissionsImpl(this); this.roleDefinitions = new RoleDefinitionsImpl(this); this.operations = new OperationsImpl(this); - this.accessReviewHistoryDefinitions = new AccessReviewHistoryDefinitionsImpl( - this - ); - this.accessReviewHistoryDefinitionOperations = new AccessReviewHistoryDefinitionOperationsImpl( - this - ); - this.accessReviewHistoryDefinitionInstance = new AccessReviewHistoryDefinitionInstanceImpl( - this - ); - this.accessReviewHistoryDefinitionInstances = new AccessReviewHistoryDefinitionInstancesImpl( - this - ); - this.accessReviewScheduleDefinitions = new AccessReviewScheduleDefinitionsImpl( - this - ); + this.accessReviewHistoryDefinitions = + new AccessReviewHistoryDefinitionsImpl(this); + this.accessReviewHistoryDefinitionOperations = + new AccessReviewHistoryDefinitionOperationsImpl(this); + this.accessReviewHistoryDefinitionInstance = + new AccessReviewHistoryDefinitionInstanceImpl(this); + this.accessReviewHistoryDefinitionInstances = + new AccessReviewHistoryDefinitionInstancesImpl(this); + this.accessReviewScheduleDefinitions = + new AccessReviewScheduleDefinitionsImpl(this); this.accessReviewInstances = new AccessReviewInstancesImpl(this); - this.accessReviewInstanceOperations = new AccessReviewInstanceOperationsImpl( - this - ); + this.accessReviewInstanceOperations = + new AccessReviewInstanceOperationsImpl(this); this.accessReviewInstanceDecisions = new AccessReviewInstanceDecisionsImpl( - this - ); - this.accessReviewInstanceContactedReviewers = new AccessReviewInstanceContactedReviewersImpl( - this - ); - this.accessReviewDefaultSettingsOperations = new AccessReviewDefaultSettingsOperationsImpl( - this - ); - this.scopeAccessReviewHistoryDefinitions = new ScopeAccessReviewHistoryDefinitionsImpl( - this - ); - this.scopeAccessReviewHistoryDefinition = new ScopeAccessReviewHistoryDefinitionImpl( - this - ); - this.scopeAccessReviewHistoryDefinitionInstance = new ScopeAccessReviewHistoryDefinitionInstanceImpl( - this - ); - this.scopeAccessReviewHistoryDefinitionInstances = new ScopeAccessReviewHistoryDefinitionInstancesImpl( - this - ); - this.scopeAccessReviewScheduleDefinitions = new ScopeAccessReviewScheduleDefinitionsImpl( - this + this, ); + this.accessReviewInstanceContactedReviewers = + new AccessReviewInstanceContactedReviewersImpl(this); + this.accessReviewDefaultSettingsOperations = + new AccessReviewDefaultSettingsOperationsImpl(this); + this.scopeAccessReviewHistoryDefinitions = + new ScopeAccessReviewHistoryDefinitionsImpl(this); + this.scopeAccessReviewHistoryDefinition = + new ScopeAccessReviewHistoryDefinitionImpl(this); + this.scopeAccessReviewHistoryDefinitionInstance = + new ScopeAccessReviewHistoryDefinitionInstanceImpl(this); + this.scopeAccessReviewHistoryDefinitionInstances = + new ScopeAccessReviewHistoryDefinitionInstancesImpl(this); + this.scopeAccessReviewScheduleDefinitions = + new ScopeAccessReviewScheduleDefinitionsImpl(this); this.scopeAccessReviewInstances = new ScopeAccessReviewInstancesImpl(this); this.scopeAccessReviewInstance = new ScopeAccessReviewInstanceImpl(this); - this.scopeAccessReviewInstanceDecisions = new ScopeAccessReviewInstanceDecisionsImpl( - this - ); - this.scopeAccessReviewInstanceContactedReviewers = new ScopeAccessReviewInstanceContactedReviewersImpl( - this - ); - this.scopeAccessReviewDefaultSettings = new ScopeAccessReviewDefaultSettingsImpl( - this - ); - this.accessReviewScheduleDefinitionsAssignedForMyApproval = new AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl( - this - ); - this.accessReviewInstancesAssignedForMyApproval = new AccessReviewInstancesAssignedForMyApprovalImpl( - this - ); - this.accessReviewInstanceMyDecisions = new AccessReviewInstanceMyDecisionsImpl( - this - ); - this.tenantLevelAccessReviewInstanceContactedReviewers = new TenantLevelAccessReviewInstanceContactedReviewersImpl( - this - ); + this.scopeAccessReviewInstanceDecisions = + new ScopeAccessReviewInstanceDecisionsImpl(this); + this.scopeAccessReviewInstanceContactedReviewers = + new ScopeAccessReviewInstanceContactedReviewersImpl(this); + this.scopeAccessReviewDefaultSettings = + new ScopeAccessReviewDefaultSettingsImpl(this); + this.accessReviewScheduleDefinitionsAssignedForMyApproval = + new AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl(this); + this.accessReviewInstancesAssignedForMyApproval = + new AccessReviewInstancesAssignedForMyApprovalImpl(this); + this.accessReviewInstanceMyDecisions = + new AccessReviewInstanceMyDecisionsImpl(this); + this.tenantLevelAccessReviewInstanceContactedReviewers = + new TenantLevelAccessReviewInstanceContactedReviewersImpl(this); this.eligibleChildResources = new EligibleChildResourcesImpl(this); this.roleAssignmentSchedules = new RoleAssignmentSchedulesImpl(this); - this.roleAssignmentScheduleInstances = new RoleAssignmentScheduleInstancesImpl( - this - ); - this.roleAssignmentScheduleRequests = new RoleAssignmentScheduleRequestsImpl( - this - ); + this.roleAssignmentScheduleInstances = + new RoleAssignmentScheduleInstancesImpl(this); + this.roleAssignmentScheduleRequests = + new RoleAssignmentScheduleRequestsImpl(this); this.roleEligibilitySchedules = new RoleEligibilitySchedulesImpl(this); - this.roleEligibilityScheduleInstances = new RoleEligibilityScheduleInstancesImpl( - this - ); - this.roleEligibilityScheduleRequests = new RoleEligibilityScheduleRequestsImpl( - this - ); + this.roleEligibilityScheduleInstances = + new RoleEligibilityScheduleInstancesImpl(this); + this.roleEligibilityScheduleRequests = + new RoleEligibilityScheduleRequestsImpl(this); this.roleManagementPolicies = new RoleManagementPoliciesImpl(this); - this.roleManagementPolicyAssignments = new RoleManagementPolicyAssignmentsImpl( - this - ); + this.roleManagementPolicyAssignments = + new RoleManagementPolicyAssignmentsImpl(this); this.alerts = new AlertsImpl(this); this.alertConfigurations = new AlertConfigurationsImpl(this); this.alertDefinitions = new AlertDefinitionsImpl(this); diff --git a/sdk/authorization/arm-authorization/src/lroImpl.ts b/sdk/authorization/arm-authorization/src/lroImpl.ts index 52f6eaacfb83..5f88efab981b 100644 --- a/sdk/authorization/arm-authorization/src/lroImpl.ts +++ b/sdk/authorization/arm-authorization/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/authorization/arm-authorization/src/models/index.ts b/sdk/authorization/arm-authorization/src/models/index.ts index 3b5d937fbbda..b91d1af47aa3 100644 --- a/sdk/authorization/arm-authorization/src/models/index.ts +++ b/sdk/authorization/arm-authorization/src/models/index.ts @@ -21,7 +21,8 @@ export type RoleManagementPolicyRuleUnion = | RoleManagementPolicyAuthenticationContextRule | RoleManagementPolicyEnablementRule | RoleManagementPolicyExpirationRule - | RoleManagementPolicyNotificationRule; + | RoleManagementPolicyNotificationRule + | RoleManagementPolicyPimOnlyModeRule; export type AlertIncidentPropertiesUnion = | AlertIncidentProperties | AzureRolesAssignedOutsidePimAlertIncidentProperties @@ -2060,7 +2061,8 @@ export interface RoleManagementPolicyRule { | "RoleManagementPolicyAuthenticationContextRule" | "RoleManagementPolicyEnablementRule" | "RoleManagementPolicyExpirationRule" - | "RoleManagementPolicyNotificationRule"; + | "RoleManagementPolicyNotificationRule" + | "RoleManagementPolicyPimOnlyModeRule"; /** The id of the rule. */ id?: string; /** The target of the current rule. */ @@ -2083,6 +2085,7 @@ export interface RoleManagementPolicyRuleTarget { enforcedSettings?: string[]; } +/** Expanded info of resource scope */ export interface PolicyProperties { /** * Details of the resource scope @@ -2132,6 +2135,11 @@ export interface RoleManagementPolicyAssignment { roleDefinitionId?: string; /** The policy id role management policy assignment. */ policyId?: string; + /** + * The readonly computed rule applied to the policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly effectiveRules?: RoleManagementPolicyRuleUnion[]; /** * Additional properties of scope, role definition and policy * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2139,6 +2147,7 @@ export interface RoleManagementPolicyAssignment { readonly policyAssignmentProperties?: PolicyAssignmentProperties; } +/** Expanded info of resource scope, role definition and policy */ export interface PolicyAssignmentProperties { /** Details of the resource scope */ scope?: PolicyAssignmentPropertiesScope; @@ -2562,6 +2571,26 @@ export interface UserSet { description?: string; } +/** The detail of a subject. */ +export interface UsersOrServicePrincipalSet { + /** The type of user. */ + type?: UserType; + /** The object id of the entity. */ + id?: string; + /** The display Name of the entity. */ + displayName?: string; +} + +/** The PIM Only Mode settings. */ +export interface PIMOnlyModeSettings { + /** Determines whether the setting is enabled, disabled or report only. */ + mode?: PIMOnlyMode; + /** The list of excluded entities that the rule does not apply to. */ + excludes?: UsersOrServicePrincipalSet[]; + /** The list of excluded assignment types allowed. */ + excludedAssignmentTypes?: ExcludedPrincipalTypes[]; +} + /** Role assignment schedule filter */ export interface RoleAssignmentScheduleFilter { /** Returns role assignment schedule of the specific principal. */ @@ -2723,6 +2752,15 @@ export interface RoleManagementPolicyNotificationRule isDefaultRecipientsEnabled?: boolean; } +/** The role management policy PIM only mode rule. */ +export interface RoleManagementPolicyPimOnlyModeRule + extends RoleManagementPolicyRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "RoleManagementPolicyPimOnlyModeRule"; + /** The PIM Only Mode settings */ + pimOnlyModeSettings?: PIMOnlyModeSettings; +} + /** Azure roles assigned outside PIM alert incident properties. */ export interface AzureRolesAssignedOutsidePimAlertIncidentProperties extends AlertIncidentProperties { @@ -2893,7 +2931,7 @@ export enum KnownPrincipalType { /** ForeignGroup */ ForeignGroup = "ForeignGroup", /** Device */ - Device = "Device" + Device = "Device", } /** @@ -2920,7 +2958,7 @@ export enum KnownAccessReviewResult { /** DontKnow */ DontKnow = "DontKnow", /** NotNotified */ - NotNotified = "NotNotified" + NotNotified = "NotNotified", } /** @@ -2945,7 +2983,7 @@ export enum KnownAccessReviewHistoryDefinitionStatus { /** Done */ Done = "Done", /** Error */ - Error = "Error" + Error = "Error", } /** @@ -2965,7 +3003,7 @@ export enum KnownAccessReviewActorIdentityType { /** User */ User = "user", /** ServicePrincipal */ - ServicePrincipal = "servicePrincipal" + ServicePrincipal = "servicePrincipal", } /** @@ -2989,7 +3027,7 @@ export enum KnownAccessReviewScopePrincipalType { /** UserGroup */ UserGroup = "user,group", /** RedeemedGuestUser */ - RedeemedGuestUser = "redeemedGuestUser" + RedeemedGuestUser = "redeemedGuestUser", } /** @@ -3010,7 +3048,7 @@ export enum KnownAccessReviewScopeAssignmentState { /** Eligible */ Eligible = "eligible", /** Active */ - Active = "active" + Active = "active", } /** @@ -3028,7 +3066,7 @@ export enum KnownAccessReviewRecurrencePatternType { /** Weekly */ Weekly = "weekly", /** AbsoluteMonthly */ - AbsoluteMonthly = "absoluteMonthly" + AbsoluteMonthly = "absoluteMonthly", } /** @@ -3048,7 +3086,7 @@ export enum KnownAccessReviewRecurrenceRangeType { /** NoEnd */ NoEnd = "noEnd", /** Numbered */ - Numbered = "numbered" + Numbered = "numbered", } /** @@ -3085,7 +3123,7 @@ export enum KnownAccessReviewScheduleDefinitionStatus { /** AutoReviewed */ AutoReviewed = "AutoReviewed", /** Starting */ - Starting = "Starting" + Starting = "Starting", } /** @@ -3114,7 +3152,7 @@ export enum KnownDefaultDecisionType { /** Deny */ Deny = "Deny", /** Recommendation */ - Recommendation = "Recommendation" + Recommendation = "Recommendation", } /** @@ -3133,7 +3171,7 @@ export enum KnownAccessReviewReviewerType { /** User */ User = "user", /** ServicePrincipal */ - ServicePrincipal = "servicePrincipal" + ServicePrincipal = "servicePrincipal", } /** @@ -3153,7 +3191,7 @@ export enum KnownAccessReviewScheduleDefinitionReviewersType { /** Self */ Self = "Self", /** Managers */ - Managers = "Managers" + Managers = "Managers", } /** @@ -3190,7 +3228,7 @@ export enum KnownAccessReviewInstanceStatus { /** AutoReviewed */ AutoReviewed = "AutoReviewed", /** Starting */ - Starting = "Starting" + Starting = "Starting", } /** @@ -3219,7 +3257,7 @@ export enum KnownAccessReviewInstanceReviewersType { /** Self */ Self = "Self", /** Managers */ - Managers = "Managers" + Managers = "Managers", } /** @@ -3238,7 +3276,7 @@ export enum KnownDecisionTargetType { /** User */ User = "user", /** ServicePrincipal */ - ServicePrincipal = "servicePrincipal" + ServicePrincipal = "servicePrincipal", } /** @@ -3254,7 +3292,7 @@ export type DecisionTargetType = string; /** Known values of {@link DecisionResourceType} that the service accepts. */ export enum KnownDecisionResourceType { /** AzureRole */ - AzureRole = "azureRole" + AzureRole = "azureRole", } /** @@ -3273,7 +3311,7 @@ export enum KnownAccessRecommendationType { /** Deny */ Deny = "Deny", /** NoInfoAvailable */ - NoInfoAvailable = "NoInfoAvailable" + NoInfoAvailable = "NoInfoAvailable", } /** @@ -3300,7 +3338,7 @@ export enum KnownAccessReviewApplyResult { /** AppliedSuccessfullyButObjectNotFound */ AppliedSuccessfullyButObjectNotFound = "AppliedSuccessfullyButObjectNotFound", /** ApplyNotSupported */ - ApplyNotSupported = "ApplyNotSupported" + ApplyNotSupported = "ApplyNotSupported", } /** @@ -3320,7 +3358,7 @@ export type AccessReviewApplyResult = string; /** Known values of {@link AccessReviewDecisionInsightType} that the service accepts. */ export enum KnownAccessReviewDecisionInsightType { /** UserSignInInsight */ - UserSignInInsight = "userSignInInsight" + UserSignInInsight = "userSignInInsight", } /** @@ -3337,7 +3375,7 @@ export enum KnownAccessReviewDecisionPrincipalResourceMembershipType { /** Direct */ Direct = "direct", /** Indirect */ - Indirect = "indirect" + Indirect = "indirect", } /** @@ -3355,7 +3393,7 @@ export enum KnownRecordAllDecisionsResult { /** Approve */ Approve = "Approve", /** Deny */ - Deny = "Deny" + Deny = "Deny", } /** @@ -3373,7 +3411,7 @@ export enum KnownAssignmentType { /** Activated */ Activated = "Activated", /** Assigned */ - Assigned = "Assigned" + Assigned = "Assigned", } /** @@ -3393,7 +3431,7 @@ export enum KnownMemberType { /** Direct */ Direct = "Direct", /** Group */ - Group = "Group" + Group = "Group", } /** @@ -3452,7 +3490,7 @@ export enum KnownStatus { /** ScheduleCreated */ ScheduleCreated = "ScheduleCreated", /** PendingExternalProvisioning */ - PendingExternalProvisioning = "PendingExternalProvisioning" + PendingExternalProvisioning = "PendingExternalProvisioning", } /** @@ -3504,7 +3542,7 @@ export enum KnownRequestType { /** SelfExtend */ SelfExtend = "SelfExtend", /** SelfRenew */ - SelfRenew = "SelfRenew" + SelfRenew = "SelfRenew", } /** @@ -3531,7 +3569,7 @@ export enum KnownType { /** AfterDateTime */ AfterDateTime = "AfterDateTime", /** NoExpiration */ - NoExpiration = "NoExpiration" + NoExpiration = "NoExpiration", } /** @@ -3556,7 +3594,9 @@ export enum KnownRoleManagementPolicyRuleType { /** RoleManagementPolicyExpirationRule */ RoleManagementPolicyExpirationRule = "RoleManagementPolicyExpirationRule", /** RoleManagementPolicyNotificationRule */ - RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule" + RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule", + /** RoleManagementPolicyPimOnlyModeRule */ + RoleManagementPolicyPimOnlyModeRule = "RoleManagementPolicyPimOnlyModeRule", } /** @@ -3568,7 +3608,8 @@ export enum KnownRoleManagementPolicyRuleType { * **RoleManagementPolicyAuthenticationContextRule** \ * **RoleManagementPolicyEnablementRule** \ * **RoleManagementPolicyExpirationRule** \ - * **RoleManagementPolicyNotificationRule** + * **RoleManagementPolicyNotificationRule** \ + * **RoleManagementPolicyPimOnlyModeRule** */ export type RoleManagementPolicyRuleType = string; @@ -3579,7 +3620,7 @@ export enum KnownSeverityLevel { /** Medium */ Medium = "Medium", /** High */ - High = "High" + High = "High", } /** @@ -3602,7 +3643,7 @@ export enum KnownApprovalMode { /** Parallel */ Parallel = "Parallel", /** NoApproval */ - NoApproval = "NoApproval" + NoApproval = "NoApproval", } /** @@ -3622,7 +3663,9 @@ export enum KnownUserType { /** User */ User = "User", /** Group */ - Group = "Group" + Group = "Group", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", } /** @@ -3631,7 +3674,8 @@ export enum KnownUserType { * this enum contains the known values that the service supports. * ### Known values supported by the service * **User** \ - * **Group** + * **Group** \ + * **ServicePrincipal** */ export type UserType = string; @@ -3642,7 +3686,7 @@ export enum KnownEnablementRules { /** Justification */ Justification = "Justification", /** Ticketing */ - Ticketing = "Ticketing" + Ticketing = "Ticketing", } /** @@ -3659,7 +3703,7 @@ export type EnablementRules = string; /** Known values of {@link NotificationDeliveryMechanism} that the service accepts. */ export enum KnownNotificationDeliveryMechanism { /** Email */ - Email = "Email" + Email = "Email", } /** @@ -3678,7 +3722,7 @@ export enum KnownNotificationLevel { /** Critical */ Critical = "Critical", /** All */ - All = "All" + All = "All", } /** @@ -3699,7 +3743,7 @@ export enum KnownRecipientType { /** Approver */ Approver = "Approver", /** Admin */ - Admin = "Admin" + Admin = "Admin", } /** @@ -3713,6 +3757,45 @@ export enum KnownRecipientType { */ export type RecipientType = string; +/** Known values of {@link PIMOnlyMode} that the service accepts. */ +export enum KnownPIMOnlyMode { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** ReportOnly */ + ReportOnly = "ReportOnly", +} + +/** + * Defines values for PIMOnlyMode. \ + * {@link KnownPIMOnlyMode} can be used interchangeably with PIMOnlyMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **ReportOnly** + */ +export type PIMOnlyMode = string; + +/** Known values of {@link ExcludedPrincipalTypes} that the service accepts. */ +export enum KnownExcludedPrincipalTypes { + /** ServicePrincipalsAsTarget */ + ServicePrincipalsAsTarget = "ServicePrincipalsAsTarget", + /** ServicePrincipalsAsRequestor */ + ServicePrincipalsAsRequestor = "ServicePrincipalsAsRequestor", +} + +/** + * Defines values for ExcludedPrincipalTypes. \ + * {@link KnownExcludedPrincipalTypes} can be used interchangeably with ExcludedPrincipalTypes, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServicePrincipalsAsTarget** \ + * **ServicePrincipalsAsRequestor** + */ +export type ExcludedPrincipalTypes = string; + /** Optional parameters. */ export interface ClassicAdministratorsListOptionalParams extends coreClient.OperationOptions {} @@ -3725,7 +3808,8 @@ export interface ClassicAdministratorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ClassicAdministratorsListNextResponse = ClassicAdministratorListResult; +export type ClassicAdministratorsListNextResponse = + ClassicAdministratorListResult; /** Optional parameters. */ export interface GlobalAdministratorElevateAccessOptionalParams @@ -3749,7 +3833,8 @@ export interface DenyAssignmentsListForResourceGroupOptionalParams } /** Contains response data for the listForResourceGroup operation. */ -export type DenyAssignmentsListForResourceGroupResponse = DenyAssignmentListResult; +export type DenyAssignmentsListForResourceGroupResponse = + DenyAssignmentListResult; /** Optional parameters. */ export interface DenyAssignmentsListOptionalParams @@ -3790,14 +3875,16 @@ export interface DenyAssignmentsListForResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceNext operation. */ -export type DenyAssignmentsListForResourceNextResponse = DenyAssignmentListResult; +export type DenyAssignmentsListForResourceNextResponse = + DenyAssignmentListResult; /** Optional parameters. */ export interface DenyAssignmentsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceGroupNext operation. */ -export type DenyAssignmentsListForResourceGroupNextResponse = DenyAssignmentListResult; +export type DenyAssignmentsListForResourceGroupNextResponse = + DenyAssignmentListResult; /** Optional parameters. */ export interface DenyAssignmentsListNextOptionalParams @@ -3831,14 +3918,16 @@ export interface ProviderOperationsMetadataListOptionalParams } /** Contains response data for the list operation. */ -export type ProviderOperationsMetadataListResponse = ProviderOperationsMetadataListResult; +export type ProviderOperationsMetadataListResponse = + ProviderOperationsMetadataListResult; /** Optional parameters. */ export interface ProviderOperationsMetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ProviderOperationsMetadataListNextResponse = ProviderOperationsMetadataListResult; +export type ProviderOperationsMetadataListNextResponse = + ProviderOperationsMetadataListResult; /** Optional parameters. */ export interface RoleAssignmentsListForSubscriptionOptionalParams @@ -3850,7 +3939,8 @@ export interface RoleAssignmentsListForSubscriptionOptionalParams } /** Contains response data for the listForSubscription operation. */ -export type RoleAssignmentsListForSubscriptionResponse = RoleAssignmentListResult; +export type RoleAssignmentsListForSubscriptionResponse = + RoleAssignmentListResult; /** Optional parameters. */ export interface RoleAssignmentsListForResourceGroupOptionalParams @@ -3862,7 +3952,8 @@ export interface RoleAssignmentsListForResourceGroupOptionalParams } /** Contains response data for the listForResourceGroup operation. */ -export type RoleAssignmentsListForResourceGroupResponse = RoleAssignmentListResult; +export type RoleAssignmentsListForResourceGroupResponse = + RoleAssignmentListResult; /** Optional parameters. */ export interface RoleAssignmentsListForResourceOptionalParams @@ -3949,21 +4040,24 @@ export interface RoleAssignmentsListForSubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForSubscriptionNext operation. */ -export type RoleAssignmentsListForSubscriptionNextResponse = RoleAssignmentListResult; +export type RoleAssignmentsListForSubscriptionNextResponse = + RoleAssignmentListResult; /** Optional parameters. */ export interface RoleAssignmentsListForResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceGroupNext operation. */ -export type RoleAssignmentsListForResourceGroupNextResponse = RoleAssignmentListResult; +export type RoleAssignmentsListForResourceGroupNextResponse = + RoleAssignmentListResult; /** Optional parameters. */ export interface RoleAssignmentsListForResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForResourceNext operation. */ -export type RoleAssignmentsListForResourceNextResponse = RoleAssignmentListResult; +export type RoleAssignmentsListForResourceNextResponse = + RoleAssignmentListResult; /** Optional parameters. */ export interface RoleAssignmentsListForScopeNextOptionalParams @@ -4067,28 +4161,32 @@ export interface AccessReviewHistoryDefinitionsListOptionalParams } /** Contains response data for the list operation. */ -export type AccessReviewHistoryDefinitionsListResponse = AccessReviewHistoryDefinitionListResult; +export type AccessReviewHistoryDefinitionsListResponse = + AccessReviewHistoryDefinitionListResult; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type AccessReviewHistoryDefinitionsGetByIdResponse = AccessReviewHistoryDefinition; +export type AccessReviewHistoryDefinitionsGetByIdResponse = + AccessReviewHistoryDefinition; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewHistoryDefinitionsListNextResponse = AccessReviewHistoryDefinitionListResult; +export type AccessReviewHistoryDefinitionsListNextResponse = + AccessReviewHistoryDefinitionListResult; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type AccessReviewHistoryDefinitionCreateResponse = AccessReviewHistoryDefinition; +export type AccessReviewHistoryDefinitionCreateResponse = + AccessReviewHistoryDefinition; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionDeleteByIdOptionalParams @@ -4099,21 +4197,24 @@ export interface AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptiona extends coreClient.OperationOptions {} /** Contains response data for the generateDownloadUri operation. */ -export type AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse = AccessReviewHistoryInstance; +export type AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse = + AccessReviewHistoryInstance; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionInstancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AccessReviewHistoryDefinitionInstancesListResponse = AccessReviewHistoryDefinitionInstanceListResult; +export type AccessReviewHistoryDefinitionInstancesListResponse = + AccessReviewHistoryDefinitionInstanceListResult; /** Optional parameters. */ export interface AccessReviewHistoryDefinitionInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewHistoryDefinitionInstancesListNextResponse = AccessReviewHistoryDefinitionInstanceListResult; +export type AccessReviewHistoryDefinitionInstancesListNextResponse = + AccessReviewHistoryDefinitionInstanceListResult; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsListOptionalParams @@ -4123,14 +4224,16 @@ export interface AccessReviewScheduleDefinitionsListOptionalParams } /** Contains response data for the list operation. */ -export type AccessReviewScheduleDefinitionsListResponse = AccessReviewScheduleDefinitionListResult; +export type AccessReviewScheduleDefinitionsListResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type AccessReviewScheduleDefinitionsGetByIdResponse = AccessReviewScheduleDefinition; +export type AccessReviewScheduleDefinitionsGetByIdResponse = + AccessReviewScheduleDefinition; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsDeleteByIdOptionalParams @@ -4141,7 +4244,8 @@ export interface AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateById operation. */ -export type AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse = AccessReviewScheduleDefinition; +export type AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse = + AccessReviewScheduleDefinition; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsStopOptionalParams @@ -4152,7 +4256,8 @@ export interface AccessReviewScheduleDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewScheduleDefinitionsListNextResponse = AccessReviewScheduleDefinitionListResult; +export type AccessReviewScheduleDefinitionsListNextResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface AccessReviewInstancesListOptionalParams @@ -4183,7 +4288,8 @@ export interface AccessReviewInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewInstancesListNextResponse = AccessReviewInstanceListResult; +export type AccessReviewInstancesListNextResponse = + AccessReviewInstanceListResult; /** Optional parameters. */ export interface AccessReviewInstanceStopOptionalParams @@ -4213,42 +4319,48 @@ export interface AccessReviewInstanceDecisionsListOptionalParams } /** Contains response data for the list operation. */ -export type AccessReviewInstanceDecisionsListResponse = AccessReviewDecisionListResult; +export type AccessReviewInstanceDecisionsListResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface AccessReviewInstanceDecisionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewInstanceDecisionsListNextResponse = AccessReviewDecisionListResult; +export type AccessReviewInstanceDecisionsListNextResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface AccessReviewInstanceContactedReviewersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AccessReviewInstanceContactedReviewersListResponse = AccessReviewContactedReviewerListResult; +export type AccessReviewInstanceContactedReviewersListResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface AccessReviewInstanceContactedReviewersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewInstanceContactedReviewersListNextResponse = AccessReviewContactedReviewerListResult; +export type AccessReviewInstanceContactedReviewersListNextResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface AccessReviewDefaultSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AccessReviewDefaultSettingsGetResponse = AccessReviewDefaultSettings; +export type AccessReviewDefaultSettingsGetResponse = + AccessReviewDefaultSettings; /** Optional parameters. */ export interface AccessReviewDefaultSettingsPutOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the put operation. */ -export type AccessReviewDefaultSettingsPutResponse = AccessReviewDefaultSettings; +export type AccessReviewDefaultSettingsPutResponse = + AccessReviewDefaultSettings; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionsListOptionalParams @@ -4258,28 +4370,32 @@ export interface ScopeAccessReviewHistoryDefinitionsListOptionalParams } /** Contains response data for the list operation. */ -export type ScopeAccessReviewHistoryDefinitionsListResponse = AccessReviewHistoryDefinitionListResult; +export type ScopeAccessReviewHistoryDefinitionsListResponse = + AccessReviewHistoryDefinitionListResult; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type ScopeAccessReviewHistoryDefinitionsGetByIdResponse = AccessReviewHistoryDefinition; +export type ScopeAccessReviewHistoryDefinitionsGetByIdResponse = + AccessReviewHistoryDefinition; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewHistoryDefinitionsListNextResponse = AccessReviewHistoryDefinitionListResult; +export type ScopeAccessReviewHistoryDefinitionsListNextResponse = + AccessReviewHistoryDefinitionListResult; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type ScopeAccessReviewHistoryDefinitionCreateResponse = AccessReviewHistoryDefinition; +export type ScopeAccessReviewHistoryDefinitionCreateResponse = + AccessReviewHistoryDefinition; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams @@ -4290,21 +4406,24 @@ export interface ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOp extends coreClient.OperationOptions {} /** Contains response data for the generateDownloadUri operation. */ -export type ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse = AccessReviewHistoryInstance; +export type ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse = + AccessReviewHistoryInstance; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ScopeAccessReviewHistoryDefinitionInstancesListResponse = AccessReviewHistoryDefinitionInstanceListResult; +export type ScopeAccessReviewHistoryDefinitionInstancesListResponse = + AccessReviewHistoryDefinitionInstanceListResult; /** Optional parameters. */ export interface ScopeAccessReviewHistoryDefinitionInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewHistoryDefinitionInstancesListNextResponse = AccessReviewHistoryDefinitionInstanceListResult; +export type ScopeAccessReviewHistoryDefinitionInstancesListNextResponse = + AccessReviewHistoryDefinitionInstanceListResult; /** Optional parameters. */ export interface ScopeAccessReviewScheduleDefinitionsListOptionalParams @@ -4314,14 +4433,16 @@ export interface ScopeAccessReviewScheduleDefinitionsListOptionalParams } /** Contains response data for the list operation. */ -export type ScopeAccessReviewScheduleDefinitionsListResponse = AccessReviewScheduleDefinitionListResult; +export type ScopeAccessReviewScheduleDefinitionsListResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type ScopeAccessReviewScheduleDefinitionsGetByIdResponse = AccessReviewScheduleDefinition; +export type ScopeAccessReviewScheduleDefinitionsGetByIdResponse = + AccessReviewScheduleDefinition; /** Optional parameters. */ export interface ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams @@ -4332,7 +4453,8 @@ export interface ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalP extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdateById operation. */ -export type ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse = AccessReviewScheduleDefinition; +export type ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse = + AccessReviewScheduleDefinition; /** Optional parameters. */ export interface ScopeAccessReviewScheduleDefinitionsStopOptionalParams @@ -4343,7 +4465,8 @@ export interface ScopeAccessReviewScheduleDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewScheduleDefinitionsListNextResponse = AccessReviewScheduleDefinitionListResult; +export type ScopeAccessReviewScheduleDefinitionsListNextResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstancesListOptionalParams @@ -4353,7 +4476,8 @@ export interface ScopeAccessReviewInstancesListOptionalParams } /** Contains response data for the list operation. */ -export type ScopeAccessReviewInstancesListResponse = AccessReviewInstanceListResult; +export type ScopeAccessReviewInstancesListResponse = + AccessReviewInstanceListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstancesGetByIdOptionalParams @@ -4374,7 +4498,8 @@ export interface ScopeAccessReviewInstancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewInstancesListNextResponse = AccessReviewInstanceListResult; +export type ScopeAccessReviewInstancesListNextResponse = + AccessReviewInstanceListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstanceStopOptionalParams @@ -4404,42 +4529,48 @@ export interface ScopeAccessReviewInstanceDecisionsListOptionalParams } /** Contains response data for the list operation. */ -export type ScopeAccessReviewInstanceDecisionsListResponse = AccessReviewDecisionListResult; +export type ScopeAccessReviewInstanceDecisionsListResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstanceDecisionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewInstanceDecisionsListNextResponse = AccessReviewDecisionListResult; +export type ScopeAccessReviewInstanceDecisionsListNextResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstanceContactedReviewersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ScopeAccessReviewInstanceContactedReviewersListResponse = AccessReviewContactedReviewerListResult; +export type ScopeAccessReviewInstanceContactedReviewersListResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface ScopeAccessReviewInstanceContactedReviewersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ScopeAccessReviewInstanceContactedReviewersListNextResponse = AccessReviewContactedReviewerListResult; +export type ScopeAccessReviewInstanceContactedReviewersListNextResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface ScopeAccessReviewDefaultSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ScopeAccessReviewDefaultSettingsGetResponse = AccessReviewDefaultSettings; +export type ScopeAccessReviewDefaultSettingsGetResponse = + AccessReviewDefaultSettings; /** Optional parameters. */ export interface ScopeAccessReviewDefaultSettingsPutOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the put operation. */ -export type ScopeAccessReviewDefaultSettingsPutResponse = AccessReviewDefaultSettings; +export type ScopeAccessReviewDefaultSettingsPutResponse = + AccessReviewDefaultSettings; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams @@ -4449,14 +4580,16 @@ export interface AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptiona } /** Contains response data for the list operation. */ -export type AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse = AccessReviewScheduleDefinitionListResult; +export type AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse = AccessReviewScheduleDefinitionListResult; +export type AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse = + AccessReviewScheduleDefinitionListResult; /** Optional parameters. */ export interface AccessReviewInstancesAssignedForMyApprovalListOptionalParams @@ -4466,21 +4599,24 @@ export interface AccessReviewInstancesAssignedForMyApprovalListOptionalParams } /** Contains response data for the list operation. */ -export type AccessReviewInstancesAssignedForMyApprovalListResponse = AccessReviewInstanceListResult; +export type AccessReviewInstancesAssignedForMyApprovalListResponse = + AccessReviewInstanceListResult; /** Optional parameters. */ export interface AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type AccessReviewInstancesAssignedForMyApprovalGetByIdResponse = AccessReviewInstance; +export type AccessReviewInstancesAssignedForMyApprovalGetByIdResponse = + AccessReviewInstance; /** Optional parameters. */ export interface AccessReviewInstancesAssignedForMyApprovalListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewInstancesAssignedForMyApprovalListNextResponse = AccessReviewInstanceListResult; +export type AccessReviewInstancesAssignedForMyApprovalListNextResponse = + AccessReviewInstanceListResult; /** Optional parameters. */ export interface AccessReviewInstanceMyDecisionsListOptionalParams @@ -4490,14 +4626,16 @@ export interface AccessReviewInstanceMyDecisionsListOptionalParams } /** Contains response data for the list operation. */ -export type AccessReviewInstanceMyDecisionsListResponse = AccessReviewDecisionListResult; +export type AccessReviewInstanceMyDecisionsListResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface AccessReviewInstanceMyDecisionsGetByIdOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getById operation. */ -export type AccessReviewInstanceMyDecisionsGetByIdResponse = AccessReviewDecision; +export type AccessReviewInstanceMyDecisionsGetByIdResponse = + AccessReviewDecision; /** Optional parameters. */ export interface AccessReviewInstanceMyDecisionsPatchOptionalParams @@ -4511,21 +4649,24 @@ export interface AccessReviewInstanceMyDecisionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AccessReviewInstanceMyDecisionsListNextResponse = AccessReviewDecisionListResult; +export type AccessReviewInstanceMyDecisionsListNextResponse = + AccessReviewDecisionListResult; /** Optional parameters. */ export interface TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type TenantLevelAccessReviewInstanceContactedReviewersListResponse = AccessReviewContactedReviewerListResult; +export type TenantLevelAccessReviewInstanceContactedReviewersListResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface TenantLevelAccessReviewInstanceContactedReviewersListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type TenantLevelAccessReviewInstanceContactedReviewersListNextResponse = AccessReviewContactedReviewerListResult; +export type TenantLevelAccessReviewInstanceContactedReviewersListNextResponse = + AccessReviewContactedReviewerListResult; /** Optional parameters. */ export interface EligibleChildResourcesGetOptionalParams @@ -4535,14 +4676,16 @@ export interface EligibleChildResourcesGetOptionalParams } /** Contains response data for the get operation. */ -export type EligibleChildResourcesGetResponse = EligibleChildResourcesListResult; +export type EligibleChildResourcesGetResponse = + EligibleChildResourcesListResult; /** Optional parameters. */ export interface EligibleChildResourcesGetNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getNext operation. */ -export type EligibleChildResourcesGetNextResponse = EligibleChildResourcesListResult; +export type EligibleChildResourcesGetNextResponse = + EligibleChildResourcesListResult; /** Optional parameters. */ export interface RoleAssignmentSchedulesGetOptionalParams @@ -4559,14 +4702,16 @@ export interface RoleAssignmentSchedulesListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleAssignmentSchedulesListForScopeResponse = RoleAssignmentScheduleListResult; +export type RoleAssignmentSchedulesListForScopeResponse = + RoleAssignmentScheduleListResult; /** Optional parameters. */ export interface RoleAssignmentSchedulesListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleAssignmentSchedulesListForScopeNextResponse = RoleAssignmentScheduleListResult; +export type RoleAssignmentSchedulesListForScopeNextResponse = + RoleAssignmentScheduleListResult; /** Optional parameters. */ export interface RoleAssignmentScheduleInstancesListForScopeOptionalParams @@ -4576,35 +4721,40 @@ export interface RoleAssignmentScheduleInstancesListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleAssignmentScheduleInstancesListForScopeResponse = RoleAssignmentScheduleInstanceListResult; +export type RoleAssignmentScheduleInstancesListForScopeResponse = + RoleAssignmentScheduleInstanceListResult; /** Optional parameters. */ export interface RoleAssignmentScheduleInstancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoleAssignmentScheduleInstancesGetResponse = RoleAssignmentScheduleInstance; +export type RoleAssignmentScheduleInstancesGetResponse = + RoleAssignmentScheduleInstance; /** Optional parameters. */ export interface RoleAssignmentScheduleInstancesListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleAssignmentScheduleInstancesListForScopeNextResponse = RoleAssignmentScheduleInstanceListResult; +export type RoleAssignmentScheduleInstancesListForScopeNextResponse = + RoleAssignmentScheduleInstanceListResult; /** Optional parameters. */ export interface RoleAssignmentScheduleRequestsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type RoleAssignmentScheduleRequestsCreateResponse = RoleAssignmentScheduleRequest; +export type RoleAssignmentScheduleRequestsCreateResponse = + RoleAssignmentScheduleRequest; /** Optional parameters. */ export interface RoleAssignmentScheduleRequestsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoleAssignmentScheduleRequestsGetResponse = RoleAssignmentScheduleRequest; +export type RoleAssignmentScheduleRequestsGetResponse = + RoleAssignmentScheduleRequest; /** Optional parameters. */ export interface RoleAssignmentScheduleRequestsListForScopeOptionalParams @@ -4614,7 +4764,8 @@ export interface RoleAssignmentScheduleRequestsListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleAssignmentScheduleRequestsListForScopeResponse = RoleAssignmentScheduleRequestListResult; +export type RoleAssignmentScheduleRequestsListForScopeResponse = + RoleAssignmentScheduleRequestListResult; /** Optional parameters. */ export interface RoleAssignmentScheduleRequestsCancelOptionalParams @@ -4625,14 +4776,16 @@ export interface RoleAssignmentScheduleRequestsValidateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the validate operation. */ -export type RoleAssignmentScheduleRequestsValidateResponse = RoleAssignmentScheduleRequest; +export type RoleAssignmentScheduleRequestsValidateResponse = + RoleAssignmentScheduleRequest; /** Optional parameters. */ export interface RoleAssignmentScheduleRequestsListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleAssignmentScheduleRequestsListForScopeNextResponse = RoleAssignmentScheduleRequestListResult; +export type RoleAssignmentScheduleRequestsListForScopeNextResponse = + RoleAssignmentScheduleRequestListResult; /** Optional parameters. */ export interface RoleEligibilitySchedulesGetOptionalParams @@ -4649,14 +4802,16 @@ export interface RoleEligibilitySchedulesListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleEligibilitySchedulesListForScopeResponse = RoleEligibilityScheduleListResult; +export type RoleEligibilitySchedulesListForScopeResponse = + RoleEligibilityScheduleListResult; /** Optional parameters. */ export interface RoleEligibilitySchedulesListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleEligibilitySchedulesListForScopeNextResponse = RoleEligibilityScheduleListResult; +export type RoleEligibilitySchedulesListForScopeNextResponse = + RoleEligibilityScheduleListResult; /** Optional parameters. */ export interface RoleEligibilityScheduleInstancesListForScopeOptionalParams @@ -4666,35 +4821,40 @@ export interface RoleEligibilityScheduleInstancesListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleEligibilityScheduleInstancesListForScopeResponse = RoleEligibilityScheduleInstanceListResult; +export type RoleEligibilityScheduleInstancesListForScopeResponse = + RoleEligibilityScheduleInstanceListResult; /** Optional parameters. */ export interface RoleEligibilityScheduleInstancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoleEligibilityScheduleInstancesGetResponse = RoleEligibilityScheduleInstance; +export type RoleEligibilityScheduleInstancesGetResponse = + RoleEligibilityScheduleInstance; /** Optional parameters. */ export interface RoleEligibilityScheduleInstancesListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleEligibilityScheduleInstancesListForScopeNextResponse = RoleEligibilityScheduleInstanceListResult; +export type RoleEligibilityScheduleInstancesListForScopeNextResponse = + RoleEligibilityScheduleInstanceListResult; /** Optional parameters. */ export interface RoleEligibilityScheduleRequestsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type RoleEligibilityScheduleRequestsCreateResponse = RoleEligibilityScheduleRequest; +export type RoleEligibilityScheduleRequestsCreateResponse = + RoleEligibilityScheduleRequest; /** Optional parameters. */ export interface RoleEligibilityScheduleRequestsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoleEligibilityScheduleRequestsGetResponse = RoleEligibilityScheduleRequest; +export type RoleEligibilityScheduleRequestsGetResponse = + RoleEligibilityScheduleRequest; /** Optional parameters. */ export interface RoleEligibilityScheduleRequestsListForScopeOptionalParams @@ -4704,7 +4864,8 @@ export interface RoleEligibilityScheduleRequestsListForScopeOptionalParams } /** Contains response data for the listForScope operation. */ -export type RoleEligibilityScheduleRequestsListForScopeResponse = RoleEligibilityScheduleRequestListResult; +export type RoleEligibilityScheduleRequestsListForScopeResponse = + RoleEligibilityScheduleRequestListResult; /** Optional parameters. */ export interface RoleEligibilityScheduleRequestsCancelOptionalParams @@ -4715,14 +4876,16 @@ export interface RoleEligibilityScheduleRequestsValidateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the validate operation. */ -export type RoleEligibilityScheduleRequestsValidateResponse = RoleEligibilityScheduleRequest; +export type RoleEligibilityScheduleRequestsValidateResponse = + RoleEligibilityScheduleRequest; /** Optional parameters. */ export interface RoleEligibilityScheduleRequestsListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleEligibilityScheduleRequestsListForScopeNextResponse = RoleEligibilityScheduleRequestListResult; +export type RoleEligibilityScheduleRequestsListForScopeNextResponse = + RoleEligibilityScheduleRequestListResult; /** Optional parameters. */ export interface RoleManagementPoliciesGetOptionalParams @@ -4747,28 +4910,32 @@ export interface RoleManagementPoliciesListForScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScope operation. */ -export type RoleManagementPoliciesListForScopeResponse = RoleManagementPolicyListResult; +export type RoleManagementPoliciesListForScopeResponse = + RoleManagementPolicyListResult; /** Optional parameters. */ export interface RoleManagementPoliciesListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleManagementPoliciesListForScopeNextResponse = RoleManagementPolicyListResult; +export type RoleManagementPoliciesListForScopeNextResponse = + RoleManagementPolicyListResult; /** Optional parameters. */ export interface RoleManagementPolicyAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RoleManagementPolicyAssignmentsGetResponse = RoleManagementPolicyAssignment; +export type RoleManagementPolicyAssignmentsGetResponse = + RoleManagementPolicyAssignment; /** Optional parameters. */ export interface RoleManagementPolicyAssignmentsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type RoleManagementPolicyAssignmentsCreateResponse = RoleManagementPolicyAssignment; +export type RoleManagementPolicyAssignmentsCreateResponse = + RoleManagementPolicyAssignment; /** Optional parameters. */ export interface RoleManagementPolicyAssignmentsDeleteOptionalParams @@ -4779,14 +4946,16 @@ export interface RoleManagementPolicyAssignmentsListForScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScope operation. */ -export type RoleManagementPolicyAssignmentsListForScopeResponse = RoleManagementPolicyAssignmentListResult; +export type RoleManagementPolicyAssignmentsListForScopeResponse = + RoleManagementPolicyAssignmentListResult; /** Optional parameters. */ export interface RoleManagementPolicyAssignmentsListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type RoleManagementPolicyAssignmentsListForScopeNextResponse = RoleManagementPolicyAssignmentListResult; +export type RoleManagementPolicyAssignmentsListForScopeNextResponse = + RoleManagementPolicyAssignmentListResult; /** Optional parameters. */ export interface AlertsGetOptionalParams extends coreClient.OperationOptions {} @@ -4853,14 +5022,16 @@ export interface AlertConfigurationsListForScopeOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScope operation. */ -export type AlertConfigurationsListForScopeResponse = AlertConfigurationListResult; +export type AlertConfigurationsListForScopeResponse = + AlertConfigurationListResult; /** Optional parameters. */ export interface AlertConfigurationsListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type AlertConfigurationsListForScopeNextResponse = AlertConfigurationListResult; +export type AlertConfigurationsListForScopeNextResponse = + AlertConfigurationListResult; /** Optional parameters. */ export interface AlertDefinitionsGetOptionalParams @@ -4881,7 +5052,8 @@ export interface AlertDefinitionsListForScopeNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listForScopeNext operation. */ -export type AlertDefinitionsListForScopeNextResponse = AlertDefinitionListResult; +export type AlertDefinitionsListForScopeNextResponse = + AlertDefinitionListResult; /** Optional parameters. */ export interface AlertIncidentsGetOptionalParams diff --git a/sdk/authorization/arm-authorization/src/models/mappers.ts b/sdk/authorization/arm-authorization/src/models/mappers.ts index 43bcf3fafc0f..e9a2ef3e8baa 100644 --- a/sdk/authorization/arm-authorization/src/models/mappers.ts +++ b/sdk/authorization/arm-authorization/src/models/mappers.ts @@ -20,19 +20,19 @@ export const ClassicAdministratorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClassicAdministrator" - } - } - } + className: "ClassicAdministrator", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClassicAdministrator: coreClient.CompositeMapper = { @@ -43,35 +43,35 @@ export const ClassicAdministrator: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, emailAddress: { serializedName: "properties.emailAddress", type: { - name: "String" - } + name: "String", + }, }, role: { serializedName: "properties.role", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -83,11 +83,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -99,22 +99,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -124,10 +124,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -137,13 +137,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -155,19 +155,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const DenyAssignmentListResult: coreClient.CompositeMapper = { @@ -182,19 +182,19 @@ export const DenyAssignmentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DenyAssignment" - } - } - } + className: "DenyAssignment", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DenyAssignment: coreClient.CompositeMapper = { @@ -206,34 +206,34 @@ export const DenyAssignment: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, denyAssignmentName: { serializedName: "properties.denyAssignmentName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, permissions: { serializedName: "properties.permissions", @@ -242,22 +242,22 @@ export const DenyAssignment: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DenyAssignmentPermission" - } - } - } + className: "DenyAssignmentPermission", + }, + }, + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, doNotApplyToChildScopes: { serializedName: "properties.doNotApplyToChildScopes", type: { - name: "Boolean" - } + name: "Boolean", + }, }, principals: { serializedName: "properties.principals", @@ -266,10 +266,10 @@ export const DenyAssignment: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Principal" - } - } - } + className: "Principal", + }, + }, + }, }, excludePrincipals: { serializedName: "properties.excludePrincipals", @@ -278,59 +278,59 @@ export const DenyAssignment: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Principal" - } - } - } + className: "Principal", + }, + }, + }, }, isSystemProtected: { serializedName: "properties.isSystemProtected", type: { - name: "Boolean" - } + name: "Boolean", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdBy: { serializedName: "properties.createdBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, updatedBy: { serializedName: "properties.updatedBy", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DenyAssignmentPermission: coreClient.CompositeMapper = { @@ -344,10 +344,10 @@ export const DenyAssignmentPermission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notActions: { serializedName: "notActions", @@ -355,10 +355,10 @@ export const DenyAssignmentPermission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, dataActions: { serializedName: "dataActions", @@ -366,10 +366,10 @@ export const DenyAssignmentPermission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notDataActions: { serializedName: "notDataActions", @@ -377,25 +377,25 @@ export const DenyAssignmentPermission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, condition: { serializedName: "condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "conditionVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Principal: coreClient.CompositeMapper = { @@ -406,29 +406,29 @@ export const Principal: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, email: { serializedName: "email", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderOperationsMetadata: coreClient.CompositeMapper = { @@ -439,26 +439,26 @@ export const ProviderOperationsMetadata: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, resourceTypes: { serializedName: "resourceTypes", @@ -467,10 +467,10 @@ export const ProviderOperationsMetadata: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceType" - } - } - } + className: "ResourceType", + }, + }, + }, }, operations: { serializedName: "operations", @@ -479,13 +479,13 @@ export const ProviderOperationsMetadata: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderOperation" - } - } - } - } - } - } + className: "ProviderOperation", + }, + }, + }, + }, + }, + }, }; export const ResourceType: coreClient.CompositeMapper = { @@ -496,14 +496,14 @@ export const ResourceType: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, operations: { serializedName: "operations", @@ -512,13 +512,13 @@ export const ResourceType: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderOperation" - } - } - } - } - } - } + className: "ProviderOperation", + }, + }, + }, + }, + }, + }, }; export const ProviderOperation: coreClient.CompositeMapper = { @@ -529,70 +529,71 @@ export const ProviderOperation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } - } - } - } -}; - -export const ProviderOperationsMetadataListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProviderOperationsMetadataListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ProviderOperationsMetadata" - } - } - } + name: "Boolean", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const ProviderOperationsMetadataListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProviderOperationsMetadataListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProviderOperationsMetadata", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const RoleAssignmentListResult: coreClient.CompositeMapper = { type: { @@ -606,20 +607,20 @@ export const RoleAssignmentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleAssignment" - } - } - } + className: "RoleAssignment", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleAssignment: coreClient.CompositeMapper = { @@ -631,102 +632,102 @@ export const RoleAssignment: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdBy: { serializedName: "properties.createdBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, updatedBy: { serializedName: "properties.updatedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, delegatedManagedIdentityResourceId: { serializedName: "properties.delegatedManagedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleAssignmentCreateParameters: coreClient.CompositeMapper = { @@ -738,83 +739,83 @@ export const RoleAssignmentCreateParameters: coreClient.CompositeMapper = { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", required: true, type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", required: true, type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdBy: { serializedName: "properties.createdBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, updatedBy: { serializedName: "properties.updatedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, delegatedManagedIdentityResourceId: { serializedName: "properties.delegatedManagedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PermissionGetResult: coreClient.CompositeMapper = { @@ -829,19 +830,19 @@ export const PermissionGetResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Permission" - } - } - } + className: "Permission", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Permission: coreClient.CompositeMapper = { @@ -855,10 +856,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notActions: { serializedName: "notActions", @@ -866,10 +867,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, dataActions: { serializedName: "dataActions", @@ -877,10 +878,10 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, notDataActions: { serializedName: "notDataActions", @@ -888,27 +889,27 @@ export const Permission: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, condition: { serializedName: "condition", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "conditionVersion", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleDefinition: coreClient.CompositeMapper = { @@ -920,40 +921,40 @@ export const RoleDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleName: { serializedName: "properties.roleName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, roleType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, permissions: { serializedName: "properties.permissions", @@ -962,10 +963,10 @@ export const RoleDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Permission" - } - } - } + className: "Permission", + }, + }, + }, }, assignableScopes: { serializedName: "properties.assignableScopes", @@ -973,41 +974,41 @@ export const RoleDefinition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, createdBy: { serializedName: "properties.createdBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, updatedBy: { serializedName: "properties.updatedBy", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleDefinitionListResult: coreClient.CompositeMapper = { @@ -1022,19 +1023,19 @@ export const RoleDefinitionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleDefinition" - } - } - } + className: "RoleDefinition", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -1049,19 +1050,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -1072,30 +1073,30 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -1107,32 +1108,32 @@ export const OperationDisplay: coreClient.CompositeMapper = { serializedName: "provider", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ErrorDefinition: coreClient.CompositeMapper = { @@ -1144,11 +1145,11 @@ export const ErrorDefinition: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDefinitionProperties" - } - } - } - } + className: "ErrorDefinitionProperties", + }, + }, + }, + }, }; export const ErrorDefinitionProperties: coreClient.CompositeMapper = { @@ -1160,45 +1161,46 @@ export const ErrorDefinitionProperties: coreClient.CompositeMapper = { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, code: { serializedName: "code", type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewHistoryDefinitionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewHistoryDefinitionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewHistoryDefinition" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const AccessReviewHistoryDefinitionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewHistoryDefinitionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewHistoryDefinition", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const AccessReviewHistoryDefinition: coreClient.CompositeMapper = { type: { @@ -1209,44 +1211,44 @@ export const AccessReviewHistoryDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, reviewHistoryPeriodStartDateTime: { serializedName: "properties.reviewHistoryPeriodStartDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, reviewHistoryPeriodEndDateTime: { serializedName: "properties.reviewHistoryPeriodEndDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, decisions: { serializedName: "properties.decisions", @@ -1255,25 +1257,25 @@ export const AccessReviewHistoryDefinition: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "properties.createdDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, scopes: { serializedName: "properties.scopes", @@ -1282,10 +1284,10 @@ export const AccessReviewHistoryDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewScope" - } - } - } + className: "AccessReviewScope", + }, + }, + }, }, instances: { serializedName: "properties.instances", @@ -1294,244 +1296,245 @@ export const AccessReviewHistoryDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewHistoryInstance" - } - } - } + className: "AccessReviewHistoryInstance", + }, + }, + }, }, typePropertiesSettingsRangeType: { serializedName: "properties.settings.range.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, numberOfOccurrences: { serializedName: "properties.settings.range.numberOfOccurrences", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, startDate: { serializedName: "properties.settings.range.startDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDate: { serializedName: "properties.settings.range.endDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, typePropertiesSettingsPatternType: { serializedName: "properties.settings.pattern.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, interval: { serializedName: "properties.settings.pattern.interval", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, principalId: { serializedName: "properties.createdBy.principalId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.createdBy.principalType", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalName: { serializedName: "properties.createdBy.principalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalName: { serializedName: "properties.createdBy.userPrincipalName", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewHistoryDefinitionProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewHistoryDefinitionProperties", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - reviewHistoryPeriodStartDateTime: { - serializedName: "reviewHistoryPeriodStartDateTime", - readOnly: true, - nullable: true, - type: { - name: "DateTime" - } - }, - reviewHistoryPeriodEndDateTime: { - serializedName: "reviewHistoryPeriodEndDateTime", - readOnly: true, - nullable: true, - type: { - name: "DateTime" - } - }, - decisions: { - serializedName: "decisions", - nullable: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "String" - } - }, - createdDateTime: { - serializedName: "createdDateTime", - readOnly: true, - nullable: true, - type: { - name: "DateTime" - } - }, - scopes: { - serializedName: "scopes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewScope" - } - } - } - }, - instances: { - serializedName: "instances", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewHistoryInstance" - } - } - } - }, - typeSettingsRangeType: { - serializedName: "settings.range.type", - nullable: true, - type: { - name: "String" - } - }, - numberOfOccurrences: { - serializedName: "settings.range.numberOfOccurrences", - nullable: true, - type: { - name: "Number" - } - }, - startDate: { - serializedName: "settings.range.startDate", - nullable: true, - type: { - name: "DateTime" - } - }, - endDate: { - serializedName: "settings.range.endDate", - nullable: true, - type: { - name: "DateTime" - } - }, - typeSettingsPatternType: { - serializedName: "settings.pattern.type", - nullable: true, - type: { - name: "String" - } - }, - interval: { - serializedName: "settings.pattern.interval", - nullable: true, - type: { - name: "Number" - } - }, - principalId: { - serializedName: "createdBy.principalId", - readOnly: true, - nullable: true, - type: { - name: "String" - } - }, - principalType: { - serializedName: "createdBy.principalType", - readOnly: true, - nullable: true, - type: { - name: "String" - } + name: "String", + }, }, - principalName: { - serializedName: "createdBy.principalName", - readOnly: true, - nullable: true, - type: { - name: "String" - } + }, + }, +}; + +export const AccessReviewHistoryDefinitionProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewHistoryDefinitionProperties", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + reviewHistoryPeriodStartDateTime: { + serializedName: "reviewHistoryPeriodStartDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime", + }, + }, + reviewHistoryPeriodEndDateTime: { + serializedName: "reviewHistoryPeriodEndDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime", + }, + }, + decisions: { + serializedName: "decisions", + nullable: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + createdDateTime: { + serializedName: "createdDateTime", + readOnly: true, + nullable: true, + type: { + name: "DateTime", + }, + }, + scopes: { + serializedName: "scopes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewScope", + }, + }, + }, + }, + instances: { + serializedName: "instances", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewHistoryInstance", + }, + }, + }, + }, + typeSettingsRangeType: { + serializedName: "settings.range.type", + nullable: true, + type: { + name: "String", + }, + }, + numberOfOccurrences: { + serializedName: "settings.range.numberOfOccurrences", + nullable: true, + type: { + name: "Number", + }, + }, + startDate: { + serializedName: "settings.range.startDate", + nullable: true, + type: { + name: "DateTime", + }, + }, + endDate: { + serializedName: "settings.range.endDate", + nullable: true, + type: { + name: "DateTime", + }, + }, + typeSettingsPatternType: { + serializedName: "settings.pattern.type", + nullable: true, + type: { + name: "String", + }, + }, + interval: { + serializedName: "settings.pattern.interval", + nullable: true, + type: { + name: "Number", + }, + }, + principalId: { + serializedName: "createdBy.principalId", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, + principalType: { + serializedName: "createdBy.principalType", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, + principalName: { + serializedName: "createdBy.principalName", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, + userPrincipalName: { + serializedName: "createdBy.userPrincipalName", + readOnly: true, + nullable: true, + type: { + name: "String", + }, + }, }, - userPrincipalName: { - serializedName: "createdBy.userPrincipalName", - readOnly: true, - nullable: true, - type: { - name: "String" - } - } - } - } -}; + }, + }; export const AccessReviewScope: coreClient.CompositeMapper = { type: { @@ -1542,68 +1545,68 @@ export const AccessReviewScope: coreClient.CompositeMapper = { serializedName: "resourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "roleDefinitionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "principalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assignmentState: { serializedName: "assignmentState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, inactiveDuration: { serializedName: "inactiveDuration", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, expandNestedMemberships: { serializedName: "expandNestedMemberships", type: { - name: "Boolean" - } + name: "Boolean", + }, }, includeInheritedAccess: { serializedName: "includeInheritedAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, includeAccessBelowResource: { serializedName: "includeAccessBelowResource", type: { - name: "Boolean" - } + name: "Boolean", + }, }, excludeResourceId: { serializedName: "excludeResourceId", type: { - name: "String" - } + name: "String", + }, }, excludeRoleDefinitionId: { serializedName: "excludeRoleDefinitionId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewHistoryInstance: coreClient.CompositeMapper = { @@ -1615,133 +1618,135 @@ export const AccessReviewHistoryInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, reviewHistoryPeriodStartDateTime: { serializedName: "properties.reviewHistoryPeriodStartDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, reviewHistoryPeriodEndDateTime: { serializedName: "properties.reviewHistoryPeriodEndDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, runDateTime: { serializedName: "properties.runDateTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, fulfilledDateTime: { serializedName: "properties.fulfilledDateTime", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, downloadUri: { serializedName: "properties.downloadUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expiration: { serializedName: "properties.expiration", nullable: true, type: { - name: "DateTime" - } - } - } - } -}; - -export const AccessReviewHistoryDefinitionInstanceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewHistoryDefinitionInstanceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewHistoryInstance" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewScheduleDefinitionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewScheduleDefinitionListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewScheduleDefinition" - } - } - } + }, + }, +}; + +export const AccessReviewHistoryDefinitionInstanceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewHistoryDefinitionInstanceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewHistoryInstance", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const AccessReviewScheduleDefinitionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewScheduleDefinitionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewScheduleDefinition", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const AccessReviewScheduleDefinition: coreClient.CompositeMapper = { type: { @@ -1752,47 +1757,47 @@ export const AccessReviewScheduleDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, descriptionForAdmins: { serializedName: "properties.descriptionForAdmins", type: { - name: "String" - } + name: "String", + }, }, descriptionForReviewers: { serializedName: "properties.descriptionForReviewers", type: { - name: "String" - } + name: "String", + }, }, reviewers: { serializedName: "properties.reviewers", @@ -1801,10 +1806,10 @@ export const AccessReviewScheduleDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, backupReviewers: { serializedName: "properties.backupReviewers", @@ -1813,17 +1818,17 @@ export const AccessReviewScheduleDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, reviewersType: { serializedName: "properties.reviewersType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instances: { serializedName: "properties.instances", @@ -1832,560 +1837,561 @@ export const AccessReviewScheduleDefinition: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewInstance" - } - } - } + className: "AccessReviewInstance", + }, + }, + }, }, resourceId: { serializedName: "properties.scope.resourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.scope.roleDefinitionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalTypePropertiesScopePrincipalType: { serializedName: "properties.scope.principalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assignmentState: { serializedName: "properties.scope.assignmentState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, inactiveDuration: { serializedName: "properties.scope.inactiveDuration", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, expandNestedMemberships: { serializedName: "properties.scope.expandNestedMemberships", type: { - name: "Boolean" - } + name: "Boolean", + }, }, includeInheritedAccess: { serializedName: "properties.scope.includeInheritedAccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, includeAccessBelowResource: { serializedName: "properties.scope.includeAccessBelowResource", type: { - name: "Boolean" - } + name: "Boolean", + }, }, excludeResourceId: { serializedName: "properties.scope.excludeResourceId", type: { - name: "String" - } + name: "String", + }, }, excludeRoleDefinitionId: { serializedName: "properties.scope.excludeRoleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, mailNotificationsEnabled: { serializedName: "properties.settings.mailNotificationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reminderNotificationsEnabled: { serializedName: "properties.settings.reminderNotificationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultDecisionEnabled: { serializedName: "properties.settings.defaultDecisionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, justificationRequiredOnApproval: { serializedName: "properties.settings.justificationRequiredOnApproval", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultDecision: { serializedName: "properties.settings.defaultDecision", type: { - name: "String" - } + name: "String", + }, }, autoApplyDecisionsEnabled: { serializedName: "properties.settings.autoApplyDecisionsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, recommendationsEnabled: { serializedName: "properties.settings.recommendationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, recommendationLookBackDuration: { serializedName: "properties.settings.recommendationLookBackDuration", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, instanceDurationInDays: { serializedName: "properties.settings.instanceDurationInDays", type: { - name: "Number" - } + name: "Number", + }, }, typePropertiesSettingsRecurrenceRangeType: { serializedName: "properties.settings.recurrence.range.type", type: { - name: "String" - } + name: "String", + }, }, numberOfOccurrences: { serializedName: "properties.settings.recurrence.range.numberOfOccurrences", type: { - name: "Number" - } + name: "Number", + }, }, startDate: { serializedName: "properties.settings.recurrence.range.startDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDate: { serializedName: "properties.settings.recurrence.range.endDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, typePropertiesSettingsRecurrencePatternType: { serializedName: "properties.settings.recurrence.pattern.type", type: { - name: "String" - } + name: "String", + }, }, interval: { serializedName: "properties.settings.recurrence.pattern.interval", type: { - name: "Number" - } + name: "Number", + }, }, principalId: { serializedName: "properties.createdBy.principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalTypePropertiesCreatedByPrincipalType: { serializedName: "properties.createdBy.principalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, principalName: { serializedName: "properties.createdBy.principalName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalName: { serializedName: "properties.createdBy.userPrincipalName", readOnly: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AccessReviewScheduleDefinitionProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewScheduleDefinitionProperties", + modelProperties: { + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "String", + }, + }, + descriptionForAdmins: { + serializedName: "descriptionForAdmins", + type: { + name: "String", + }, + }, + descriptionForReviewers: { + serializedName: "descriptionForReviewers", + type: { + name: "String", + }, + }, + reviewers: { + serializedName: "reviewers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewReviewer", + }, + }, + }, + }, + backupReviewers: { + serializedName: "backupReviewers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewReviewer", + }, + }, + }, + }, + reviewersType: { + serializedName: "reviewersType", + readOnly: true, + type: { + name: "String", + }, + }, + instances: { + serializedName: "instances", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewInstance", + }, + }, + }, + }, + resourceId: { + serializedName: "scope.resourceId", + readOnly: true, + type: { + name: "String", + }, + }, + roleDefinitionId: { + serializedName: "scope.roleDefinitionId", + readOnly: true, + type: { + name: "String", + }, + }, + principalTypeScopePrincipalType: { + serializedName: "scope.principalType", + readOnly: true, + type: { + name: "String", + }, + }, + assignmentState: { + serializedName: "scope.assignmentState", + readOnly: true, + type: { + name: "String", + }, + }, + inactiveDuration: { + serializedName: "scope.inactiveDuration", + type: { + name: "TimeSpan", + }, + }, + expandNestedMemberships: { + serializedName: "scope.expandNestedMemberships", + type: { + name: "Boolean", + }, + }, + includeInheritedAccess: { + serializedName: "scope.includeInheritedAccess", + type: { + name: "Boolean", + }, + }, + includeAccessBelowResource: { + serializedName: "scope.includeAccessBelowResource", + type: { + name: "Boolean", + }, + }, + excludeResourceId: { + serializedName: "scope.excludeResourceId", + type: { + name: "String", + }, + }, + excludeRoleDefinitionId: { + serializedName: "scope.excludeRoleDefinitionId", + type: { + name: "String", + }, + }, + mailNotificationsEnabled: { + serializedName: "settings.mailNotificationsEnabled", + type: { + name: "Boolean", + }, + }, + reminderNotificationsEnabled: { + serializedName: "settings.reminderNotificationsEnabled", + type: { + name: "Boolean", + }, + }, + defaultDecisionEnabled: { + serializedName: "settings.defaultDecisionEnabled", + type: { + name: "Boolean", + }, + }, + justificationRequiredOnApproval: { + serializedName: "settings.justificationRequiredOnApproval", + type: { + name: "Boolean", + }, + }, + defaultDecision: { + serializedName: "settings.defaultDecision", + type: { + name: "String", + }, + }, + autoApplyDecisionsEnabled: { + serializedName: "settings.autoApplyDecisionsEnabled", + type: { + name: "Boolean", + }, + }, + recommendationsEnabled: { + serializedName: "settings.recommendationsEnabled", + type: { + name: "Boolean", + }, + }, + recommendationLookBackDuration: { + serializedName: "settings.recommendationLookBackDuration", + type: { + name: "TimeSpan", + }, + }, + instanceDurationInDays: { + serializedName: "settings.instanceDurationInDays", + type: { + name: "Number", + }, + }, + typeSettingsRecurrenceRangeType: { + serializedName: "settings.recurrence.range.type", + type: { + name: "String", + }, + }, + numberOfOccurrences: { + serializedName: "settings.recurrence.range.numberOfOccurrences", + type: { + name: "Number", + }, + }, + startDate: { + serializedName: "settings.recurrence.range.startDate", + nullable: true, + type: { + name: "DateTime", + }, + }, + endDate: { + serializedName: "settings.recurrence.range.endDate", + nullable: true, + type: { + name: "DateTime", + }, + }, + typeSettingsRecurrencePatternType: { + serializedName: "settings.recurrence.pattern.type", + type: { + name: "String", + }, + }, + interval: { + serializedName: "settings.recurrence.pattern.interval", + type: { + name: "Number", + }, + }, + principalId: { + serializedName: "createdBy.principalId", + readOnly: true, + type: { + name: "String", + }, + }, + principalTypeCreatedByPrincipalType: { + serializedName: "createdBy.principalType", + readOnly: true, + type: { + name: "String", + }, + }, + principalName: { + serializedName: "createdBy.principalName", + readOnly: true, + type: { + name: "String", + }, + }, + userPrincipalName: { + serializedName: "createdBy.userPrincipalName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; -export const AccessReviewScheduleDefinitionProperties: coreClient.CompositeMapper = { +export const AccessReviewScheduleSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessReviewScheduleDefinitionProperties", + className: "AccessReviewScheduleSettings", modelProperties: { - displayName: { - serializedName: "displayName", + mailNotificationsEnabled: { + serializedName: "mailNotificationsEnabled", type: { - name: "String" - } + name: "Boolean", + }, }, - status: { - serializedName: "status", - readOnly: true, + reminderNotificationsEnabled: { + serializedName: "reminderNotificationsEnabled", type: { - name: "String" - } + name: "Boolean", + }, }, - descriptionForAdmins: { - serializedName: "descriptionForAdmins", + defaultDecisionEnabled: { + serializedName: "defaultDecisionEnabled", type: { - name: "String" - } + name: "Boolean", + }, }, - descriptionForReviewers: { - serializedName: "descriptionForReviewers", + justificationRequiredOnApproval: { + serializedName: "justificationRequiredOnApproval", type: { - name: "String" - } + name: "Boolean", + }, }, - reviewers: { - serializedName: "reviewers", + defaultDecision: { + serializedName: "defaultDecision", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewReviewer" - } - } - } + name: "String", + }, }, - backupReviewers: { - serializedName: "backupReviewers", + autoApplyDecisionsEnabled: { + serializedName: "autoApplyDecisionsEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewReviewer" - } - } - } + name: "Boolean", + }, }, - reviewersType: { - serializedName: "reviewersType", - readOnly: true, + recommendationsEnabled: { + serializedName: "recommendationsEnabled", type: { - name: "String" - } - }, - instances: { - serializedName: "instances", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewInstance" - } - } - } - }, - resourceId: { - serializedName: "scope.resourceId", - readOnly: true, - type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "scope.roleDefinitionId", - readOnly: true, - type: { - name: "String" - } - }, - principalTypeScopePrincipalType: { - serializedName: "scope.principalType", - readOnly: true, - type: { - name: "String" - } - }, - assignmentState: { - serializedName: "scope.assignmentState", - readOnly: true, - type: { - name: "String" - } - }, - inactiveDuration: { - serializedName: "scope.inactiveDuration", - type: { - name: "TimeSpan" - } - }, - expandNestedMemberships: { - serializedName: "scope.expandNestedMemberships", - type: { - name: "Boolean" - } - }, - includeInheritedAccess: { - serializedName: "scope.includeInheritedAccess", - type: { - name: "Boolean" - } - }, - includeAccessBelowResource: { - serializedName: "scope.includeAccessBelowResource", - type: { - name: "Boolean" - } - }, - excludeResourceId: { - serializedName: "scope.excludeResourceId", - type: { - name: "String" - } - }, - excludeRoleDefinitionId: { - serializedName: "scope.excludeRoleDefinitionId", - type: { - name: "String" - } - }, - mailNotificationsEnabled: { - serializedName: "settings.mailNotificationsEnabled", - type: { - name: "Boolean" - } - }, - reminderNotificationsEnabled: { - serializedName: "settings.reminderNotificationsEnabled", - type: { - name: "Boolean" - } - }, - defaultDecisionEnabled: { - serializedName: "settings.defaultDecisionEnabled", - type: { - name: "Boolean" - } - }, - justificationRequiredOnApproval: { - serializedName: "settings.justificationRequiredOnApproval", - type: { - name: "Boolean" - } - }, - defaultDecision: { - serializedName: "settings.defaultDecision", - type: { - name: "String" - } - }, - autoApplyDecisionsEnabled: { - serializedName: "settings.autoApplyDecisionsEnabled", - type: { - name: "Boolean" - } - }, - recommendationsEnabled: { - serializedName: "settings.recommendationsEnabled", - type: { - name: "Boolean" - } - }, - recommendationLookBackDuration: { - serializedName: "settings.recommendationLookBackDuration", - type: { - name: "TimeSpan" - } - }, - instanceDurationInDays: { - serializedName: "settings.instanceDurationInDays", - type: { - name: "Number" - } - }, - typeSettingsRecurrenceRangeType: { - serializedName: "settings.recurrence.range.type", - type: { - name: "String" - } - }, - numberOfOccurrences: { - serializedName: "settings.recurrence.range.numberOfOccurrences", - type: { - name: "Number" - } - }, - startDate: { - serializedName: "settings.recurrence.range.startDate", - nullable: true, - type: { - name: "DateTime" - } - }, - endDate: { - serializedName: "settings.recurrence.range.endDate", - nullable: true, - type: { - name: "DateTime" - } - }, - typeSettingsRecurrencePatternType: { - serializedName: "settings.recurrence.pattern.type", - type: { - name: "String" - } - }, - interval: { - serializedName: "settings.recurrence.pattern.interval", - type: { - name: "Number" - } - }, - principalId: { - serializedName: "createdBy.principalId", - readOnly: true, - type: { - name: "String" - } - }, - principalTypeCreatedByPrincipalType: { - serializedName: "createdBy.principalType", - readOnly: true, - type: { - name: "String" - } - }, - principalName: { - serializedName: "createdBy.principalName", - readOnly: true, - type: { - name: "String" - } - }, - userPrincipalName: { - serializedName: "createdBy.userPrincipalName", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewScheduleSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewScheduleSettings", - modelProperties: { - mailNotificationsEnabled: { - serializedName: "mailNotificationsEnabled", - type: { - name: "Boolean" - } - }, - reminderNotificationsEnabled: { - serializedName: "reminderNotificationsEnabled", - type: { - name: "Boolean" - } - }, - defaultDecisionEnabled: { - serializedName: "defaultDecisionEnabled", - type: { - name: "Boolean" - } - }, - justificationRequiredOnApproval: { - serializedName: "justificationRequiredOnApproval", - type: { - name: "Boolean" - } - }, - defaultDecision: { - serializedName: "defaultDecision", - type: { - name: "String" - } - }, - autoApplyDecisionsEnabled: { - serializedName: "autoApplyDecisionsEnabled", - type: { - name: "Boolean" - } - }, - recommendationsEnabled: { - serializedName: "recommendationsEnabled", - type: { - name: "Boolean" - } + name: "Boolean", + }, }, recommendationLookBackDuration: { serializedName: "recommendationLookBackDuration", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, instanceDurationInDays: { serializedName: "instanceDurationInDays", type: { - name: "Number" - } + name: "Number", + }, }, typeRecurrenceRangeType: { serializedName: "recurrence.range.type", type: { - name: "String" - } + name: "String", + }, }, numberOfOccurrences: { serializedName: "recurrence.range.numberOfOccurrences", type: { - name: "Number" - } + name: "Number", + }, }, startDate: { serializedName: "recurrence.range.startDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDate: { serializedName: "recurrence.range.endDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, typeRecurrencePatternType: { serializedName: "recurrence.pattern.type", type: { - name: "String" - } + name: "String", + }, }, interval: { serializedName: "recurrence.pattern.interval", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AccessReviewReviewer: coreClient.CompositeMapper = { @@ -2396,18 +2402,18 @@ export const AccessReviewReviewer: coreClient.CompositeMapper = { principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "principalType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewInstance: coreClient.CompositeMapper = { @@ -2419,41 +2425,41 @@ export const AccessReviewInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "properties.startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "properties.endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, reviewers: { serializedName: "properties.reviewers", @@ -2462,10 +2468,10 @@ export const AccessReviewInstance: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, backupReviewers: { serializedName: "properties.backupReviewers", @@ -2474,20 +2480,20 @@ export const AccessReviewInstance: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, reviewersType: { serializedName: "properties.reviewersType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewInstanceProperties: coreClient.CompositeMapper = { @@ -2499,20 +2505,20 @@ export const AccessReviewInstanceProperties: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, reviewers: { serializedName: "reviewers", @@ -2521,10 +2527,10 @@ export const AccessReviewInstanceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, backupReviewers: { serializedName: "backupReviewers", @@ -2533,20 +2539,20 @@ export const AccessReviewInstanceProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewReviewer" - } - } - } + className: "AccessReviewReviewer", + }, + }, + }, }, reviewersType: { serializedName: "reviewersType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewInstanceListResult: coreClient.CompositeMapper = { @@ -2561,19 +2567,19 @@ export const AccessReviewInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewInstance" - } - } - } + className: "AccessReviewInstance", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewDecisionListResult: coreClient.CompositeMapper = { @@ -2588,19 +2594,19 @@ export const AccessReviewDecisionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewDecision" - } - } - } + className: "AccessReviewDecision", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewDecision: coreClient.CompositeMapper = { @@ -2612,64 +2618,64 @@ export const AccessReviewDecision: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, recommendation: { serializedName: "properties.recommendation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, decision: { serializedName: "properties.decision", type: { - name: "String" - } + name: "String", + }, }, justification: { serializedName: "properties.justification", type: { - name: "String" - } + name: "String", + }, }, reviewedDateTime: { serializedName: "properties.reviewedDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, applyResult: { serializedName: "properties.applyResult", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, appliedDateTime: { serializedName: "properties.appliedDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, insights: { serializedName: "properties.insights", @@ -2678,10 +2684,10 @@ export const AccessReviewDecision: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewDecisionInsight" - } - } - } + className: "AccessReviewDecisionInsight", + }, + }, + }, }, membershipTypes: { serializedName: @@ -2691,123 +2697,123 @@ export const AccessReviewDecision: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, principalIdPropertiesAppliedByPrincipalId: { serializedName: "properties.appliedBy.principalId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalTypePropertiesAppliedByPrincipalType: { serializedName: "properties.appliedBy.principalType", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalNamePropertiesAppliedByPrincipalName: { serializedName: "properties.appliedBy.principalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalNamePropertiesAppliedByUserPrincipalName: { serializedName: "properties.appliedBy.userPrincipalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalIdPropertiesReviewedByPrincipalId: { serializedName: "properties.reviewedBy.principalId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalTypePropertiesReviewedByPrincipalType: { serializedName: "properties.reviewedBy.principalType", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalNamePropertiesReviewedByPrincipalName: { serializedName: "properties.reviewedBy.principalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalNamePropertiesReviewedByUserPrincipalName: { serializedName: "properties.reviewedBy.userPrincipalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, typePropertiesResourceType: { serializedName: "properties.resource.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, idPropertiesResourceId: { serializedName: "properties.resource.id", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, displayNamePropertiesResourceDisplayName: { serializedName: "properties.resource.displayName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, typePropertiesPrincipalType: { serializedName: "properties.principal.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, idPropertiesPrincipalId: { serializedName: "properties.principal.id", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, displayNamePropertiesPrincipalDisplayName: { serializedName: "properties.principal.displayName", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewDecisionProperties: coreClient.CompositeMapper = { @@ -2819,43 +2825,43 @@ export const AccessReviewDecisionProperties: coreClient.CompositeMapper = { serializedName: "recommendation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, decision: { serializedName: "decision", type: { - name: "String" - } + name: "String", + }, }, justification: { serializedName: "justification", type: { - name: "String" - } + name: "String", + }, }, reviewedDateTime: { serializedName: "reviewedDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, applyResult: { serializedName: "applyResult", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, appliedDateTime: { serializedName: "appliedDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, insights: { serializedName: "insights", @@ -2864,10 +2870,10 @@ export const AccessReviewDecisionProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AccessReviewDecisionInsight" - } - } - } + className: "AccessReviewDecisionInsight", + }, + }, + }, }, membershipTypes: { serializedName: "principalResourceMembership.membershipTypes", @@ -2876,123 +2882,123 @@ export const AccessReviewDecisionProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, principalIdAppliedByPrincipalId: { serializedName: "appliedBy.principalId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalTypeAppliedByPrincipalType: { serializedName: "appliedBy.principalType", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalNameAppliedByPrincipalName: { serializedName: "appliedBy.principalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalNameAppliedByUserPrincipalName: { serializedName: "appliedBy.userPrincipalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalIdReviewedByPrincipalId: { serializedName: "reviewedBy.principalId", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalTypeReviewedByPrincipalType: { serializedName: "reviewedBy.principalType", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, principalNameReviewedByPrincipalName: { serializedName: "reviewedBy.principalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalNameReviewedByUserPrincipalName: { serializedName: "reviewedBy.userPrincipalName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, typeResourceType: { serializedName: "resource.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, idResourceId: { serializedName: "resource.id", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, displayNameResourceDisplayName: { serializedName: "resource.displayName", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, typePrincipalType: { serializedName: "principal.type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, idPrincipalId: { serializedName: "principal.id", readOnly: true, nullable: true, type: { - name: "String" - } + name: "String", + }, }, displayNamePrincipalDisplayName: { serializedName: "principal.displayName", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewDecisionIdentity: coreClient.CompositeMapper = { @@ -3002,32 +3008,32 @@ export const AccessReviewDecisionIdentity: coreClient.CompositeMapper = { uberParent: "AccessReviewDecisionIdentity", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessReviewDecisionInsight: coreClient.CompositeMapper = { @@ -3039,96 +3045,98 @@ export const AccessReviewDecisionInsight: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, insightCreatedDateTime: { serializedName: "properties.insightCreatedDateTime", readOnly: true, nullable: true, type: { - name: "any" - } - } - } - } + name: "any", + }, + }, + }, + }, }; -export const AccessReviewDecisionInsightProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewDecisionInsightProperties", - uberParent: "AccessReviewDecisionInsightProperties", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { +export const AccessReviewDecisionInsightProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewDecisionInsightProperties", + uberParent: "AccessReviewDecisionInsightProperties", + polymorphicDiscriminator: { serializedName: "type", - required: true, - type: { - name: "String" - } + clientName: "type", + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + insightCreatedDateTime: { + serializedName: "insightCreatedDateTime", + readOnly: true, + nullable: true, + type: { + name: "any", + }, + }, }, - insightCreatedDateTime: { - serializedName: "insightCreatedDateTime", - readOnly: true, - nullable: true, - type: { - name: "any" - } - } - } - } -}; - -export const AccessReviewContactedReviewerListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessReviewContactedReviewerListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessReviewContactedReviewer" - } - } - } + }, + }; + +export const AccessReviewContactedReviewerListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessReviewContactedReviewerListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessReviewContactedReviewer", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const AccessReviewContactedReviewer: coreClient.CompositeMapper = { type: { @@ -3139,47 +3147,47 @@ export const AccessReviewContactedReviewer: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userDisplayName: { serializedName: "properties.userDisplayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalName: { serializedName: "properties.userPrincipalName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "properties.createdDateTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AccessReviewDefaultSettings: coreClient.CompositeMapper = { @@ -3191,117 +3199,117 @@ export const AccessReviewDefaultSettings: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mailNotificationsEnabled: { serializedName: "properties.mailNotificationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reminderNotificationsEnabled: { serializedName: "properties.reminderNotificationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultDecisionEnabled: { serializedName: "properties.defaultDecisionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, justificationRequiredOnApproval: { serializedName: "properties.justificationRequiredOnApproval", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultDecision: { serializedName: "properties.defaultDecision", type: { - name: "String" - } + name: "String", + }, }, autoApplyDecisionsEnabled: { serializedName: "properties.autoApplyDecisionsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, recommendationsEnabled: { serializedName: "properties.recommendationsEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, recommendationLookBackDuration: { serializedName: "properties.recommendationLookBackDuration", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, instanceDurationInDays: { serializedName: "properties.instanceDurationInDays", type: { - name: "Number" - } + name: "Number", + }, }, typePropertiesRecurrenceRangeType: { serializedName: "properties.recurrence.range.type", type: { - name: "String" - } + name: "String", + }, }, numberOfOccurrences: { serializedName: "properties.recurrence.range.numberOfOccurrences", type: { - name: "Number" - } + name: "Number", + }, }, startDate: { serializedName: "properties.recurrence.range.startDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDate: { serializedName: "properties.recurrence.range.endDate", nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, typePropertiesRecurrencePatternType: { serializedName: "properties.recurrence.pattern.type", type: { - name: "String" - } + name: "String", + }, }, interval: { serializedName: "properties.recurrence.pattern.interval", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RecordAllDecisionsProperties: coreClient.CompositeMapper = { @@ -3313,30 +3321,30 @@ export const RecordAllDecisionsProperties: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, decision: { serializedName: "decision", type: { - name: "String" - } + name: "String", + }, }, justification: { serializedName: "justification", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EligibleChildResourcesListResult: coreClient.CompositeMapper = { @@ -3351,19 +3359,19 @@ export const EligibleChildResourcesListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EligibleChildResource" - } - } - } + className: "EligibleChildResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EligibleChildResource: coreClient.CompositeMapper = { @@ -3375,25 +3383,25 @@ export const EligibleChildResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -3405,11 +3413,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -3420,17 +3428,17 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleAssignmentSchedule: coreClient.CompositeMapper = { @@ -3442,122 +3450,122 @@ export const RoleAssignmentSchedule: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, roleAssignmentScheduleRequestId: { serializedName: "properties.roleAssignmentScheduleRequestId", type: { - name: "String" - } + name: "String", + }, }, linkedRoleEligibilityScheduleId: { serializedName: "properties.linkedRoleEligibilityScheduleId", type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "properties.assignmentType", type: { - name: "String" - } + name: "String", + }, }, memberType: { serializedName: "properties.memberType", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "properties.startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "properties.endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } + className: "ExpandedProperties", + }, + }, + }, + }, }; export const ExpandedProperties: coreClient.CompositeMapper = { @@ -3569,25 +3577,25 @@ export const ExpandedProperties: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Composite", - className: "ExpandedPropertiesScope" - } + className: "ExpandedPropertiesScope", + }, }, roleDefinition: { serializedName: "roleDefinition", type: { name: "Composite", - className: "ExpandedPropertiesRoleDefinition" - } + className: "ExpandedPropertiesRoleDefinition", + }, }, principal: { serializedName: "principal", type: { name: "Composite", - className: "ExpandedPropertiesPrincipal" - } - } - } - } + className: "ExpandedPropertiesPrincipal", + }, + }, + }, + }, }; export const ExpandedPropertiesScope: coreClient.CompositeMapper = { @@ -3598,23 +3606,23 @@ export const ExpandedPropertiesScope: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExpandedPropertiesRoleDefinition: coreClient.CompositeMapper = { @@ -3625,23 +3633,23 @@ export const ExpandedPropertiesRoleDefinition: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExpandedPropertiesPrincipal: coreClient.CompositeMapper = { @@ -3652,29 +3660,29 @@ export const ExpandedPropertiesPrincipal: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleAssignmentScheduleListResult: coreClient.CompositeMapper = { @@ -3689,47 +3697,48 @@ export const RoleAssignmentScheduleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleAssignmentSchedule" - } - } - } + className: "RoleAssignmentSchedule", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentScheduleInstanceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentScheduleInstanceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleAssignmentScheduleInstance" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RoleAssignmentScheduleInstanceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleAssignmentScheduleInstanceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleAssignmentScheduleInstance", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const RoleAssignmentScheduleInstance: coreClient.CompositeMapper = { type: { @@ -3740,128 +3749,128 @@ export const RoleAssignmentScheduleInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, roleAssignmentScheduleId: { serializedName: "properties.roleAssignmentScheduleId", type: { - name: "String" - } + name: "String", + }, }, originRoleAssignmentId: { serializedName: "properties.originRoleAssignmentId", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "properties.startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "properties.endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, linkedRoleEligibilityScheduleId: { serializedName: "properties.linkedRoleEligibilityScheduleId", type: { - name: "String" - } + name: "String", + }, }, linkedRoleEligibilityScheduleInstanceId: { serializedName: "properties.linkedRoleEligibilityScheduleInstanceId", type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "properties.assignmentType", type: { - name: "String" - } + name: "String", + }, }, memberType: { serializedName: "properties.memberType", type: { - name: "String" - } + name: "String", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } + className: "ExpandedProperties", + }, + }, + }, + }, }; export const RoleAssignmentScheduleRequest: coreClient.CompositeMapper = { @@ -3873,355 +3882,360 @@ export const RoleAssignmentScheduleRequest: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requestType: { serializedName: "properties.requestType", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, approvalId: { serializedName: "properties.approvalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, targetRoleAssignmentScheduleId: { serializedName: "properties.targetRoleAssignmentScheduleId", type: { - name: "String" - } + name: "String", + }, }, targetRoleAssignmentScheduleInstanceId: { serializedName: "properties.targetRoleAssignmentScheduleInstanceId", type: { - name: "String" - } + name: "String", + }, }, scheduleInfo: { serializedName: "properties.scheduleInfo", type: { name: "Composite", - className: "RoleAssignmentScheduleRequestPropertiesScheduleInfo" - } + className: "RoleAssignmentScheduleRequestPropertiesScheduleInfo", + }, }, linkedRoleEligibilityScheduleId: { serializedName: "properties.linkedRoleEligibilityScheduleId", type: { - name: "String" - } + name: "String", + }, }, justification: { serializedName: "properties.justification", type: { - name: "String" - } + name: "String", + }, }, ticketInfo: { serializedName: "properties.ticketInfo", type: { name: "Composite", - className: "RoleAssignmentScheduleRequestPropertiesTicketInfo" - } + className: "RoleAssignmentScheduleRequestPropertiesTicketInfo", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, requestorId: { serializedName: "properties.requestorId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } -}; + className: "ExpandedProperties", + }, + }, + }, + }, +}; + +export const RoleAssignmentScheduleRequestPropertiesScheduleInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleAssignmentScheduleRequestPropertiesScheduleInfo", + modelProperties: { + startDateTime: { + serializedName: "startDateTime", + type: { + name: "DateTime", + }, + }, + expiration: { + serializedName: "expiration", + type: { + name: "Composite", + className: + "RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration", + }, + }, + }, + }, + }; + +export const RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + endDateTime: { + serializedName: "endDateTime", + type: { + name: "DateTime", + }, + }, + duration: { + serializedName: "duration", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RoleAssignmentScheduleRequestPropertiesTicketInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleAssignmentScheduleRequestPropertiesTicketInfo", + modelProperties: { + ticketNumber: { + serializedName: "ticketNumber", + type: { + name: "String", + }, + }, + ticketSystem: { + serializedName: "ticketSystem", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RoleAssignmentScheduleRequestListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleAssignmentScheduleRequestListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleAssignmentScheduleRequest", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; -export const RoleAssignmentScheduleRequestPropertiesScheduleInfo: coreClient.CompositeMapper = { +export const RoleEligibilitySchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleAssignmentScheduleRequestPropertiesScheduleInfo", + className: "RoleEligibilitySchedule", modelProperties: { - startDateTime: { - serializedName: "startDateTime", + id: { + serializedName: "id", + readOnly: true, type: { - name: "DateTime" - } + name: "String", + }, }, - expiration: { - serializedName: "expiration", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: - "RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration" - } - } - } - } -}; - -export const RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentScheduleRequestPropertiesScheduleInfoExpiration", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - endDateTime: { - serializedName: "endDateTime", - type: { - name: "DateTime" - } - }, - duration: { - serializedName: "duration", - type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentScheduleRequestPropertiesTicketInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentScheduleRequestPropertiesTicketInfo", - modelProperties: { - ticketNumber: { - serializedName: "ticketNumber", - type: { - name: "String" - } - }, - ticketSystem: { - serializedName: "ticketSystem", - type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentScheduleRequestListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentScheduleRequestListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleAssignmentScheduleRequest" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const RoleEligibilitySchedule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilitySchedule", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, roleEligibilityScheduleRequestId: { serializedName: "properties.roleEligibilityScheduleRequestId", type: { - name: "String" - } + name: "String", + }, }, memberType: { serializedName: "properties.memberType", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "properties.startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "properties.endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, updatedOn: { serializedName: "properties.updatedOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } + className: "ExpandedProperties", + }, + }, + }, + }, }; export const RoleEligibilityScheduleListResult: coreClient.CompositeMapper = { @@ -4236,47 +4250,48 @@ export const RoleEligibilityScheduleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleEligibilitySchedule" - } - } - } + className: "RoleEligibilitySchedule", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const RoleEligibilityScheduleInstanceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilityScheduleInstanceListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleEligibilityScheduleInstance" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RoleEligibilityScheduleInstanceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleInstanceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleEligibilityScheduleInstance", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const RoleEligibilityScheduleInstance: coreClient.CompositeMapper = { type: { @@ -4287,104 +4302,104 @@ export const RoleEligibilityScheduleInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", type: { - name: "String" - } + name: "String", + }, }, roleEligibilityScheduleId: { serializedName: "properties.roleEligibilityScheduleId", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", type: { - name: "String" - } + name: "String", + }, }, startDateTime: { serializedName: "properties.startDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endDateTime: { serializedName: "properties.endDateTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, memberType: { serializedName: "properties.memberType", type: { - name: "String" - } + name: "String", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", type: { - name: "DateTime" - } + name: "DateTime", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } + className: "ExpandedProperties", + }, + }, + }, + }, }; export const RoleEligibilityScheduleRequest: coreClient.CompositeMapper = { @@ -4396,235 +4411,240 @@ export const RoleEligibilityScheduleRequest: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "properties.principalId", type: { - name: "String" - } + name: "String", + }, }, principalType: { serializedName: "properties.principalType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requestType: { serializedName: "properties.requestType", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "properties.status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, approvalId: { serializedName: "properties.approvalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scheduleInfo: { serializedName: "properties.scheduleInfo", type: { name: "Composite", - className: "RoleEligibilityScheduleRequestPropertiesScheduleInfo" - } + className: "RoleEligibilityScheduleRequestPropertiesScheduleInfo", + }, }, targetRoleEligibilityScheduleId: { serializedName: "properties.targetRoleEligibilityScheduleId", type: { - name: "String" - } + name: "String", + }, }, targetRoleEligibilityScheduleInstanceId: { serializedName: "properties.targetRoleEligibilityScheduleInstanceId", type: { - name: "String" - } + name: "String", + }, }, justification: { serializedName: "properties.justification", type: { - name: "String" - } + name: "String", + }, }, ticketInfo: { serializedName: "properties.ticketInfo", type: { name: "Composite", - className: "RoleEligibilityScheduleRequestPropertiesTicketInfo" - } + className: "RoleEligibilityScheduleRequestPropertiesTicketInfo", + }, }, condition: { serializedName: "properties.condition", type: { - name: "String" - } + name: "String", + }, }, conditionVersion: { serializedName: "properties.conditionVersion", type: { - name: "String" - } + name: "String", + }, }, createdOn: { serializedName: "properties.createdOn", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, requestorId: { serializedName: "properties.requestorId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, expandedProperties: { serializedName: "properties.expandedProperties", type: { name: "Composite", - className: "ExpandedProperties" - } - } - } - } -}; - -export const RoleEligibilityScheduleRequestPropertiesScheduleInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilityScheduleRequestPropertiesScheduleInfo", - modelProperties: { - startDateTime: { - serializedName: "startDateTime", - type: { - name: "DateTime" - } + className: "ExpandedProperties", + }, }, - expiration: { - serializedName: "expiration", - type: { - name: "Composite", - className: - "RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration" - } - } - } - } -}; - -export const RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } + }, + }, +}; + +export const RoleEligibilityScheduleRequestPropertiesScheduleInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleRequestPropertiesScheduleInfo", + modelProperties: { + startDateTime: { + serializedName: "startDateTime", + type: { + name: "DateTime", + }, + }, + expiration: { + serializedName: "expiration", + type: { + name: "Composite", + className: + "RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration", + }, + }, }, - endDateTime: { - serializedName: "endDateTime", - type: { - name: "DateTime" - } + }, + }; + +export const RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "RoleEligibilityScheduleRequestPropertiesScheduleInfoExpiration", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + endDateTime: { + serializedName: "endDateTime", + type: { + name: "DateTime", + }, + }, + duration: { + serializedName: "duration", + type: { + name: "String", + }, + }, }, - duration: { - serializedName: "duration", - type: { - name: "String" - } - } - } - } -}; - -export const RoleEligibilityScheduleRequestPropertiesTicketInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilityScheduleRequestPropertiesTicketInfo", - modelProperties: { - ticketNumber: { - serializedName: "ticketNumber", - type: { - name: "String" - } + }, + }; + +export const RoleEligibilityScheduleRequestPropertiesTicketInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleRequestPropertiesTicketInfo", + modelProperties: { + ticketNumber: { + serializedName: "ticketNumber", + type: { + name: "String", + }, + }, + ticketSystem: { + serializedName: "ticketSystem", + type: { + name: "String", + }, + }, }, - ticketSystem: { - serializedName: "ticketSystem", - type: { - name: "String" - } - } - } - } -}; - -export const RoleEligibilityScheduleRequestListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleEligibilityScheduleRequestListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleEligibilityScheduleRequest" - } - } - } + }, + }; + +export const RoleEligibilityScheduleRequestListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleRequestListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleEligibilityScheduleRequest", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const RoleManagementPolicy: coreClient.CompositeMapper = { type: { @@ -4635,60 +4655,60 @@ export const RoleManagementPolicy: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, isOrganizationDefault: { serializedName: "properties.isOrganizationDefault", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastModifiedBy: { serializedName: "properties.lastModifiedBy", type: { name: "Composite", - className: "Principal" - } + className: "Principal", + }, }, lastModifiedDateTime: { serializedName: "properties.lastModifiedDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, rules: { serializedName: "properties.rules", @@ -4697,10 +4717,10 @@ export const RoleManagementPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleManagementPolicyRule" - } - } - } + className: "RoleManagementPolicyRule", + }, + }, + }, }, effectiveRules: { serializedName: "properties.effectiveRules", @@ -4710,20 +4730,20 @@ export const RoleManagementPolicy: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleManagementPolicyRule" - } - } - } + className: "RoleManagementPolicyRule", + }, + }, + }, }, policyProperties: { serializedName: "properties.policyProperties", type: { name: "Composite", - className: "PolicyProperties" - } - } - } - } + className: "PolicyProperties", + }, + }, + }, + }, }; export const RoleManagementPolicyRule: coreClient.CompositeMapper = { @@ -4733,31 +4753,31 @@ export const RoleManagementPolicyRule: coreClient.CompositeMapper = { uberParent: "RoleManagementPolicyRule", polymorphicDiscriminator: { serializedName: "ruleType", - clientName: "ruleType" + clientName: "ruleType", }, modelProperties: { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, ruleType: { serializedName: "ruleType", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { name: "Composite", - className: "RoleManagementPolicyRuleTarget" - } - } - } - } + className: "RoleManagementPolicyRuleTarget", + }, + }, + }, + }, }; export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { @@ -4768,8 +4788,8 @@ export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { caller: { serializedName: "caller", type: { - name: "String" - } + name: "String", + }, }, operations: { serializedName: "operations", @@ -4777,16 +4797,16 @@ export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, level: { serializedName: "level", type: { - name: "String" - } + name: "String", + }, }, targetObjects: { serializedName: "targetObjects", @@ -4794,10 +4814,10 @@ export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, inheritableSettings: { serializedName: "inheritableSettings", @@ -4805,10 +4825,10 @@ export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, enforcedSettings: { serializedName: "enforcedSettings", @@ -4816,13 +4836,13 @@ export const RoleManagementPolicyRuleTarget: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PolicyProperties: coreClient.CompositeMapper = { @@ -4834,11 +4854,11 @@ export const PolicyProperties: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Composite", - className: "PolicyPropertiesScope" - } - } - } - } + className: "PolicyPropertiesScope", + }, + }, + }, + }, }; export const PolicyPropertiesScope: coreClient.CompositeMapper = { @@ -4849,23 +4869,23 @@ export const PolicyPropertiesScope: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleManagementPolicyListResult: coreClient.CompositeMapper = { @@ -4880,19 +4900,19 @@ export const RoleManagementPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleManagementPolicy" - } - } - } + className: "RoleManagementPolicy", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleManagementPolicyAssignment: coreClient.CompositeMapper = { @@ -4904,50 +4924,63 @@ export const RoleManagementPolicyAssignment: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "properties.roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, policyId: { serializedName: "properties.policyId", type: { - name: "String" - } + name: "String", + }, + }, + effectiveRules: { + serializedName: "properties.effectiveRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleManagementPolicyRule", + }, + }, + }, }, policyAssignmentProperties: { serializedName: "properties.policyAssignmentProperties", type: { name: "Composite", - className: "PolicyAssignmentProperties" - } - } - } - } + className: "PolicyAssignmentProperties", + }, + }, + }, + }, }; export const PolicyAssignmentProperties: coreClient.CompositeMapper = { @@ -4959,25 +4992,25 @@ export const PolicyAssignmentProperties: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Composite", - className: "PolicyAssignmentPropertiesScope" - } + className: "PolicyAssignmentPropertiesScope", + }, }, roleDefinition: { serializedName: "roleDefinition", type: { name: "Composite", - className: "PolicyAssignmentPropertiesRoleDefinition" - } + className: "PolicyAssignmentPropertiesRoleDefinition", + }, }, policy: { serializedName: "policy", type: { name: "Composite", - className: "PolicyAssignmentPropertiesPolicy" - } - } - } - } + className: "PolicyAssignmentPropertiesPolicy", + }, + }, + }, + }, }; export const PolicyAssignmentPropertiesScope: coreClient.CompositeMapper = { @@ -4988,51 +5021,52 @@ export const PolicyAssignmentPropertiesScope: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } -}; - -export const PolicyAssignmentPropertiesRoleDefinition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PolicyAssignmentPropertiesRoleDefinition", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } + name: "String", + }, }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } + }, + }, +}; + +export const PolicyAssignmentPropertiesRoleDefinition: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PolicyAssignmentPropertiesRoleDefinition", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + displayName: { + serializedName: "displayName", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, }, - type: { - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const PolicyAssignmentPropertiesPolicy: coreClient.CompositeMapper = { type: { @@ -5042,52 +5076,53 @@ export const PolicyAssignmentPropertiesPolicy: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { name: "Composite", - className: "Principal" - } + className: "Principal", + }, }, lastModifiedDateTime: { serializedName: "lastModifiedDateTime", type: { - name: "DateTime" - } - } - } - } -}; - -export const RoleManagementPolicyAssignmentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleManagementPolicyAssignmentListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RoleManagementPolicyAssignment" - } - } - } + name: "DateTime", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RoleManagementPolicyAssignmentListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleManagementPolicyAssignmentListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleManagementPolicyAssignment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const Alert: coreClient.CompositeMapper = { type: { @@ -5098,63 +5133,63 @@ export const Alert: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isActive: { serializedName: "properties.isActive", type: { - name: "Boolean" - } + name: "Boolean", + }, }, incidentCount: { serializedName: "properties.incidentCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, lastModifiedDateTime: { serializedName: "properties.lastModifiedDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastScannedDateTime: { serializedName: "properties.lastScannedDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, alertDefinition: { serializedName: "properties.alertDefinition", type: { name: "Composite", - className: "AlertDefinition" - } + className: "AlertDefinition", + }, }, alertIncidents: { serializedName: "properties.alertIncidents", @@ -5164,20 +5199,20 @@ export const Alert: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AlertIncident" - } - } - } + className: "AlertIncident", + }, + }, + }, }, alertConfiguration: { serializedName: "properties.alertConfiguration", type: { name: "Composite", - className: "AlertConfiguration" - } - } - } - } + className: "AlertConfiguration", + }, + }, + }, + }, }; export const AlertDefinition: coreClient.CompositeMapper = { @@ -5189,88 +5224,88 @@ export const AlertDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayName: { serializedName: "properties.displayName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "properties.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, severityLevel: { serializedName: "properties.severityLevel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityImpact: { serializedName: "properties.securityImpact", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, mitigationSteps: { serializedName: "properties.mitigationSteps", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, howToPrevent: { serializedName: "properties.howToPrevent", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isRemediatable: { serializedName: "properties.isRemediatable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isConfigurable: { serializedName: "properties.isConfigurable", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AlertIncident: coreClient.CompositeMapper = { @@ -5282,31 +5317,31 @@ export const AlertIncident: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, alertIncidentType: { serializedName: "properties.alertIncidentType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertIncidentProperties: coreClient.CompositeMapper = { @@ -5316,18 +5351,18 @@ export const AlertIncidentProperties: coreClient.CompositeMapper = { uberParent: "AlertIncidentProperties", polymorphicDiscriminator: { serializedName: "alertIncidentType", - clientName: "alertIncidentType" + clientName: "alertIncidentType", }, modelProperties: { alertIncidentType: { serializedName: "alertIncidentType", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertConfiguration: coreClient.CompositeMapper = { @@ -5339,58 +5374,58 @@ export const AlertConfiguration: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, alertDefinitionId: { serializedName: "properties.alertDefinitionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "properties.scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "properties.isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, alertConfigurationType: { serializedName: "properties.alertConfigurationType", type: { - name: "String" - } + name: "String", + }, }, alertDefinition: { serializedName: "properties.alertDefinition", type: { name: "Composite", - className: "AlertDefinition" - } - } - } - } + className: "AlertDefinition", + }, + }, + }, + }, }; export const AlertConfigurationProperties: coreClient.CompositeMapper = { @@ -5400,45 +5435,45 @@ export const AlertConfigurationProperties: coreClient.CompositeMapper = { uberParent: "AlertConfigurationProperties", polymorphicDiscriminator: { serializedName: "alertConfigurationType", - clientName: "alertConfigurationType" + clientName: "alertConfigurationType", }, modelProperties: { alertDefinitionId: { serializedName: "alertDefinitionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "scope", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isEnabled: { serializedName: "isEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, alertConfigurationType: { serializedName: "alertConfigurationType", required: true, type: { - name: "String" - } + name: "String", + }, }, alertDefinition: { serializedName: "alertDefinition", type: { name: "Composite", - className: "AlertDefinition" - } - } - } - } + className: "AlertDefinition", + }, + }, + }, + }, }; export const AlertListResult: coreClient.CompositeMapper = { @@ -5453,19 +5488,19 @@ export const AlertListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Alert" - } - } - } + className: "Alert", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertOperationResult: coreClient.CompositeMapper = { @@ -5477,46 +5512,46 @@ export const AlertOperationResult: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusDetail: { serializedName: "statusDetail", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "createdDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastActionDateTime: { serializedName: "lastActionDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, resourceLocation: { serializedName: "resourceLocation", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertConfigurationListResult: coreClient.CompositeMapper = { @@ -5531,19 +5566,19 @@ export const AlertConfigurationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AlertConfiguration" - } - } - } + className: "AlertConfiguration", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertDefinitionListResult: coreClient.CompositeMapper = { @@ -5558,19 +5593,19 @@ export const AlertDefinitionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AlertDefinition" - } - } - } + className: "AlertDefinition", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertIncidentListResult: coreClient.CompositeMapper = { @@ -5585,19 +5620,19 @@ export const AlertIncidentListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AlertIncident" - } - } - } + className: "AlertIncident", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DenyAssignmentFilter: coreClient.CompositeMapper = { @@ -5608,23 +5643,23 @@ export const DenyAssignmentFilter: coreClient.CompositeMapper = { denyAssignmentName: { serializedName: "denyAssignmentName", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, gdprExportPrincipalId: { serializedName: "gdprExportPrincipalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ValidationResponseErrorInfo: coreClient.CompositeMapper = { @@ -5636,18 +5671,18 @@ export const ValidationResponseErrorInfo: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ValidationResponse: coreClient.CompositeMapper = { @@ -5659,18 +5694,18 @@ export const ValidationResponse: coreClient.CompositeMapper = { serializedName: "isValid", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, errorInfo: { serializedName: "errorInfo", type: { name: "Composite", - className: "ValidationResponseErrorInfo" - } - } - } - } + className: "ValidationResponseErrorInfo", + }, + }, + }, + }, }; export const RoleAssignmentFilter: coreClient.CompositeMapper = { @@ -5681,11 +5716,11 @@ export const RoleAssignmentFilter: coreClient.CompositeMapper = { principalId: { serializedName: "principalId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleDefinitionFilter: coreClient.CompositeMapper = { @@ -5696,17 +5731,17 @@ export const RoleDefinitionFilter: coreClient.CompositeMapper = { roleName: { serializedName: "roleName", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApprovalSettings: coreClient.CompositeMapper = { @@ -5717,26 +5752,26 @@ export const ApprovalSettings: coreClient.CompositeMapper = { isApprovalRequired: { serializedName: "isApprovalRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isApprovalRequiredForExtension: { serializedName: "isApprovalRequiredForExtension", type: { - name: "Boolean" - } + name: "Boolean", + }, }, isRequestorJustificationRequired: { serializedName: "isRequestorJustificationRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, approvalMode: { serializedName: "approvalMode", type: { - name: "String" - } + name: "String", + }, }, approvalStages: { serializedName: "approvalStages", @@ -5745,13 +5780,13 @@ export const ApprovalSettings: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApprovalStage" - } - } - } - } - } - } + className: "ApprovalStage", + }, + }, + }, + }, + }, + }, }; export const ApprovalStage: coreClient.CompositeMapper = { @@ -5762,20 +5797,20 @@ export const ApprovalStage: coreClient.CompositeMapper = { approvalStageTimeOutInDays: { serializedName: "approvalStageTimeOutInDays", type: { - name: "Number" - } + name: "Number", + }, }, isApproverJustificationRequired: { serializedName: "isApproverJustificationRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, escalationTimeInMinutes: { serializedName: "escalationTimeInMinutes", type: { - name: "Number" - } + name: "Number", + }, }, primaryApprovers: { serializedName: "primaryApprovers", @@ -5784,16 +5819,16 @@ export const ApprovalStage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserSet" - } - } - } + className: "UserSet", + }, + }, + }, }, isEscalationEnabled: { serializedName: "isEscalationEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, escalationApprovers: { serializedName: "escalationApprovers", @@ -5802,13 +5837,13 @@ export const ApprovalStage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserSet" - } - } - } - } - } - } + className: "UserSet", + }, + }, + }, + }, + }, + }, }; export const UserSet: coreClient.CompositeMapper = { @@ -5819,216 +5854,284 @@ export const UserSet: coreClient.CompositeMapper = { userType: { serializedName: "userType", type: { - name: "String" - } + name: "String", + }, }, isBackup: { serializedName: "isBackup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } -}; - -export const RoleAssignmentScheduleFilter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RoleAssignmentScheduleFilter", - modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "roleDefinitionId", - type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "status", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const RoleAssignmentScheduleInstanceFilter: coreClient.CompositeMapper = { +export const UsersOrServicePrincipalSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleAssignmentScheduleInstanceFilter", + className: "UsersOrServicePrincipalSet", modelProperties: { - principalId: { - serializedName: "principalId", + type: { + serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, - roleDefinitionId: { - serializedName: "roleDefinitionId", + id: { + serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, - status: { - serializedName: "status", + displayName: { + serializedName: "displayName", type: { - name: "String" - } + name: "String", + }, }, - roleAssignmentScheduleId: { - serializedName: "roleAssignmentScheduleId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const RoleAssignmentScheduleRequestFilter: coreClient.CompositeMapper = { +export const PIMOnlyModeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleAssignmentScheduleRequestFilter", + className: "PIMOnlyModeSettings", modelProperties: { - principalId: { - serializedName: "principalId", + mode: { + serializedName: "mode", type: { - name: "String" - } + name: "String", + }, }, - roleDefinitionId: { - serializedName: "roleDefinitionId", + excludes: { + serializedName: "excludes", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UsersOrServicePrincipalSet", + }, + }, + }, }, - requestorId: { - serializedName: "requestorId", + excludedAssignmentTypes: { + serializedName: "excludedAssignmentTypes", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - status: { - serializedName: "status", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const RoleEligibilityScheduleFilter: coreClient.CompositeMapper = { +export const RoleAssignmentScheduleFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleEligibilityScheduleFilter", + className: "RoleAssignmentScheduleFilter", modelProperties: { principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "roleDefinitionId", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const RoleAssignmentScheduleInstanceFilter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleAssignmentScheduleInstanceFilter", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String", + }, + }, + roleDefinitionId: { + serializedName: "roleDefinitionId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + roleAssignmentScheduleId: { + serializedName: "roleAssignmentScheduleId", + type: { + name: "String", + }, + }, + }, + }, + }; -export const RoleEligibilityScheduleInstanceFilter: coreClient.CompositeMapper = { +export const RoleAssignmentScheduleRequestFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleEligibilityScheduleInstanceFilter", + className: "RoleAssignmentScheduleRequestFilter", modelProperties: { principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "roleDefinitionId", type: { - name: "String" - } + name: "String", + }, + }, + requestorId: { + serializedName: "requestorId", + type: { + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, - roleEligibilityScheduleId: { - serializedName: "roleEligibilityScheduleId", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const RoleEligibilityScheduleRequestFilter: coreClient.CompositeMapper = { +export const RoleEligibilityScheduleFilter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleEligibilityScheduleRequestFilter", + className: "RoleEligibilityScheduleFilter", modelProperties: { principalId: { serializedName: "principalId", type: { - name: "String" - } + name: "String", + }, }, roleDefinitionId: { serializedName: "roleDefinitionId", type: { - name: "String" - } - }, - requestorId: { - serializedName: "requestorId", - type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const RoleEligibilityScheduleInstanceFilter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleInstanceFilter", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String", + }, + }, + roleDefinitionId: { + serializedName: "roleDefinitionId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + roleEligibilityScheduleId: { + serializedName: "roleEligibilityScheduleId", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const RoleEligibilityScheduleRequestFilter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RoleEligibilityScheduleRequestFilter", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String", + }, + }, + roleDefinitionId: { + serializedName: "roleDefinitionId", + type: { + name: "String", + }, + }, + requestorId: { + serializedName: "requestorId", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + }, + }, + }; export const AccessReviewDecisionUserIdentity: coreClient.CompositeMapper = { serializedName: "user", @@ -6044,55 +6147,57 @@ export const AccessReviewDecisionUserIdentity: coreClient.CompositeMapper = { serializedName: "userPrincipalName", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewDecisionServicePrincipalIdentity: coreClient.CompositeMapper = { - serializedName: "servicePrincipal", - type: { - name: "Composite", - className: "AccessReviewDecisionServicePrincipalIdentity", - uberParent: "AccessReviewDecisionIdentity", - polymorphicDiscriminator: - AccessReviewDecisionIdentity.type.polymorphicDiscriminator, - modelProperties: { - ...AccessReviewDecisionIdentity.type.modelProperties, - appId: { - serializedName: "appId", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AccessReviewDecisionUserSignInInsightProperties: coreClient.CompositeMapper = { - serializedName: "userSignInInsight", - type: { - name: "Composite", - className: "AccessReviewDecisionUserSignInInsightProperties", - uberParent: "AccessReviewDecisionInsightProperties", - polymorphicDiscriminator: - AccessReviewDecisionInsightProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AccessReviewDecisionInsightProperties.type.modelProperties, - lastSignInDateTime: { - serializedName: "lastSignInDateTime", - readOnly: true, - nullable: true, - type: { - name: "any" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const AccessReviewDecisionServicePrincipalIdentity: coreClient.CompositeMapper = + { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "AccessReviewDecisionServicePrincipalIdentity", + uberParent: "AccessReviewDecisionIdentity", + polymorphicDiscriminator: + AccessReviewDecisionIdentity.type.polymorphicDiscriminator, + modelProperties: { + ...AccessReviewDecisionIdentity.type.modelProperties, + appId: { + serializedName: "appId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AccessReviewDecisionUserSignInInsightProperties: coreClient.CompositeMapper = + { + serializedName: "userSignInInsight", + type: { + name: "Composite", + className: "AccessReviewDecisionUserSignInInsightProperties", + uberParent: "AccessReviewDecisionInsightProperties", + polymorphicDiscriminator: + AccessReviewDecisionInsightProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AccessReviewDecisionInsightProperties.type.modelProperties, + lastSignInDateTime: { + serializedName: "lastSignInDateTime", + readOnly: true, + nullable: true, + type: { + name: "any", + }, + }, + }, + }, + }; export const RoleManagementPolicyApprovalRule: coreClient.CompositeMapper = { serializedName: "RoleManagementPolicyApprovalRule", @@ -6108,38 +6213,39 @@ export const RoleManagementPolicyApprovalRule: coreClient.CompositeMapper = { serializedName: "setting", type: { name: "Composite", - className: "ApprovalSettings" - } - } - } - } -}; - -export const RoleManagementPolicyAuthenticationContextRule: coreClient.CompositeMapper = { - serializedName: "RoleManagementPolicyAuthenticationContextRule", - type: { - name: "Composite", - className: "RoleManagementPolicyAuthenticationContextRule", - uberParent: "RoleManagementPolicyRule", - polymorphicDiscriminator: - RoleManagementPolicyRule.type.polymorphicDiscriminator, - modelProperties: { - ...RoleManagementPolicyRule.type.modelProperties, - isEnabled: { - serializedName: "isEnabled", - type: { - name: "Boolean" - } + className: "ApprovalSettings", + }, }, - claimValue: { - serializedName: "claimValue", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RoleManagementPolicyAuthenticationContextRule: coreClient.CompositeMapper = + { + serializedName: "RoleManagementPolicyAuthenticationContextRule", + type: { + name: "Composite", + className: "RoleManagementPolicyAuthenticationContextRule", + uberParent: "RoleManagementPolicyRule", + polymorphicDiscriminator: + RoleManagementPolicyRule.type.polymorphicDiscriminator, + modelProperties: { + ...RoleManagementPolicyRule.type.modelProperties, + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean", + }, + }, + claimValue: { + serializedName: "claimValue", + type: { + name: "String", + }, + }, + }, + }, + }; export const RoleManagementPolicyEnablementRule: coreClient.CompositeMapper = { serializedName: "RoleManagementPolicyEnablementRule", @@ -6157,13 +6263,13 @@ export const RoleManagementPolicyEnablementRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const RoleManagementPolicyExpirationRule: coreClient.CompositeMapper = { @@ -6179,324 +6285,355 @@ export const RoleManagementPolicyExpirationRule: coreClient.CompositeMapper = { isExpirationRequired: { serializedName: "isExpirationRequired", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maximumDuration: { serializedName: "maximumDuration", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const RoleManagementPolicyNotificationRule: coreClient.CompositeMapper = + { + serializedName: "RoleManagementPolicyNotificationRule", + type: { + name: "Composite", + className: "RoleManagementPolicyNotificationRule", + uberParent: "RoleManagementPolicyRule", + polymorphicDiscriminator: + RoleManagementPolicyRule.type.polymorphicDiscriminator, + modelProperties: { + ...RoleManagementPolicyRule.type.modelProperties, + notificationType: { + serializedName: "notificationType", + type: { + name: "String", + }, + }, + notificationLevel: { + serializedName: "notificationLevel", + type: { + name: "String", + }, + }, + recipientType: { + serializedName: "recipientType", + type: { + name: "String", + }, + }, + notificationRecipients: { + serializedName: "notificationRecipients", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + isDefaultRecipientsEnabled: { + serializedName: "isDefaultRecipientsEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; -export const RoleManagementPolicyNotificationRule: coreClient.CompositeMapper = { - serializedName: "RoleManagementPolicyNotificationRule", +export const RoleManagementPolicyPimOnlyModeRule: coreClient.CompositeMapper = { + serializedName: "RoleManagementPolicyPimOnlyModeRule", type: { name: "Composite", - className: "RoleManagementPolicyNotificationRule", + className: "RoleManagementPolicyPimOnlyModeRule", uberParent: "RoleManagementPolicyRule", polymorphicDiscriminator: RoleManagementPolicyRule.type.polymorphicDiscriminator, modelProperties: { ...RoleManagementPolicyRule.type.modelProperties, - notificationType: { - serializedName: "notificationType", - type: { - name: "String" - } - }, - notificationLevel: { - serializedName: "notificationLevel", - type: { - name: "String" - } - }, - recipientType: { - serializedName: "recipientType", - type: { - name: "String" - } - }, - notificationRecipients: { - serializedName: "notificationRecipients", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isDefaultRecipientsEnabled: { - serializedName: "isDefaultRecipientsEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AzureRolesAssignedOutsidePimAlertIncidentProperties: coreClient.CompositeMapper = { - serializedName: "AzureRolesAssignedOutsidePimAlertIncident", - type: { - name: "Composite", - className: "AzureRolesAssignedOutsidePimAlertIncidentProperties", - uberParent: "AlertIncidentProperties", - polymorphicDiscriminator: - AlertIncidentProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertIncidentProperties.type.modelProperties, - assigneeDisplayName: { - serializedName: "assigneeDisplayName", - readOnly: true, - type: { - name: "String" - } - }, - assigneeUserPrincipalName: { - serializedName: "assigneeUserPrincipalName", - readOnly: true, + pimOnlyModeSettings: { + serializedName: "pimOnlyModeSettings", type: { - name: "String" - } - }, - assigneeId: { - serializedName: "assigneeId", - readOnly: true, - type: { - name: "String" - } - }, - roleDisplayName: { - serializedName: "roleDisplayName", - readOnly: true, - type: { - name: "String" - } - }, - roleTemplateId: { - serializedName: "roleTemplateId", - readOnly: true, - type: { - name: "String" - } - }, - roleDefinitionId: { - serializedName: "roleDefinitionId", - readOnly: true, - type: { - name: "String" - } - }, - assignmentActivatedDate: { - serializedName: "assignmentActivatedDate", - readOnly: true, - type: { - name: "DateTime" - } + name: "Composite", + className: "PIMOnlyModeSettings", + }, }, - requestorId: { - serializedName: "requestorId", - readOnly: true, - type: { - name: "String" - } + }, + }, +}; + +export const AzureRolesAssignedOutsidePimAlertIncidentProperties: coreClient.CompositeMapper = + { + serializedName: "AzureRolesAssignedOutsidePimAlertIncident", + type: { + name: "Composite", + className: "AzureRolesAssignedOutsidePimAlertIncidentProperties", + uberParent: "AlertIncidentProperties", + polymorphicDiscriminator: + AlertIncidentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertIncidentProperties.type.modelProperties, + assigneeDisplayName: { + serializedName: "assigneeDisplayName", + readOnly: true, + type: { + name: "String", + }, + }, + assigneeUserPrincipalName: { + serializedName: "assigneeUserPrincipalName", + readOnly: true, + type: { + name: "String", + }, + }, + assigneeId: { + serializedName: "assigneeId", + readOnly: true, + type: { + name: "String", + }, + }, + roleDisplayName: { + serializedName: "roleDisplayName", + readOnly: true, + type: { + name: "String", + }, + }, + roleTemplateId: { + serializedName: "roleTemplateId", + readOnly: true, + type: { + name: "String", + }, + }, + roleDefinitionId: { + serializedName: "roleDefinitionId", + readOnly: true, + type: { + name: "String", + }, + }, + assignmentActivatedDate: { + serializedName: "assignmentActivatedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + requestorId: { + serializedName: "requestorId", + readOnly: true, + type: { + name: "String", + }, + }, + requestorDisplayName: { + serializedName: "requestorDisplayName", + readOnly: true, + type: { + name: "String", + }, + }, + requestorUserPrincipalName: { + serializedName: "requestorUserPrincipalName", + readOnly: true, + type: { + name: "String", + }, + }, }, - requestorDisplayName: { - serializedName: "requestorDisplayName", - readOnly: true, - type: { - name: "String" - } + }, + }; + +export const DuplicateRoleCreatedAlertIncidentProperties: coreClient.CompositeMapper = + { + serializedName: "DuplicateRoleCreatedAlertIncident", + type: { + name: "Composite", + className: "DuplicateRoleCreatedAlertIncidentProperties", + uberParent: "AlertIncidentProperties", + polymorphicDiscriminator: + AlertIncidentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertIncidentProperties.type.modelProperties, + roleName: { + serializedName: "roleName", + readOnly: true, + type: { + name: "String", + }, + }, + duplicateRoles: { + serializedName: "duplicateRoles", + readOnly: true, + type: { + name: "String", + }, + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String", + }, + }, }, - requestorUserPrincipalName: { - serializedName: "requestorUserPrincipalName", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const DuplicateRoleCreatedAlertIncidentProperties: coreClient.CompositeMapper = { - serializedName: "DuplicateRoleCreatedAlertIncident", - type: { - name: "Composite", - className: "DuplicateRoleCreatedAlertIncidentProperties", - uberParent: "AlertIncidentProperties", - polymorphicDiscriminator: - AlertIncidentProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertIncidentProperties.type.modelProperties, - roleName: { - serializedName: "roleName", - readOnly: true, - type: { - name: "String" - } + }, + }; + +export const TooManyOwnersAssignedToResourceAlertIncidentProperties: coreClient.CompositeMapper = + { + serializedName: "TooManyOwnersAssignedToResourceAlertIncident", + type: { + name: "Composite", + className: "TooManyOwnersAssignedToResourceAlertIncidentProperties", + uberParent: "AlertIncidentProperties", + polymorphicDiscriminator: + AlertIncidentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertIncidentProperties.type.modelProperties, + assigneeName: { + serializedName: "assigneeName", + readOnly: true, + type: { + name: "String", + }, + }, + assigneeType: { + serializedName: "assigneeType", + readOnly: true, + type: { + name: "String", + }, + }, }, - duplicateRoles: { - serializedName: "duplicateRoles", - readOnly: true, - type: { - name: "String" - } + }, + }; + +export const TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties: coreClient.CompositeMapper = + { + serializedName: "TooManyPermanentOwnersAssignedToResourceAlertIncident", + type: { + name: "Composite", + className: + "TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties", + uberParent: "AlertIncidentProperties", + polymorphicDiscriminator: + AlertIncidentProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertIncidentProperties.type.modelProperties, + assigneeName: { + serializedName: "assigneeName", + readOnly: true, + type: { + name: "String", + }, + }, + assigneeType: { + serializedName: "assigneeType", + readOnly: true, + type: { + name: "String", + }, + }, }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const TooManyOwnersAssignedToResourceAlertIncidentProperties: coreClient.CompositeMapper = { - serializedName: "TooManyOwnersAssignedToResourceAlertIncident", - type: { - name: "Composite", - className: "TooManyOwnersAssignedToResourceAlertIncidentProperties", - uberParent: "AlertIncidentProperties", - polymorphicDiscriminator: - AlertIncidentProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertIncidentProperties.type.modelProperties, - assigneeName: { - serializedName: "assigneeName", - readOnly: true, - type: { - name: "String" - } + }, + }; + +export const AzureRolesAssignedOutsidePimAlertConfigurationProperties: coreClient.CompositeMapper = + { + serializedName: "AzureRolesAssignedOutsidePimAlertConfiguration", + type: { + name: "Composite", + className: "AzureRolesAssignedOutsidePimAlertConfigurationProperties", + uberParent: "AlertConfigurationProperties", + polymorphicDiscriminator: + AlertConfigurationProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertConfigurationProperties.type.modelProperties, }, - assigneeType: { - serializedName: "assigneeType", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties: coreClient.CompositeMapper = { - serializedName: "TooManyPermanentOwnersAssignedToResourceAlertIncident", - type: { - name: "Composite", - className: - "TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties", - uberParent: "AlertIncidentProperties", - polymorphicDiscriminator: - AlertIncidentProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertIncidentProperties.type.modelProperties, - assigneeName: { - serializedName: "assigneeName", - readOnly: true, - type: { - name: "String" - } + }, + }; + +export const DuplicateRoleCreatedAlertConfigurationProperties: coreClient.CompositeMapper = + { + serializedName: "DuplicateRoleCreatedAlertConfiguration", + type: { + name: "Composite", + className: "DuplicateRoleCreatedAlertConfigurationProperties", + uberParent: "AlertConfigurationProperties", + polymorphicDiscriminator: + AlertConfigurationProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertConfigurationProperties.type.modelProperties, }, - assigneeType: { - serializedName: "assigneeType", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const AzureRolesAssignedOutsidePimAlertConfigurationProperties: coreClient.CompositeMapper = { - serializedName: "AzureRolesAssignedOutsidePimAlertConfiguration", - type: { - name: "Composite", - className: "AzureRolesAssignedOutsidePimAlertConfigurationProperties", - uberParent: "AlertConfigurationProperties", - polymorphicDiscriminator: - AlertConfigurationProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertConfigurationProperties.type.modelProperties - } - } -}; - -export const DuplicateRoleCreatedAlertConfigurationProperties: coreClient.CompositeMapper = { - serializedName: "DuplicateRoleCreatedAlertConfiguration", - type: { - name: "Composite", - className: "DuplicateRoleCreatedAlertConfigurationProperties", - uberParent: "AlertConfigurationProperties", - polymorphicDiscriminator: - AlertConfigurationProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertConfigurationProperties.type.modelProperties - } - } -}; - -export const TooManyOwnersAssignedToResourceAlertConfigurationProperties: coreClient.CompositeMapper = { - serializedName: "TooManyOwnersAssignedToResourceAlertConfiguration", - type: { - name: "Composite", - className: "TooManyOwnersAssignedToResourceAlertConfigurationProperties", - uberParent: "AlertConfigurationProperties", - polymorphicDiscriminator: - AlertConfigurationProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertConfigurationProperties.type.modelProperties, - thresholdNumberOfOwners: { - serializedName: "thresholdNumberOfOwners", - type: { - name: "Number" - } + }, + }; + +export const TooManyOwnersAssignedToResourceAlertConfigurationProperties: coreClient.CompositeMapper = + { + serializedName: "TooManyOwnersAssignedToResourceAlertConfiguration", + type: { + name: "Composite", + className: "TooManyOwnersAssignedToResourceAlertConfigurationProperties", + uberParent: "AlertConfigurationProperties", + polymorphicDiscriminator: + AlertConfigurationProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertConfigurationProperties.type.modelProperties, + thresholdNumberOfOwners: { + serializedName: "thresholdNumberOfOwners", + type: { + name: "Number", + }, + }, + thresholdPercentageOfOwnersOutOfAllRoleMembers: { + serializedName: "thresholdPercentageOfOwnersOutOfAllRoleMembers", + type: { + name: "Number", + }, + }, }, - thresholdPercentageOfOwnersOutOfAllRoleMembers: { - serializedName: "thresholdPercentageOfOwnersOutOfAllRoleMembers", - type: { - name: "Number" - } - } - } - } -}; - -export const TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties: coreClient.CompositeMapper = { - serializedName: "TooManyPermanentOwnersAssignedToResourceAlertConfiguration", - type: { - name: "Composite", - className: - "TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties", - uberParent: "AlertConfigurationProperties", - polymorphicDiscriminator: - AlertConfigurationProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertConfigurationProperties.type.modelProperties, - thresholdNumberOfPermanentOwners: { - serializedName: "thresholdNumberOfPermanentOwners", - type: { - name: "Number" - } + }, + }; + +export const TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties: coreClient.CompositeMapper = + { + serializedName: + "TooManyPermanentOwnersAssignedToResourceAlertConfiguration", + type: { + name: "Composite", + className: + "TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties", + uberParent: "AlertConfigurationProperties", + polymorphicDiscriminator: + AlertConfigurationProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertConfigurationProperties.type.modelProperties, + thresholdNumberOfPermanentOwners: { + serializedName: "thresholdNumberOfPermanentOwners", + type: { + name: "Number", + }, + }, + thresholdPercentageOfPermanentOwnersOutOfAllOwners: { + serializedName: "thresholdPercentageOfPermanentOwnersOutOfAllOwners", + type: { + name: "Number", + }, + }, }, - thresholdPercentageOfPermanentOwnersOutOfAllOwners: { - serializedName: "thresholdPercentageOfPermanentOwnersOutOfAllOwners", - type: { - name: "Number" - } - } - } - } -}; + }, + }; export const AlertsRefreshHeaders: coreClient.CompositeMapper = { type: { @@ -6506,11 +6643,11 @@ export const AlertsRefreshHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AlertsRefreshAllHeaders: coreClient.CompositeMapper = { @@ -6521,11 +6658,11 @@ export const AlertsRefreshAllHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export let discriminators = { @@ -6535,19 +6672,36 @@ export let discriminators = { AlertIncidentProperties: AlertIncidentProperties, AlertConfigurationProperties: AlertConfigurationProperties, "AccessReviewDecisionIdentity.user": AccessReviewDecisionUserIdentity, - "AccessReviewDecisionIdentity.servicePrincipal": AccessReviewDecisionServicePrincipalIdentity, - "AccessReviewDecisionInsightProperties.userSignInInsight": AccessReviewDecisionUserSignInInsightProperties, - "RoleManagementPolicyRule.RoleManagementPolicyApprovalRule": RoleManagementPolicyApprovalRule, - "RoleManagementPolicyRule.RoleManagementPolicyAuthenticationContextRule": RoleManagementPolicyAuthenticationContextRule, - "RoleManagementPolicyRule.RoleManagementPolicyEnablementRule": RoleManagementPolicyEnablementRule, - "RoleManagementPolicyRule.RoleManagementPolicyExpirationRule": RoleManagementPolicyExpirationRule, - "RoleManagementPolicyRule.RoleManagementPolicyNotificationRule": RoleManagementPolicyNotificationRule, - "AlertIncidentProperties.AzureRolesAssignedOutsidePimAlertIncident": AzureRolesAssignedOutsidePimAlertIncidentProperties, - "AlertIncidentProperties.DuplicateRoleCreatedAlertIncident": DuplicateRoleCreatedAlertIncidentProperties, - "AlertIncidentProperties.TooManyOwnersAssignedToResourceAlertIncident": TooManyOwnersAssignedToResourceAlertIncidentProperties, - "AlertIncidentProperties.TooManyPermanentOwnersAssignedToResourceAlertIncident": TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties, - "AlertConfigurationProperties.AzureRolesAssignedOutsidePimAlertConfiguration": AzureRolesAssignedOutsidePimAlertConfigurationProperties, - "AlertConfigurationProperties.DuplicateRoleCreatedAlertConfiguration": DuplicateRoleCreatedAlertConfigurationProperties, - "AlertConfigurationProperties.TooManyOwnersAssignedToResourceAlertConfiguration": TooManyOwnersAssignedToResourceAlertConfigurationProperties, - "AlertConfigurationProperties.TooManyPermanentOwnersAssignedToResourceAlertConfiguration": TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties + "AccessReviewDecisionIdentity.servicePrincipal": + AccessReviewDecisionServicePrincipalIdentity, + "AccessReviewDecisionInsightProperties.userSignInInsight": + AccessReviewDecisionUserSignInInsightProperties, + "RoleManagementPolicyRule.RoleManagementPolicyApprovalRule": + RoleManagementPolicyApprovalRule, + "RoleManagementPolicyRule.RoleManagementPolicyAuthenticationContextRule": + RoleManagementPolicyAuthenticationContextRule, + "RoleManagementPolicyRule.RoleManagementPolicyEnablementRule": + RoleManagementPolicyEnablementRule, + "RoleManagementPolicyRule.RoleManagementPolicyExpirationRule": + RoleManagementPolicyExpirationRule, + "RoleManagementPolicyRule.RoleManagementPolicyNotificationRule": + RoleManagementPolicyNotificationRule, + "RoleManagementPolicyRule.RoleManagementPolicyPimOnlyModeRule": + RoleManagementPolicyPimOnlyModeRule, + "AlertIncidentProperties.AzureRolesAssignedOutsidePimAlertIncident": + AzureRolesAssignedOutsidePimAlertIncidentProperties, + "AlertIncidentProperties.DuplicateRoleCreatedAlertIncident": + DuplicateRoleCreatedAlertIncidentProperties, + "AlertIncidentProperties.TooManyOwnersAssignedToResourceAlertIncident": + TooManyOwnersAssignedToResourceAlertIncidentProperties, + "AlertIncidentProperties.TooManyPermanentOwnersAssignedToResourceAlertIncident": + TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties, + "AlertConfigurationProperties.AzureRolesAssignedOutsidePimAlertConfiguration": + AzureRolesAssignedOutsidePimAlertConfigurationProperties, + "AlertConfigurationProperties.DuplicateRoleCreatedAlertConfiguration": + DuplicateRoleCreatedAlertConfigurationProperties, + "AlertConfigurationProperties.TooManyOwnersAssignedToResourceAlertConfiguration": + TooManyOwnersAssignedToResourceAlertConfigurationProperties, + "AlertConfigurationProperties.TooManyPermanentOwnersAssignedToResourceAlertConfiguration": + TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties, }; diff --git a/sdk/authorization/arm-authorization/src/models/parameters.ts b/sdk/authorization/arm-authorization/src/models/parameters.ts index 9dfa833b423e..0bcf19c044d7 100644 --- a/sdk/authorization/arm-authorization/src/models/parameters.ts +++ b/sdk/authorization/arm-authorization/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { RoleAssignmentCreateParameters as RoleAssignmentCreateParametersMapper, @@ -25,7 +25,7 @@ import { RoleManagementPolicy as RoleManagementPolicyMapper, RoleManagementPolicyAssignment as RoleManagementPolicyAssignmentMapper, Alert as AlertMapper, - AlertConfiguration as AlertConfigurationMapper + AlertConfiguration as AlertConfigurationMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -35,9 +35,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -46,10 +46,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -59,23 +59,23 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -84,10 +84,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -95,14 +95,14 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceProviderNamespace: OperationURLParameter = { @@ -111,10 +111,10 @@ export const resourceProviderNamespace: OperationURLParameter = { serializedName: "resourceProviderNamespace", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parentResourcePath: OperationURLParameter = { @@ -123,10 +123,10 @@ export const parentResourcePath: OperationURLParameter = { serializedName: "parentResourcePath", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceType: OperationURLParameter = { @@ -135,10 +135,10 @@ export const resourceType: OperationURLParameter = { serializedName: "resourceType", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceName: OperationURLParameter = { @@ -147,9 +147,9 @@ export const resourceName: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -159,9 +159,9 @@ export const apiVersion1: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -169,9 +169,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scope: OperationURLParameter = { @@ -180,10 +180,10 @@ export const scope: OperationURLParameter = { serializedName: "scope", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const denyAssignmentId: OperationURLParameter = { @@ -192,9 +192,9 @@ export const denyAssignmentId: OperationURLParameter = { serializedName: "denyAssignmentId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const denyAssignmentId1: OperationURLParameter = { @@ -203,10 +203,10 @@ export const denyAssignmentId1: OperationURLParameter = { serializedName: "denyAssignmentId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const expand: OperationQueryParameter = { @@ -215,9 +215,9 @@ export const expand: OperationQueryParameter = { defaultValue: "resourceTypes", serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -225,10 +225,10 @@ export const filter1: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const tenantId: OperationQueryParameter = { @@ -236,9 +236,9 @@ export const tenantId: OperationQueryParameter = { mapper: { serializedName: "tenantId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName1: OperationURLParameter = { @@ -247,10 +247,10 @@ export const resourceName1: OperationURLParameter = { serializedName: "resourceName", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const roleAssignmentName: OperationURLParameter = { @@ -259,10 +259,10 @@ export const roleAssignmentName: OperationURLParameter = { serializedName: "roleAssignmentName", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -272,14 +272,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: RoleAssignmentCreateParametersMapper + mapper: RoleAssignmentCreateParametersMapper, }; export const skipToken: OperationQueryParameter = { @@ -287,10 +287,10 @@ export const skipToken: OperationQueryParameter = { mapper: { serializedName: "$skipToken", type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const roleAssignmentId: OperationURLParameter = { @@ -299,10 +299,10 @@ export const roleAssignmentId: OperationURLParameter = { serializedName: "roleAssignmentId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion2: OperationQueryParameter = { @@ -312,23 +312,23 @@ export const apiVersion2: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceName2: OperationURLParameter = { parameterPath: "resourceName", mapper: { constraints: { - Pattern: new RegExp(".+") + Pattern: new RegExp(".+"), }, serializedName: "resourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleDefinitionId: OperationURLParameter = { @@ -337,14 +337,14 @@ export const roleDefinitionId: OperationURLParameter = { serializedName: "roleDefinitionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleDefinition: OperationParameter = { parameterPath: "roleDefinition", - mapper: RoleDefinitionMapper + mapper: RoleDefinitionMapper, }; export const roleId: OperationURLParameter = { @@ -353,10 +353,10 @@ export const roleId: OperationURLParameter = { serializedName: "roleId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion3: OperationQueryParameter = { @@ -366,9 +366,9 @@ export const apiVersion3: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const historyDefinitionId: OperationURLParameter = { @@ -377,14 +377,14 @@ export const historyDefinitionId: OperationURLParameter = { serializedName: "historyDefinitionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties: OperationParameter = { parameterPath: "properties", - mapper: AccessReviewHistoryDefinitionPropertiesMapper + mapper: AccessReviewHistoryDefinitionPropertiesMapper, }; export const instanceId: OperationURLParameter = { @@ -393,9 +393,9 @@ export const instanceId: OperationURLParameter = { serializedName: "instanceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const scheduleDefinitionId: OperationURLParameter = { @@ -404,14 +404,14 @@ export const scheduleDefinitionId: OperationURLParameter = { serializedName: "scheduleDefinitionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties1: OperationParameter = { parameterPath: "properties", - mapper: AccessReviewScheduleDefinitionPropertiesMapper + mapper: AccessReviewScheduleDefinitionPropertiesMapper, }; export const id: OperationURLParameter = { @@ -420,19 +420,19 @@ export const id: OperationURLParameter = { serializedName: "id", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties2: OperationParameter = { parameterPath: "properties", - mapper: AccessReviewInstancePropertiesMapper + mapper: AccessReviewInstancePropertiesMapper, }; export const properties3: OperationParameter = { parameterPath: "properties", - mapper: AccessReviewScheduleSettingsMapper + mapper: AccessReviewScheduleSettingsMapper, }; export const scope1: OperationURLParameter = { @@ -441,14 +441,14 @@ export const scope1: OperationURLParameter = { serializedName: "scope", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties4: OperationParameter = { parameterPath: "properties", - mapper: RecordAllDecisionsPropertiesMapper + mapper: RecordAllDecisionsPropertiesMapper, }; export const decisionId: OperationURLParameter = { @@ -457,26 +457,26 @@ export const decisionId: OperationURLParameter = { serializedName: "decisionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const properties5: OperationParameter = { parameterPath: "properties", - mapper: AccessReviewDecisionPropertiesMapper + mapper: AccessReviewDecisionPropertiesMapper, }; export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2020-10-01-preview", + defaultValue: "2024-02-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleAssignmentScheduleName: OperationURLParameter = { @@ -485,9 +485,9 @@ export const roleAssignmentScheduleName: OperationURLParameter = { serializedName: "roleAssignmentScheduleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleAssignmentScheduleInstanceName: OperationURLParameter = { @@ -496,14 +496,14 @@ export const roleAssignmentScheduleInstanceName: OperationURLParameter = { serializedName: "roleAssignmentScheduleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: RoleAssignmentScheduleRequestMapper + mapper: RoleAssignmentScheduleRequestMapper, }; export const roleAssignmentScheduleRequestName: OperationURLParameter = { @@ -512,21 +512,9 @@ export const roleAssignmentScheduleRequestName: OperationURLParameter = { serializedName: "roleAssignmentScheduleRequestName", required: true, type: { - name: "String" - } - } -}; - -export const apiVersion5: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-04-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleEligibilityScheduleName: OperationURLParameter = { @@ -535,9 +523,9 @@ export const roleEligibilityScheduleName: OperationURLParameter = { serializedName: "roleEligibilityScheduleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleEligibilityScheduleInstanceName: OperationURLParameter = { @@ -546,14 +534,14 @@ export const roleEligibilityScheduleInstanceName: OperationURLParameter = { serializedName: "roleEligibilityScheduleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: RoleEligibilityScheduleRequestMapper + mapper: RoleEligibilityScheduleRequestMapper, }; export const roleEligibilityScheduleRequestName: OperationURLParameter = { @@ -562,9 +550,9 @@ export const roleEligibilityScheduleRequestName: OperationURLParameter = { serializedName: "roleEligibilityScheduleRequestName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleManagementPolicyName: OperationURLParameter = { @@ -573,14 +561,14 @@ export const roleManagementPolicyName: OperationURLParameter = { serializedName: "roleManagementPolicyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: RoleManagementPolicyMapper + mapper: RoleManagementPolicyMapper, }; export const roleManagementPolicyAssignmentName: OperationURLParameter = { @@ -589,14 +577,14 @@ export const roleManagementPolicyAssignmentName: OperationURLParameter = { serializedName: "roleManagementPolicyAssignmentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: RoleManagementPolicyAssignmentMapper + mapper: RoleManagementPolicyAssignmentMapper, }; export const alertId: OperationURLParameter = { @@ -605,32 +593,32 @@ export const alertId: OperationURLParameter = { serializedName: "alertId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; -export const apiVersion6: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-08-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: AlertMapper + mapper: AlertMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: AlertConfigurationMapper + mapper: AlertConfigurationMapper, }; export const alertDefinitionId: OperationURLParameter = { @@ -639,10 +627,10 @@ export const alertDefinitionId: OperationURLParameter = { serializedName: "alertDefinitionId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const alertIncidentId: OperationURLParameter = { @@ -651,10 +639,10 @@ export const alertIncidentId: OperationURLParameter = { serializedName: "alertIncidentId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const operationId: OperationURLParameter = { @@ -663,8 +651,8 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewDefaultSettingsOperations.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewDefaultSettingsOperations.ts index 2ef786a7116c..a9d01cfdfd9b 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewDefaultSettingsOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewDefaultSettingsOperations.ts @@ -16,12 +16,13 @@ import { AccessReviewDefaultSettingsGetResponse, AccessReviewScheduleSettings, AccessReviewDefaultSettingsPutOptionalParams, - AccessReviewDefaultSettingsPutResponse + AccessReviewDefaultSettingsPutResponse, } from "../models"; /** Class containing AccessReviewDefaultSettingsOperations operations. */ export class AccessReviewDefaultSettingsOperationsImpl - implements AccessReviewDefaultSettingsOperations { + implements AccessReviewDefaultSettingsOperations +{ private readonly client: AuthorizationManagementClient; /** @@ -37,7 +38,7 @@ export class AccessReviewDefaultSettingsOperationsImpl * @param options The options parameters. */ get( - options?: AccessReviewDefaultSettingsGetOptionalParams + options?: AccessReviewDefaultSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, getOperationSpec); } @@ -49,11 +50,11 @@ export class AccessReviewDefaultSettingsOperationsImpl */ put( properties: AccessReviewScheduleSettings, - options?: AccessReviewDefaultSettingsPutOptionalParams + options?: AccessReviewDefaultSettingsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { properties, options }, - putOperationSpec + putOperationSpec, ); } } @@ -61,38 +62,36 @@ export class AccessReviewDefaultSettingsOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDefaultSettings + bodyMapper: Mappers.AccessReviewDefaultSettings, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const putOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewDefaultSettings + bodyMapper: Mappers.AccessReviewDefaultSettings, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties3, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstance.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstance.ts index cf18d8d58a18..8bec0a855c28 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstance.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstance.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { AuthorizationManagementClient } from "../authorizationManagementClient"; import { AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, - AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse, } from "../models"; /** Class containing AccessReviewHistoryDefinitionInstance operations. */ export class AccessReviewHistoryDefinitionInstanceImpl - implements AccessReviewHistoryDefinitionInstance { + implements AccessReviewHistoryDefinitionInstance +{ private readonly client: AuthorizationManagementClient; /** @@ -39,11 +40,11 @@ export class AccessReviewHistoryDefinitionInstanceImpl generateDownloadUri( historyDefinitionId: string, instanceId: string, - options?: AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams + options?: AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, instanceId, options }, - generateDownloadUriOperationSpec + generateDownloadUriOperationSpec, ); } } @@ -51,24 +52,23 @@ export class AccessReviewHistoryDefinitionInstanceImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const generateDownloadUriOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances/{instanceId}/generateDownloadUri", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances/{instanceId}/generateDownloadUri", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryInstance + bodyMapper: Mappers.AccessReviewHistoryInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.historyDefinitionId, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstances.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstances.ts index 98d6e2bfcc3f..e137ae916675 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionInstances.ts @@ -18,13 +18,14 @@ import { AccessReviewHistoryDefinitionInstancesListNextOptionalParams, AccessReviewHistoryDefinitionInstancesListOptionalParams, AccessReviewHistoryDefinitionInstancesListResponse, - AccessReviewHistoryDefinitionInstancesListNextResponse + AccessReviewHistoryDefinitionInstancesListNextResponse, } from "../models"; /// /** Class containing AccessReviewHistoryDefinitionInstances operations. */ export class AccessReviewHistoryDefinitionInstancesImpl - implements AccessReviewHistoryDefinitionInstances { + implements AccessReviewHistoryDefinitionInstances +{ private readonly client: AuthorizationManagementClient; /** @@ -42,7 +43,7 @@ export class AccessReviewHistoryDefinitionInstancesImpl */ public list( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionInstancesListOptionalParams + options?: AccessReviewHistoryDefinitionInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(historyDefinitionId, options); return { @@ -57,14 +58,14 @@ export class AccessReviewHistoryDefinitionInstancesImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(historyDefinitionId, options, settings); - } + }, }; } private async *listPagingPage( historyDefinitionId: string, options?: AccessReviewHistoryDefinitionInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewHistoryDefinitionInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -79,7 +80,7 @@ export class AccessReviewHistoryDefinitionInstancesImpl result = await this._listNext( historyDefinitionId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -90,11 +91,11 @@ export class AccessReviewHistoryDefinitionInstancesImpl private async *listPagingAll( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionInstancesListOptionalParams + options?: AccessReviewHistoryDefinitionInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( historyDefinitionId, - options + options, )) { yield* page; } @@ -107,11 +108,11 @@ export class AccessReviewHistoryDefinitionInstancesImpl */ private _list( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionInstancesListOptionalParams + options?: AccessReviewHistoryDefinitionInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, options }, - listOperationSpec + listOperationSpec, ); } @@ -124,11 +125,11 @@ export class AccessReviewHistoryDefinitionInstancesImpl private _listNext( historyDefinitionId: string, nextLink: string, - options?: AccessReviewHistoryDefinitionInstancesListNextOptionalParams + options?: AccessReviewHistoryDefinitionInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -136,43 +137,42 @@ export class AccessReviewHistoryDefinitionInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.historyDefinitionId + Parameters.historyDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.historyDefinitionId + Parameters.historyDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionOperations.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionOperations.ts index 3f9a3b3198fc..7547d4d7605a 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitionOperations.ts @@ -15,12 +15,13 @@ import { AccessReviewHistoryDefinitionProperties, AccessReviewHistoryDefinitionCreateOptionalParams, AccessReviewHistoryDefinitionCreateResponse, - AccessReviewHistoryDefinitionDeleteByIdOptionalParams + AccessReviewHistoryDefinitionDeleteByIdOptionalParams, } from "../models"; /** Class containing AccessReviewHistoryDefinitionOperations operations. */ export class AccessReviewHistoryDefinitionOperationsImpl - implements AccessReviewHistoryDefinitionOperations { + implements AccessReviewHistoryDefinitionOperations +{ private readonly client: AuthorizationManagementClient; /** @@ -40,11 +41,11 @@ export class AccessReviewHistoryDefinitionOperationsImpl create( historyDefinitionId: string, properties: AccessReviewHistoryDefinitionProperties, - options?: AccessReviewHistoryDefinitionCreateOptionalParams + options?: AccessReviewHistoryDefinitionCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, properties, options }, - createOperationSpec + createOperationSpec, ); } @@ -55,11 +56,11 @@ export class AccessReviewHistoryDefinitionOperationsImpl */ deleteById( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionDeleteByIdOptionalParams + options?: AccessReviewHistoryDefinitionDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } } @@ -67,45 +68,43 @@ export class AccessReviewHistoryDefinitionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinition + bodyMapper: Mappers.AccessReviewHistoryDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.historyDefinitionId + Parameters.historyDefinitionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.historyDefinitionId + Parameters.historyDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitions.ts index 0fe5c5d276a0..c072e2ef78a5 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewHistoryDefinitions.ts @@ -20,13 +20,14 @@ import { AccessReviewHistoryDefinitionsListResponse, AccessReviewHistoryDefinitionsGetByIdOptionalParams, AccessReviewHistoryDefinitionsGetByIdResponse, - AccessReviewHistoryDefinitionsListNextResponse + AccessReviewHistoryDefinitionsListNextResponse, } from "../models"; /// /** Class containing AccessReviewHistoryDefinitions operations. */ export class AccessReviewHistoryDefinitionsImpl - implements AccessReviewHistoryDefinitions { + implements AccessReviewHistoryDefinitions +{ private readonly client: AuthorizationManagementClient; /** @@ -43,7 +44,7 @@ export class AccessReviewHistoryDefinitionsImpl * @param options The options parameters. */ public list( - options?: AccessReviewHistoryDefinitionsListOptionalParams + options?: AccessReviewHistoryDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -58,13 +59,13 @@ export class AccessReviewHistoryDefinitionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: AccessReviewHistoryDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewHistoryDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +86,7 @@ export class AccessReviewHistoryDefinitionsImpl } private async *listPagingAll( - options?: AccessReviewHistoryDefinitionsListOptionalParams + options?: AccessReviewHistoryDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -98,7 +99,7 @@ export class AccessReviewHistoryDefinitionsImpl * @param options The options parameters. */ private _list( - options?: AccessReviewHistoryDefinitionsListOptionalParams + options?: AccessReviewHistoryDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -110,11 +111,11 @@ export class AccessReviewHistoryDefinitionsImpl */ getById( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionsGetByIdOptionalParams + options?: AccessReviewHistoryDefinitionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { historyDefinitionId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -125,11 +126,11 @@ export class AccessReviewHistoryDefinitionsImpl */ private _listNext( nextLink: string, - options?: AccessReviewHistoryDefinitionsListNextOptionalParams + options?: AccessReviewHistoryDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -137,59 +138,57 @@ export class AccessReviewHistoryDefinitionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinition + bodyMapper: Mappers.AccessReviewHistoryDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.historyDefinitionId + Parameters.historyDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceContactedReviewers.ts index fcdc500a6328..5772c5b70318 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceContactedReviewers.ts @@ -18,13 +18,14 @@ import { AccessReviewInstanceContactedReviewersListNextOptionalParams, AccessReviewInstanceContactedReviewersListOptionalParams, AccessReviewInstanceContactedReviewersListResponse, - AccessReviewInstanceContactedReviewersListNextResponse + AccessReviewInstanceContactedReviewersListNextResponse, } from "../models"; /// /** Class containing AccessReviewInstanceContactedReviewers operations. */ export class AccessReviewInstanceContactedReviewersImpl - implements AccessReviewInstanceContactedReviewers { + implements AccessReviewInstanceContactedReviewers +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class AccessReviewInstanceContactedReviewersImpl public list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceContactedReviewersListOptionalParams + options?: AccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, id, options); return { @@ -59,7 +60,7 @@ export class AccessReviewInstanceContactedReviewersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, id, options, settings); - } + }, }; } @@ -67,7 +68,7 @@ export class AccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, options?: AccessReviewInstanceContactedReviewersListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewInstanceContactedReviewersListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +84,7 @@ export class AccessReviewInstanceContactedReviewersImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -95,12 +96,12 @@ export class AccessReviewInstanceContactedReviewersImpl private async *listPagingAll( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceContactedReviewersListOptionalParams + options?: AccessReviewInstanceContactedReviewersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -115,11 +116,11 @@ export class AccessReviewInstanceContactedReviewersImpl private _list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceContactedReviewersListOptionalParams + options?: AccessReviewInstanceContactedReviewersListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -134,11 +135,11 @@ export class AccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: AccessReviewInstanceContactedReviewersListNextOptionalParams + options?: AccessReviewInstanceContactedReviewersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -146,45 +147,44 @@ export class AccessReviewInstanceContactedReviewersImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceDecisions.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceDecisions.ts index d49ce13cf351..4feeebc8c769 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceDecisions.ts @@ -18,13 +18,14 @@ import { AccessReviewInstanceDecisionsListNextOptionalParams, AccessReviewInstanceDecisionsListOptionalParams, AccessReviewInstanceDecisionsListResponse, - AccessReviewInstanceDecisionsListNextResponse + AccessReviewInstanceDecisionsListNextResponse, } from "../models"; /// /** Class containing AccessReviewInstanceDecisions operations. */ export class AccessReviewInstanceDecisionsImpl - implements AccessReviewInstanceDecisions { + implements AccessReviewInstanceDecisions +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class AccessReviewInstanceDecisionsImpl public list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceDecisionsListOptionalParams + options?: AccessReviewInstanceDecisionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, id, options); return { @@ -59,7 +60,7 @@ export class AccessReviewInstanceDecisionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, id, options, settings); - } + }, }; } @@ -67,7 +68,7 @@ export class AccessReviewInstanceDecisionsImpl scheduleDefinitionId: string, id: string, options?: AccessReviewInstanceDecisionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewInstanceDecisionsListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +84,7 @@ export class AccessReviewInstanceDecisionsImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -95,12 +96,12 @@ export class AccessReviewInstanceDecisionsImpl private async *listPagingAll( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceDecisionsListOptionalParams + options?: AccessReviewInstanceDecisionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -115,11 +116,11 @@ export class AccessReviewInstanceDecisionsImpl private _list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceDecisionsListOptionalParams + options?: AccessReviewInstanceDecisionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -134,11 +135,11 @@ export class AccessReviewInstanceDecisionsImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: AccessReviewInstanceDecisionsListNextOptionalParams + options?: AccessReviewInstanceDecisionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -146,45 +147,44 @@ export class AccessReviewInstanceDecisionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceMyDecisions.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceMyDecisions.ts index 5a9808f2160a..b8e3641b6437 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceMyDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceMyDecisions.ts @@ -23,13 +23,14 @@ import { AccessReviewDecisionProperties, AccessReviewInstanceMyDecisionsPatchOptionalParams, AccessReviewInstanceMyDecisionsPatchResponse, - AccessReviewInstanceMyDecisionsListNextResponse + AccessReviewInstanceMyDecisionsListNextResponse, } from "../models"; /// /** Class containing AccessReviewInstanceMyDecisions operations. */ export class AccessReviewInstanceMyDecisionsImpl - implements AccessReviewInstanceMyDecisions { + implements AccessReviewInstanceMyDecisions +{ private readonly client: AuthorizationManagementClient; /** @@ -49,7 +50,7 @@ export class AccessReviewInstanceMyDecisionsImpl public list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceMyDecisionsListOptionalParams + options?: AccessReviewInstanceMyDecisionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, id, options); return { @@ -64,7 +65,7 @@ export class AccessReviewInstanceMyDecisionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, id, options, settings); - } + }, }; } @@ -72,7 +73,7 @@ export class AccessReviewInstanceMyDecisionsImpl scheduleDefinitionId: string, id: string, options?: AccessReviewInstanceMyDecisionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewInstanceMyDecisionsListResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class AccessReviewInstanceMyDecisionsImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -100,12 +101,12 @@ export class AccessReviewInstanceMyDecisionsImpl private async *listPagingAll( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceMyDecisionsListOptionalParams + options?: AccessReviewInstanceMyDecisionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -120,11 +121,11 @@ export class AccessReviewInstanceMyDecisionsImpl private _list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceMyDecisionsListOptionalParams + options?: AccessReviewInstanceMyDecisionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -139,11 +140,11 @@ export class AccessReviewInstanceMyDecisionsImpl scheduleDefinitionId: string, id: string, decisionId: string, - options?: AccessReviewInstanceMyDecisionsGetByIdOptionalParams + options?: AccessReviewInstanceMyDecisionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, decisionId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -160,11 +161,11 @@ export class AccessReviewInstanceMyDecisionsImpl id: string, decisionId: string, properties: AccessReviewDecisionProperties, - options?: AccessReviewInstanceMyDecisionsPatchOptionalParams + options?: AccessReviewInstanceMyDecisionsPatchOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, decisionId, properties, options }, - patchOperationSpec + patchOperationSpec, ); } @@ -179,11 +180,11 @@ export class AccessReviewInstanceMyDecisionsImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: AccessReviewInstanceMyDecisionsListNextOptionalParams + options?: AccessReviewInstanceMyDecisionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -191,59 +192,56 @@ export class AccessReviewInstanceMyDecisionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions/{decisionId}", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions/{decisionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecision + bodyMapper: Mappers.AccessReviewDecision, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.decisionId + Parameters.decisionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const patchOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions/{decisionId}", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions/{decisionId}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecision + bodyMapper: Mappers.AccessReviewDecision, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties5, queryParameters: [Parameters.apiVersion3], @@ -251,29 +249,29 @@ const patchOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.decisionId + Parameters.decisionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceOperations.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceOperations.ts index ed2432eb8826..ec40db06a7bd 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstanceOperations.ts @@ -16,12 +16,13 @@ import { AccessReviewInstanceResetDecisionsOptionalParams, AccessReviewInstanceApplyDecisionsOptionalParams, AccessReviewInstanceSendRemindersOptionalParams, - AccessReviewInstanceAcceptRecommendationsOptionalParams + AccessReviewInstanceAcceptRecommendationsOptionalParams, } from "../models"; /** Class containing AccessReviewInstanceOperations operations. */ export class AccessReviewInstanceOperationsImpl - implements AccessReviewInstanceOperations { + implements AccessReviewInstanceOperations +{ private readonly client: AuthorizationManagementClient; /** @@ -41,11 +42,11 @@ export class AccessReviewInstanceOperationsImpl stop( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceStopOptionalParams + options?: AccessReviewInstanceStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -58,11 +59,11 @@ export class AccessReviewInstanceOperationsImpl resetDecisions( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceResetDecisionsOptionalParams + options?: AccessReviewInstanceResetDecisionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - resetDecisionsOperationSpec + resetDecisionsOperationSpec, ); } @@ -75,11 +76,11 @@ export class AccessReviewInstanceOperationsImpl applyDecisions( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceApplyDecisionsOptionalParams + options?: AccessReviewInstanceApplyDecisionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - applyDecisionsOperationSpec + applyDecisionsOperationSpec, ); } @@ -92,11 +93,11 @@ export class AccessReviewInstanceOperationsImpl sendReminders( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceSendRemindersOptionalParams + options?: AccessReviewInstanceSendRemindersOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - sendRemindersOperationSpec + sendRemindersOperationSpec, ); } @@ -109,11 +110,11 @@ export class AccessReviewInstanceOperationsImpl acceptRecommendations( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceAcceptRecommendationsOptionalParams + options?: AccessReviewInstanceAcceptRecommendationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - acceptRecommendationsOperationSpec + acceptRecommendationsOperationSpec, ); } } @@ -121,101 +122,96 @@ export class AccessReviewInstanceOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const resetDecisionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/resetDecisions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/resetDecisions", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const applyDecisionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/applyDecisions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/applyDecisions", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const sendRemindersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/sendReminders", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/sendReminders", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const acceptRecommendationsOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/acceptRecommendations", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/acceptRecommendations", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstances.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstances.ts index 7710e6ce22b6..85ebbf0caa78 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstances.ts @@ -23,7 +23,7 @@ import { AccessReviewInstanceProperties, AccessReviewInstancesCreateOptionalParams, AccessReviewInstancesCreateResponse, - AccessReviewInstancesListNextResponse + AccessReviewInstancesListNextResponse, } from "../models"; /// @@ -46,7 +46,7 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { */ public list( scheduleDefinitionId: string, - options?: AccessReviewInstancesListOptionalParams + options?: AccessReviewInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, options); return { @@ -61,14 +61,14 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, options, settings); - } + }, }; } private async *listPagingPage( scheduleDefinitionId: string, options?: AccessReviewInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { result = await this._listNext( scheduleDefinitionId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -94,11 +94,11 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { private async *listPagingAll( scheduleDefinitionId: string, - options?: AccessReviewInstancesListOptionalParams + options?: AccessReviewInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, - options + options, )) { yield* page; } @@ -111,11 +111,11 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { */ private _list( scheduleDefinitionId: string, - options?: AccessReviewInstancesListOptionalParams + options?: AccessReviewInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, options }, - listOperationSpec + listOperationSpec, ); } @@ -128,11 +128,11 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { getById( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstancesGetByIdOptionalParams + options?: AccessReviewInstancesGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -147,11 +147,11 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { scheduleDefinitionId: string, id: string, properties: AccessReviewInstanceProperties, - options?: AccessReviewInstancesCreateOptionalParams + options?: AccessReviewInstancesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, properties, options }, - createOperationSpec + createOperationSpec, ); } @@ -164,11 +164,11 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { private _listNext( scheduleDefinitionId: string, nextLink: string, - options?: AccessReviewInstancesListNextOptionalParams + options?: AccessReviewInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -176,59 +176,56 @@ export class AccessReviewInstancesImpl implements AccessReviewInstances { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstance + bodyMapper: Mappers.AccessReviewInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstance + bodyMapper: Mappers.AccessReviewInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties2, queryParameters: [Parameters.apiVersion3], @@ -236,29 +233,29 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewInstancesAssignedForMyApproval.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewInstancesAssignedForMyApproval.ts index bc1bcf0a8c4a..1815c184e8f3 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewInstancesAssignedForMyApproval.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewInstancesAssignedForMyApproval.ts @@ -20,13 +20,14 @@ import { AccessReviewInstancesAssignedForMyApprovalListResponse, AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams, AccessReviewInstancesAssignedForMyApprovalGetByIdResponse, - AccessReviewInstancesAssignedForMyApprovalListNextResponse + AccessReviewInstancesAssignedForMyApprovalListNextResponse, } from "../models"; /// /** Class containing AccessReviewInstancesAssignedForMyApproval operations. */ export class AccessReviewInstancesAssignedForMyApprovalImpl - implements AccessReviewInstancesAssignedForMyApproval { + implements AccessReviewInstancesAssignedForMyApproval +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl */ public list( scheduleDefinitionId: string, - options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, options); return { @@ -59,14 +60,14 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, options, settings); - } + }, }; } private async *listPagingPage( scheduleDefinitionId: string, options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewInstancesAssignedForMyApprovalListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +82,7 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl result = await this._listNext( scheduleDefinitionId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -92,11 +93,11 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl private async *listPagingAll( scheduleDefinitionId: string, - options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, - options + options, )) { yield* page; } @@ -109,11 +110,11 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl */ private _list( scheduleDefinitionId: string, - options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, options }, - listOperationSpec + listOperationSpec, ); } @@ -126,11 +127,11 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl getById( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -143,11 +144,11 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl private _listNext( scheduleDefinitionId: string, nextLink: string, - options?: AccessReviewInstancesAssignedForMyApprovalListNextOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -155,59 +156,57 @@ export class AccessReviewInstancesAssignedForMyApprovalImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.scheduleDefinitionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstance + bodyMapper: Mappers.AccessReviewInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitions.ts index 139909d185a0..a35a8bee781d 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitions.ts @@ -25,13 +25,14 @@ import { AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse, AccessReviewScheduleDefinitionsStopOptionalParams, - AccessReviewScheduleDefinitionsListNextResponse + AccessReviewScheduleDefinitionsListNextResponse, } from "../models"; /// /** Class containing AccessReviewScheduleDefinitions operations. */ export class AccessReviewScheduleDefinitionsImpl - implements AccessReviewScheduleDefinitions { + implements AccessReviewScheduleDefinitions +{ private readonly client: AuthorizationManagementClient; /** @@ -47,7 +48,7 @@ export class AccessReviewScheduleDefinitionsImpl * @param options The options parameters. */ public list( - options?: AccessReviewScheduleDefinitionsListOptionalParams + options?: AccessReviewScheduleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -62,13 +63,13 @@ export class AccessReviewScheduleDefinitionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: AccessReviewScheduleDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewScheduleDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +90,7 @@ export class AccessReviewScheduleDefinitionsImpl } private async *listPagingAll( - options?: AccessReviewScheduleDefinitionsListOptionalParams + options?: AccessReviewScheduleDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -101,7 +102,7 @@ export class AccessReviewScheduleDefinitionsImpl * @param options The options parameters. */ private _list( - options?: AccessReviewScheduleDefinitionsListOptionalParams + options?: AccessReviewScheduleDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -113,11 +114,11 @@ export class AccessReviewScheduleDefinitionsImpl */ getById( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsGetByIdOptionalParams + options?: AccessReviewScheduleDefinitionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -128,11 +129,11 @@ export class AccessReviewScheduleDefinitionsImpl */ deleteById( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsDeleteByIdOptionalParams + options?: AccessReviewScheduleDefinitionsDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } @@ -145,11 +146,11 @@ export class AccessReviewScheduleDefinitionsImpl createOrUpdateById( scheduleDefinitionId: string, properties: AccessReviewScheduleDefinitionProperties, - options?: AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + options?: AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, properties, options }, - createOrUpdateByIdOperationSpec + createOrUpdateByIdOperationSpec, ); } @@ -160,11 +161,11 @@ export class AccessReviewScheduleDefinitionsImpl */ stop( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsStopOptionalParams + options?: AccessReviewScheduleDefinitionsStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -175,11 +176,11 @@ export class AccessReviewScheduleDefinitionsImpl */ private _listNext( nextLink: string, - options?: AccessReviewScheduleDefinitionsListNextOptionalParams + options?: AccessReviewScheduleDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -187,121 +188,116 @@ export class AccessReviewScheduleDefinitionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinition + bodyMapper: Mappers.AccessReviewScheduleDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinition + bodyMapper: Mappers.AccessReviewScheduleDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties1, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/stop", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/stop", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.scheduleDefinitionId + Parameters.scheduleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.ts b/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.ts index 96c59ce15ab2..b7f877dda993 100644 --- a/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.ts +++ b/sdk/authorization/arm-authorization/src/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.ts @@ -18,13 +18,14 @@ import { AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextOptionalParams, AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse, - AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse + AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse, } from "../models"; /// /** Class containing AccessReviewScheduleDefinitionsAssignedForMyApproval operations. */ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl - implements AccessReviewScheduleDefinitionsAssignedForMyApproval { + implements AccessReviewScheduleDefinitionsAssignedForMyApproval +{ private readonly client: AuthorizationManagementClient; /** @@ -40,7 +41,7 @@ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl * @param options The options parameters. */ public list( - options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -55,13 +56,13 @@ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse; let continuationToken = settings?.continuationToken; @@ -82,7 +83,7 @@ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl } private async *listPagingAll( - options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -94,7 +95,7 @@ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl * @param options The options parameters. */ private _list( - options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -106,13 +107,11 @@ export class AccessReviewScheduleDefinitionsAssignedForMyApprovalImpl */ private _listNext( nextLink: string, - options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextOptionalParams - ): Promise< - AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse - > { + options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -124,29 +123,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/alertConfigurations.ts b/sdk/authorization/arm-authorization/src/operations/alertConfigurations.ts index 92d64fedd99d..c4e4b2b2f9aa 100644 --- a/sdk/authorization/arm-authorization/src/operations/alertConfigurations.ts +++ b/sdk/authorization/arm-authorization/src/operations/alertConfigurations.ts @@ -21,7 +21,7 @@ import { AlertConfigurationsGetOptionalParams, AlertConfigurationsGetResponse, AlertConfigurationsUpdateOptionalParams, - AlertConfigurationsListForScopeNextResponse + AlertConfigurationsListForScopeNextResponse, } from "../models"; /// @@ -44,7 +44,7 @@ export class AlertConfigurationsImpl implements AlertConfigurations { */ public listForScope( scope: string, - options?: AlertConfigurationsListForScopeOptionalParams + options?: AlertConfigurationsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -59,14 +59,14 @@ export class AlertConfigurationsImpl implements AlertConfigurations { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: AlertConfigurationsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AlertConfigurationsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +88,7 @@ export class AlertConfigurationsImpl implements AlertConfigurations { private async *listForScopePagingAll( scope: string, - options?: AlertConfigurationsListForScopeOptionalParams + options?: AlertConfigurationsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -110,11 +110,11 @@ export class AlertConfigurationsImpl implements AlertConfigurations { get( scope: string, alertId: string, - options?: AlertConfigurationsGetOptionalParams + options?: AlertConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, options }, - getOperationSpec + getOperationSpec, ); } @@ -129,11 +129,11 @@ export class AlertConfigurationsImpl implements AlertConfigurations { scope: string, alertId: string, parameters: AlertConfiguration, - options?: AlertConfigurationsUpdateOptionalParams + options?: AlertConfigurationsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -144,11 +144,11 @@ export class AlertConfigurationsImpl implements AlertConfigurations { */ private _listForScope( scope: string, - options?: AlertConfigurationsListForScopeOptionalParams + options?: AlertConfigurationsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -161,11 +161,11 @@ export class AlertConfigurationsImpl implements AlertConfigurations { private _listForScopeNext( scope: string, nextLink: string, - options?: AlertConfigurationsListForScopeNextOptionalParams + options?: AlertConfigurationsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -173,68 +173,65 @@ export class AlertConfigurationsImpl implements AlertConfigurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertConfiguration + bodyMapper: Mappers.AlertConfiguration, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertConfigurationListResult + bodyMapper: Mappers.AlertConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertConfigurationListResult + bodyMapper: Mappers.AlertConfigurationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/alertDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/alertDefinitions.ts index 70280df223f5..478a3de65383 100644 --- a/sdk/authorization/arm-authorization/src/operations/alertDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/alertDefinitions.ts @@ -20,7 +20,7 @@ import { AlertDefinitionsListForScopeResponse, AlertDefinitionsGetOptionalParams, AlertDefinitionsGetResponse, - AlertDefinitionsListForScopeNextResponse + AlertDefinitionsListForScopeNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class AlertDefinitionsImpl implements AlertDefinitions { */ public listForScope( scope: string, - options?: AlertDefinitionsListForScopeOptionalParams + options?: AlertDefinitionsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -58,14 +58,14 @@ export class AlertDefinitionsImpl implements AlertDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: AlertDefinitionsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AlertDefinitionsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class AlertDefinitionsImpl implements AlertDefinitions { private async *listForScopePagingAll( scope: string, - options?: AlertDefinitionsListForScopeOptionalParams + options?: AlertDefinitionsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -109,11 +109,11 @@ export class AlertDefinitionsImpl implements AlertDefinitions { get( scope: string, alertDefinitionId: string, - options?: AlertDefinitionsGetOptionalParams + options?: AlertDefinitionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertDefinitionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -124,11 +124,11 @@ export class AlertDefinitionsImpl implements AlertDefinitions { */ private _listForScope( scope: string, - options?: AlertDefinitionsListForScopeOptionalParams + options?: AlertDefinitionsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -141,11 +141,11 @@ export class AlertDefinitionsImpl implements AlertDefinitions { private _listForScopeNext( scope: string, nextLink: string, - options?: AlertDefinitionsListForScopeNextOptionalParams + options?: AlertDefinitionsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -153,55 +153,53 @@ export class AlertDefinitionsImpl implements AlertDefinitions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertDefinition + bodyMapper: Mappers.AlertDefinition, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.alertDefinitionId + Parameters.alertDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertDefinitionListResult + bodyMapper: Mappers.AlertDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertDefinitionListResult + bodyMapper: Mappers.AlertDefinitionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/alertIncidents.ts b/sdk/authorization/arm-authorization/src/operations/alertIncidents.ts index 55e160cf5d5a..ae603fb5f2d7 100644 --- a/sdk/authorization/arm-authorization/src/operations/alertIncidents.ts +++ b/sdk/authorization/arm-authorization/src/operations/alertIncidents.ts @@ -21,7 +21,7 @@ import { AlertIncidentsGetOptionalParams, AlertIncidentsGetResponse, AlertIncidentsRemediateOptionalParams, - AlertIncidentsListForScopeNextResponse + AlertIncidentsListForScopeNextResponse, } from "../models"; /// @@ -46,7 +46,7 @@ export class AlertIncidentsImpl implements AlertIncidents { public listForScope( scope: string, alertId: string, - options?: AlertIncidentsListForScopeOptionalParams + options?: AlertIncidentsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, alertId, options); return { @@ -61,7 +61,7 @@ export class AlertIncidentsImpl implements AlertIncidents { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, alertId, options, settings); - } + }, }; } @@ -69,7 +69,7 @@ export class AlertIncidentsImpl implements AlertIncidents { scope: string, alertId: string, options?: AlertIncidentsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AlertIncidentsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class AlertIncidentsImpl implements AlertIncidents { scope, alertId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -97,12 +97,12 @@ export class AlertIncidentsImpl implements AlertIncidents { private async *listForScopePagingAll( scope: string, alertId: string, - options?: AlertIncidentsListForScopeOptionalParams + options?: AlertIncidentsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage( scope, alertId, - options + options, )) { yield* page; } @@ -125,11 +125,11 @@ export class AlertIncidentsImpl implements AlertIncidents { scope: string, alertId: string, alertIncidentId: string, - options?: AlertIncidentsGetOptionalParams + options?: AlertIncidentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, alertIncidentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -142,11 +142,11 @@ export class AlertIncidentsImpl implements AlertIncidents { private _listForScope( scope: string, alertId: string, - options?: AlertIncidentsListForScopeOptionalParams + options?: AlertIncidentsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -161,11 +161,11 @@ export class AlertIncidentsImpl implements AlertIncidents { scope: string, alertId: string, alertIncidentId: string, - options?: AlertIncidentsRemediateOptionalParams + options?: AlertIncidentsRemediateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, alertIncidentId, options }, - remediateOperationSpec + remediateOperationSpec, ); } @@ -180,11 +180,11 @@ export class AlertIncidentsImpl implements AlertIncidents { scope: string, alertId: string, nextLink: string, - options?: AlertIncidentsListForScopeNextOptionalParams + options?: AlertIncidentsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -192,81 +192,78 @@ export class AlertIncidentsImpl implements AlertIncidents { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertIncident + bodyMapper: Mappers.AlertIncident, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.scope, Parameters.alertId, - Parameters.alertIncidentId + Parameters.alertIncidentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertIncidentListResult + bodyMapper: Mappers.AlertIncidentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept], - serializer + serializer, }; const remediateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.scope, Parameters.alertId, - Parameters.alertIncidentId + Parameters.alertIncidentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertIncidentListResult + bodyMapper: Mappers.AlertIncidentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scope, - Parameters.alertId + Parameters.alertId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/alertOperation.ts b/sdk/authorization/arm-authorization/src/operations/alertOperation.ts index e8e5ebc2aa85..14129a9742e7 100644 --- a/sdk/authorization/arm-authorization/src/operations/alertOperation.ts +++ b/sdk/authorization/arm-authorization/src/operations/alertOperation.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { AuthorizationManagementClient } from "../authorizationManagementClient"; import { AlertOperationGetOptionalParams, - AlertOperationGetResponse + AlertOperationGetResponse, } from "../models"; /** Class containing AlertOperation operations. */ @@ -37,11 +37,11 @@ export class AlertOperationImpl implements AlertOperation { get( scope: string, operationId: string, - options?: AlertOperationGetOptionalParams + options?: AlertOperationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, operationId, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,19 +49,18 @@ export class AlertOperationImpl implements AlertOperation { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertOperationResult + bodyMapper: Mappers.AlertOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.operationId], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/alerts.ts b/sdk/authorization/arm-authorization/src/operations/alerts.ts index fff626310aa2..e767f6a53c26 100644 --- a/sdk/authorization/arm-authorization/src/operations/alerts.ts +++ b/sdk/authorization/arm-authorization/src/operations/alerts.ts @@ -16,7 +16,7 @@ import { AuthorizationManagementClient } from "../authorizationManagementClient" import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -31,7 +31,7 @@ import { AlertsRefreshResponse, AlertsRefreshAllOptionalParams, AlertsRefreshAllResponse, - AlertsListForScopeNextResponse + AlertsListForScopeNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class AlertsImpl implements Alerts { */ public listForScope( scope: string, - options?: AlertsListForScopeOptionalParams + options?: AlertsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -69,14 +69,14 @@ export class AlertsImpl implements Alerts { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: AlertsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AlertsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class AlertsImpl implements Alerts { private async *listForScopePagingAll( scope: string, - options?: AlertsListForScopeOptionalParams + options?: AlertsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -119,11 +119,11 @@ export class AlertsImpl implements Alerts { get( scope: string, alertId: string, - options?: AlertsGetOptionalParams + options?: AlertsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, options }, - getOperationSpec + getOperationSpec, ); } @@ -138,11 +138,11 @@ export class AlertsImpl implements Alerts { scope: string, alertId: string, parameters: Alert, - options?: AlertsUpdateOptionalParams + options?: AlertsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, alertId, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -153,11 +153,11 @@ export class AlertsImpl implements Alerts { */ private _listForScope( scope: string, - options?: AlertsListForScopeOptionalParams + options?: AlertsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -170,7 +170,7 @@ export class AlertsImpl implements Alerts { async beginRefresh( scope: string, alertId: string, - options?: AlertsRefreshOptionalParams + options?: AlertsRefreshOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -179,21 +179,20 @@ export class AlertsImpl implements Alerts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -202,8 +201,8 @@ export class AlertsImpl implements Alerts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -211,15 +210,15 @@ export class AlertsImpl implements Alerts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { scope, alertId, options }, - spec: refreshOperationSpec + spec: refreshOperationSpec, }); const poller = await createHttpPoller< AlertsRefreshResponse, @@ -227,7 +226,7 @@ export class AlertsImpl implements Alerts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -242,7 +241,7 @@ export class AlertsImpl implements Alerts { async beginRefreshAndWait( scope: string, alertId: string, - options?: AlertsRefreshOptionalParams + options?: AlertsRefreshOptionalParams, ): Promise { const poller = await this.beginRefresh(scope, alertId, options); return poller.pollUntilDone(); @@ -255,7 +254,7 @@ export class AlertsImpl implements Alerts { */ async beginRefreshAll( scope: string, - options?: AlertsRefreshAllOptionalParams + options?: AlertsRefreshAllOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -264,21 +263,20 @@ export class AlertsImpl implements Alerts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -287,8 +285,8 @@ export class AlertsImpl implements Alerts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -296,15 +294,15 @@ export class AlertsImpl implements Alerts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { scope, options }, - spec: refreshAllOperationSpec + spec: refreshAllOperationSpec, }); const poller = await createHttpPoller< AlertsRefreshAllResponse, @@ -312,7 +310,7 @@ export class AlertsImpl implements Alerts { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -325,7 +323,7 @@ export class AlertsImpl implements Alerts { */ async beginRefreshAllAndWait( scope: string, - options?: AlertsRefreshAllOptionalParams + options?: AlertsRefreshAllOptionalParams, ): Promise { const poller = await this.beginRefreshAll(scope, options); return poller.pollUntilDone(); @@ -340,11 +338,11 @@ export class AlertsImpl implements Alerts { private _listForScopeNext( scope: string, nextLink: string, - options?: AlertsListForScopeNextOptionalParams + options?: AlertsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -352,127 +350,123 @@ export class AlertsImpl implements Alerts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Alert + bodyMapper: Mappers.Alert, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}", httpMethod: "PATCH", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertListResult + bodyMapper: Mappers.AlertListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const refreshOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshHeaders + headersMapper: Mappers.AlertsRefreshHeaders, }, 201: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshHeaders + headersMapper: Mappers.AlertsRefreshHeaders, }, 202: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshHeaders + headersMapper: Mappers.AlertsRefreshHeaders, }, 204: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshHeaders + headersMapper: Mappers.AlertsRefreshHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope, Parameters.alertId], headerParameters: [Parameters.accept], - serializer + serializer, }; const refreshAllOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshAllHeaders + headersMapper: Mappers.AlertsRefreshAllHeaders, }, 201: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshAllHeaders + headersMapper: Mappers.AlertsRefreshAllHeaders, }, 202: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshAllHeaders + headersMapper: Mappers.AlertsRefreshAllHeaders, }, 204: { bodyMapper: Mappers.AlertOperationResult, - headersMapper: Mappers.AlertsRefreshAllHeaders + headersMapper: Mappers.AlertsRefreshAllHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AlertListResult + bodyMapper: Mappers.AlertListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts b/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts index 0f704c96ddd1..51dabf89ee81 100644 --- a/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts +++ b/sdk/authorization/arm-authorization/src/operations/classicAdministrators.ts @@ -18,7 +18,7 @@ import { ClassicAdministratorsListNextOptionalParams, ClassicAdministratorsListOptionalParams, ClassicAdministratorsListResponse, - ClassicAdministratorsListNextResponse + ClassicAdministratorsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { * @param options The options parameters. */ public list( - options?: ClassicAdministratorsListOptionalParams + options?: ClassicAdministratorsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ClassicAdministratorsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ClassicAdministratorsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { } private async *listPagingAll( - options?: ClassicAdministratorsListOptionalParams + options?: ClassicAdministratorsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { * @param options The options parameters. */ private _list( - options?: ClassicAdministratorsListOptionalParams + options?: ClassicAdministratorsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { */ private _listNext( nextLink: string, - options?: ClassicAdministratorsListNextOptionalParams + options?: ClassicAdministratorsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -117,38 +117,37 @@ export class ClassicAdministratorsImpl implements ClassicAdministrators { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/classicAdministrators", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/classicAdministrators", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClassicAdministratorListResult + bodyMapper: Mappers.ClassicAdministratorListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ClassicAdministratorListResult + bodyMapper: Mappers.ClassicAdministratorListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts index e9461e7e36ed..d720e7d96823 100644 --- a/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/denyAssignments.ts @@ -34,7 +34,7 @@ import { DenyAssignmentsListForResourceNextResponse, DenyAssignmentsListForResourceGroupNextResponse, DenyAssignmentsListNextResponse, - DenyAssignmentsListForScopeNextResponse + DenyAssignmentsListForScopeNextResponse, } from "../models"; /// @@ -65,7 +65,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: DenyAssignmentsListForResourceOptionalParams + options?: DenyAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourcePagingAll( resourceGroupName, @@ -73,7 +73,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath, resourceType, resourceName, - options + options, ); return { next() { @@ -93,9 +93,9 @@ export class DenyAssignmentsImpl implements DenyAssignments { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -106,7 +106,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { resourceType: string, resourceName: string, options?: DenyAssignmentsListForResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DenyAssignmentsListForResourceResponse; let continuationToken = settings?.continuationToken; @@ -117,7 +117,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -132,7 +132,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -147,7 +147,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: DenyAssignmentsListForResourceOptionalParams + options?: DenyAssignmentsListForResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourcePagingPage( resourceGroupName, @@ -155,7 +155,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath, resourceType, resourceName, - options + options, )) { yield* page; } @@ -168,7 +168,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ public listForResourceGroup( resourceGroupName: string, - options?: DenyAssignmentsListForResourceGroupOptionalParams + options?: DenyAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourceGroupPagingAll(resourceGroupName, options); return { @@ -185,16 +185,16 @@ export class DenyAssignmentsImpl implements DenyAssignments { return this.listForResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listForResourceGroupPagingPage( resourceGroupName: string, options?: DenyAssignmentsListForResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DenyAssignmentsListForResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -209,7 +209,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { result = await this._listForResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -220,11 +220,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { private async *listForResourceGroupPagingAll( resourceGroupName: string, - options?: DenyAssignmentsListForResourceGroupOptionalParams + options?: DenyAssignmentsListForResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -235,7 +235,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { * @param options The options parameters. */ public list( - options?: DenyAssignmentsListOptionalParams + options?: DenyAssignmentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -250,13 +250,13 @@ export class DenyAssignmentsImpl implements DenyAssignments { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DenyAssignmentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DenyAssignmentsListResponse; let continuationToken = settings?.continuationToken; @@ -277,7 +277,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { } private async *listPagingAll( - options?: DenyAssignmentsListOptionalParams + options?: DenyAssignmentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -291,7 +291,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ public listForScope( scope: string, - options?: DenyAssignmentsListForScopeOptionalParams + options?: DenyAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -306,14 +306,14 @@ export class DenyAssignmentsImpl implements DenyAssignments { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: DenyAssignmentsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DenyAssignmentsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -335,7 +335,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { private async *listForScopePagingAll( scope: string, - options?: DenyAssignmentsListForScopeOptionalParams + options?: DenyAssignmentsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -357,7 +357,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: DenyAssignmentsListForResourceOptionalParams + options?: DenyAssignmentsListForResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -366,9 +366,9 @@ export class DenyAssignmentsImpl implements DenyAssignments { parentResourcePath, resourceType, resourceName, - options + options, }, - listForResourceOperationSpec + listForResourceOperationSpec, ); } @@ -379,11 +379,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ private _listForResourceGroup( resourceGroupName: string, - options?: DenyAssignmentsListForResourceGroupOptionalParams + options?: DenyAssignmentsListForResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listForResourceGroupOperationSpec + listForResourceGroupOperationSpec, ); } @@ -392,7 +392,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { * @param options The options parameters. */ private _list( - options?: DenyAssignmentsListOptionalParams + options?: DenyAssignmentsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -406,11 +406,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { get( scope: string, denyAssignmentId: string, - options?: DenyAssignmentsGetOptionalParams + options?: DenyAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, denyAssignmentId, options }, - getOperationSpec + getOperationSpec, ); } @@ -425,11 +425,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ getById( denyAssignmentId: string, - options?: DenyAssignmentsGetByIdOptionalParams + options?: DenyAssignmentsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { denyAssignmentId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -440,11 +440,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ private _listForScope( scope: string, - options?: DenyAssignmentsListForScopeOptionalParams + options?: DenyAssignmentsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -465,7 +465,7 @@ export class DenyAssignmentsImpl implements DenyAssignments { resourceType: string, resourceName: string, nextLink: string, - options?: DenyAssignmentsListForResourceNextOptionalParams + options?: DenyAssignmentsListForResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -475,9 +475,9 @@ export class DenyAssignmentsImpl implements DenyAssignments { resourceType, resourceName, nextLink, - options + options, }, - listForResourceNextOperationSpec + listForResourceNextOperationSpec, ); } @@ -490,11 +490,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { private _listForResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DenyAssignmentsListForResourceGroupNextOptionalParams + options?: DenyAssignmentsListForResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listForResourceGroupNextOperationSpec + listForResourceGroupNextOperationSpec, ); } @@ -505,11 +505,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { */ private _listNext( nextLink: string, - options?: DenyAssignmentsListNextOptionalParams + options?: DenyAssignmentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -522,11 +522,11 @@ export class DenyAssignmentsImpl implements DenyAssignments { private _listForScopeNext( scope: string, nextLink: string, - options?: DenyAssignmentsListForScopeNextOptionalParams + options?: DenyAssignmentsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -534,16 +534,15 @@ export class DenyAssignmentsImpl implements DenyAssignments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/denyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.filter], urlParameters: [ @@ -553,112 +552,109 @@ const listForResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/denyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.filter], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/denyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.filter], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}", + path: "/{scope}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignment + bodyMapper: Mappers.DenyAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.denyAssignmentId + Parameters.denyAssignmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{denyAssignmentId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignment + bodyMapper: Mappers.DenyAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.denyAssignmentId1], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/denyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.filter], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -668,62 +664,62 @@ const listForResourceNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName + Parameters.resourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DenyAssignmentListResult + bodyMapper: Mappers.DenyAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/eligibleChildResources.ts b/sdk/authorization/arm-authorization/src/operations/eligibleChildResources.ts index 0c20ecae0383..3bd01ba30a5d 100644 --- a/sdk/authorization/arm-authorization/src/operations/eligibleChildResources.ts +++ b/sdk/authorization/arm-authorization/src/operations/eligibleChildResources.ts @@ -18,7 +18,7 @@ import { EligibleChildResourcesGetNextOptionalParams, EligibleChildResourcesGetOptionalParams, EligibleChildResourcesGetResponse, - EligibleChildResourcesGetNextResponse + EligibleChildResourcesGetNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class EligibleChildResourcesImpl implements EligibleChildResources { */ public list( scope: string, - options?: EligibleChildResourcesGetOptionalParams + options?: EligibleChildResourcesGetOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getPagingAll(scope, options); return { @@ -56,14 +56,14 @@ export class EligibleChildResourcesImpl implements EligibleChildResources { throw new Error("maxPageSize is not supported by this operation."); } return this.getPagingPage(scope, options, settings); - } + }, }; } private async *getPagingPage( scope: string, options?: EligibleChildResourcesGetOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: EligibleChildResourcesGetResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class EligibleChildResourcesImpl implements EligibleChildResources { private async *getPagingAll( scope: string, - options?: EligibleChildResourcesGetOptionalParams + options?: EligibleChildResourcesGetOptionalParams, ): AsyncIterableIterator { for await (const page of this.getPagingPage(scope, options)) { yield* page; @@ -99,11 +99,11 @@ export class EligibleChildResourcesImpl implements EligibleChildResources { */ private _get( scope: string, - options?: EligibleChildResourcesGetOptionalParams + options?: EligibleChildResourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - getOperationSpec + getOperationSpec, ); } @@ -116,11 +116,11 @@ export class EligibleChildResourcesImpl implements EligibleChildResources { private _getNext( scope: string, nextLink: string, - options?: EligibleChildResourcesGetNextOptionalParams + options?: EligibleChildResourcesGetNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - getNextOperationSpec + getNextOperationSpec, ); } } @@ -132,29 +132,29 @@ const getOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EligibleChildResourcesListResult + bodyMapper: Mappers.EligibleChildResourcesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.EligibleChildResourcesListResult + bodyMapper: Mappers.EligibleChildResourcesListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts index 7b8209157c7c..391ab84b8b52 100644 --- a/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts +++ b/sdk/authorization/arm-authorization/src/operations/globalAdministrator.ts @@ -30,11 +30,11 @@ export class GlobalAdministratorImpl implements GlobalAdministrator { * @param options The options parameters. */ elevateAccess( - options?: GlobalAdministratorElevateAccessOptionalParams + options?: GlobalAdministratorElevateAccessOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - elevateAccessOperationSpec + elevateAccessOperationSpec, ); } } @@ -47,11 +47,11 @@ const elevateAccessOperationSpec: coreClient.OperationSpec = { responses: { 200: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/operations.ts b/sdk/authorization/arm-authorization/src/operations/operations.ts index f1a2c9cd24ab..371b1b55e313 100644 --- a/sdk/authorization/arm-authorization/src/operations/operations.ts +++ b/sdk/authorization/arm-authorization/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/permissions.ts b/sdk/authorization/arm-authorization/src/operations/permissions.ts index f3b3a7c39c40..f02031cec423 100644 --- a/sdk/authorization/arm-authorization/src/operations/permissions.ts +++ b/sdk/authorization/arm-authorization/src/operations/permissions.ts @@ -22,7 +22,7 @@ import { PermissionsListForResourceOptionalParams, PermissionsListForResourceResponse, PermissionsListForResourceGroupNextResponse, - PermissionsListForResourceNextResponse + PermissionsListForResourceNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class PermissionsImpl implements Permissions { */ public listForResourceGroup( resourceGroupName: string, - options?: PermissionsListForResourceGroupOptionalParams + options?: PermissionsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourceGroupPagingAll(resourceGroupName, options); return { @@ -62,16 +62,16 @@ export class PermissionsImpl implements Permissions { return this.listForResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listForResourceGroupPagingPage( resourceGroupName: string, options?: PermissionsListForResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PermissionsListForResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class PermissionsImpl implements Permissions { result = await this._listForResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -97,11 +97,11 @@ export class PermissionsImpl implements Permissions { private async *listForResourceGroupPagingAll( resourceGroupName: string, - options?: PermissionsListForResourceGroupOptionalParams + options?: PermissionsListForResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +122,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PermissionsListForResourceOptionalParams + options?: PermissionsListForResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourcePagingAll( resourceGroupName, @@ -130,7 +130,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath, resourceType, resourceName, - options + options, ); return { next() { @@ -150,9 +150,9 @@ export class PermissionsImpl implements Permissions { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -163,7 +163,7 @@ export class PermissionsImpl implements Permissions { resourceType: string, resourceName: string, options?: PermissionsListForResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PermissionsListForResourceResponse; let continuationToken = settings?.continuationToken; @@ -174,7 +174,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -189,7 +189,7 @@ export class PermissionsImpl implements Permissions { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -204,7 +204,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PermissionsListForResourceOptionalParams + options?: PermissionsListForResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourcePagingPage( resourceGroupName, @@ -212,7 +212,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath, resourceType, resourceName, - options + options, )) { yield* page; } @@ -225,11 +225,11 @@ export class PermissionsImpl implements Permissions { */ private _listForResourceGroup( resourceGroupName: string, - options?: PermissionsListForResourceGroupOptionalParams + options?: PermissionsListForResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listForResourceGroupOperationSpec + listForResourceGroupOperationSpec, ); } @@ -248,7 +248,7 @@ export class PermissionsImpl implements Permissions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PermissionsListForResourceOptionalParams + options?: PermissionsListForResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -257,9 +257,9 @@ export class PermissionsImpl implements Permissions { parentResourcePath, resourceType, resourceName, - options + options, }, - listForResourceOperationSpec + listForResourceOperationSpec, ); } @@ -272,11 +272,11 @@ export class PermissionsImpl implements Permissions { private _listForResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: PermissionsListForResourceGroupNextOptionalParams + options?: PermissionsListForResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listForResourceGroupNextOperationSpec + listForResourceGroupNextOperationSpec, ); } @@ -297,7 +297,7 @@ export class PermissionsImpl implements Permissions { resourceType: string, resourceName: string, nextLink: string, - options?: PermissionsListForResourceNextOptionalParams + options?: PermissionsListForResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -307,9 +307,9 @@ export class PermissionsImpl implements Permissions { resourceType, resourceName, nextLink, - options + options, }, - listForResourceNextOperationSpec + listForResourceNextOperationSpec, ); } } @@ -317,37 +317,35 @@ export class PermissionsImpl implements Permissions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Authorization/permissions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PermissionGetResult + bodyMapper: Mappers.PermissionGetResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions", + path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/permissions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PermissionGetResult + bodyMapper: Mappers.PermissionGetResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ @@ -357,41 +355,41 @@ const listForResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName2 + Parameters.resourceName2, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PermissionGetResult + bodyMapper: Mappers.PermissionGetResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PermissionGetResult + bodyMapper: Mappers.PermissionGetResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -401,8 +399,8 @@ const listForResourceNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceProviderNamespace, Parameters.parentResourcePath, Parameters.resourceType, - Parameters.resourceName2 + Parameters.resourceName2, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts b/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts index dfeb509f2be9..981cfc0901a9 100644 --- a/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts +++ b/sdk/authorization/arm-authorization/src/operations/providerOperationsMetadataOperations.ts @@ -20,13 +20,14 @@ import { ProviderOperationsMetadataListResponse, ProviderOperationsMetadataGetOptionalParams, ProviderOperationsMetadataGetResponse, - ProviderOperationsMetadataListNextResponse + ProviderOperationsMetadataListNextResponse, } from "../models"; /// /** Class containing ProviderOperationsMetadataOperations operations. */ export class ProviderOperationsMetadataOperationsImpl - implements ProviderOperationsMetadataOperations { + implements ProviderOperationsMetadataOperations +{ private readonly client: AuthorizationManagementClient; /** @@ -42,7 +43,7 @@ export class ProviderOperationsMetadataOperationsImpl * @param options The options parameters. */ public list( - options?: ProviderOperationsMetadataListOptionalParams + options?: ProviderOperationsMetadataListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -57,13 +58,13 @@ export class ProviderOperationsMetadataOperationsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ProviderOperationsMetadataListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProviderOperationsMetadataListResponse; let continuationToken = settings?.continuationToken; @@ -84,7 +85,7 @@ export class ProviderOperationsMetadataOperationsImpl } private async *listPagingAll( - options?: ProviderOperationsMetadataListOptionalParams + options?: ProviderOperationsMetadataListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -98,11 +99,11 @@ export class ProviderOperationsMetadataOperationsImpl */ get( resourceProviderNamespace: string, - options?: ProviderOperationsMetadataGetOptionalParams + options?: ProviderOperationsMetadataGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceProviderNamespace, options }, - getOperationSpec + getOperationSpec, ); } @@ -111,7 +112,7 @@ export class ProviderOperationsMetadataOperationsImpl * @param options The options parameters. */ private _list( - options?: ProviderOperationsMetadataListOptionalParams + options?: ProviderOperationsMetadataListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -123,11 +124,11 @@ export class ProviderOperationsMetadataOperationsImpl */ private _listNext( nextLink: string, - options?: ProviderOperationsMetadataListNextOptionalParams + options?: ProviderOperationsMetadataListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -135,50 +136,49 @@ export class ProviderOperationsMetadataOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}", + path: "/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderOperationsMetadata + bodyMapper: Mappers.ProviderOperationsMetadata, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.expand], urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Authorization/providerOperations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderOperationsMetadataListResult + bodyMapper: Mappers.ProviderOperationsMetadataListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.expand], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProviderOperationsMetadataListResult + bodyMapper: Mappers.ProviderOperationsMetadataListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleInstances.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleInstances.ts index 09869ff70a66..5d9084d653de 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleInstances.ts @@ -20,13 +20,14 @@ import { RoleAssignmentScheduleInstancesListForScopeResponse, RoleAssignmentScheduleInstancesGetOptionalParams, RoleAssignmentScheduleInstancesGetResponse, - RoleAssignmentScheduleInstancesListForScopeNextResponse + RoleAssignmentScheduleInstancesListForScopeNextResponse, } from "../models"; /// /** Class containing RoleAssignmentScheduleInstances operations. */ export class RoleAssignmentScheduleInstancesImpl - implements RoleAssignmentScheduleInstances { + implements RoleAssignmentScheduleInstances +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class RoleAssignmentScheduleInstancesImpl */ public listForScope( scope: string, - options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams + options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -59,14 +60,14 @@ export class RoleAssignmentScheduleInstancesImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentScheduleInstancesListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class RoleAssignmentScheduleInstancesImpl private async *listForScopePagingAll( scope: string, - options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams + options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -102,11 +103,11 @@ export class RoleAssignmentScheduleInstancesImpl */ private _listForScope( scope: string, - options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams + options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -120,11 +121,11 @@ export class RoleAssignmentScheduleInstancesImpl get( scope: string, roleAssignmentScheduleInstanceName: string, - options?: RoleAssignmentScheduleInstancesGetOptionalParams + options?: RoleAssignmentScheduleInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleInstanceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -137,11 +138,11 @@ export class RoleAssignmentScheduleInstancesImpl private _listForScopeNext( scope: string, nextLink: string, - options?: RoleAssignmentScheduleInstancesListForScopeNextOptionalParams + options?: RoleAssignmentScheduleInstancesListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -149,55 +150,53 @@ export class RoleAssignmentScheduleInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult + bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleInstance + bodyMapper: Mappers.RoleAssignmentScheduleInstance, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleInstanceName + Parameters.roleAssignmentScheduleInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult + bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleRequests.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleRequests.ts index cc83fddd0fc8..861c52c9b27f 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleRequests.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignmentScheduleRequests.ts @@ -25,13 +25,14 @@ import { RoleAssignmentScheduleRequestsCancelOptionalParams, RoleAssignmentScheduleRequestsValidateOptionalParams, RoleAssignmentScheduleRequestsValidateResponse, - RoleAssignmentScheduleRequestsListForScopeNextResponse + RoleAssignmentScheduleRequestsListForScopeNextResponse, } from "../models"; /// /** Class containing RoleAssignmentScheduleRequests operations. */ export class RoleAssignmentScheduleRequestsImpl - implements RoleAssignmentScheduleRequests { + implements RoleAssignmentScheduleRequests +{ private readonly client: AuthorizationManagementClient; /** @@ -49,7 +50,7 @@ export class RoleAssignmentScheduleRequestsImpl */ public listForScope( scope: string, - options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams + options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -64,14 +65,14 @@ export class RoleAssignmentScheduleRequestsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentScheduleRequestsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class RoleAssignmentScheduleRequestsImpl private async *listForScopePagingAll( scope: string, - options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams + options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -103,11 +104,9 @@ export class RoleAssignmentScheduleRequestsImpl /** * Creates a role assignment schedule request. * @param scope The scope of the role assignment schedule request to create. The scope can be any REST - * resource instance. For example, use - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' - * for a resource group, and - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' + * resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * @param roleAssignmentScheduleRequestName A GUID for the role assignment to create. The name must be * unique and different for each role assignment. @@ -118,11 +117,11 @@ export class RoleAssignmentScheduleRequestsImpl scope: string, roleAssignmentScheduleRequestName: string, parameters: RoleAssignmentScheduleRequest, - options?: RoleAssignmentScheduleRequestsCreateOptionalParams + options?: RoleAssignmentScheduleRequestsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleRequestName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -136,11 +135,11 @@ export class RoleAssignmentScheduleRequestsImpl get( scope: string, roleAssignmentScheduleRequestName: string, - options?: RoleAssignmentScheduleRequestsGetOptionalParams + options?: RoleAssignmentScheduleRequestsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleRequestName, options }, - getOperationSpec + getOperationSpec, ); } @@ -151,11 +150,11 @@ export class RoleAssignmentScheduleRequestsImpl */ private _listForScope( scope: string, - options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams + options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -168,11 +167,11 @@ export class RoleAssignmentScheduleRequestsImpl cancel( scope: string, roleAssignmentScheduleRequestName: string, - options?: RoleAssignmentScheduleRequestsCancelOptionalParams + options?: RoleAssignmentScheduleRequestsCancelOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleRequestName, options }, - cancelOperationSpec + cancelOperationSpec, ); } @@ -187,11 +186,11 @@ export class RoleAssignmentScheduleRequestsImpl scope: string, roleAssignmentScheduleRequestName: string, parameters: RoleAssignmentScheduleRequest, - options?: RoleAssignmentScheduleRequestsValidateOptionalParams + options?: RoleAssignmentScheduleRequestsValidateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleRequestName, parameters, options }, - validateOperationSpec + validateOperationSpec, ); } @@ -204,11 +203,11 @@ export class RoleAssignmentScheduleRequestsImpl private _listForScopeNext( scope: string, nextLink: string, - options?: RoleAssignmentScheduleRequestsListForScopeNextOptionalParams + options?: RoleAssignmentScheduleRequestsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -216,120 +215,115 @@ export class RoleAssignmentScheduleRequestsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.RoleAssignmentScheduleRequest + bodyMapper: Mappers.RoleAssignmentScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleRequestName + Parameters.roleAssignmentScheduleRequestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleRequest + bodyMapper: Mappers.RoleAssignmentScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleRequestName + Parameters.roleAssignmentScheduleRequestName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult + bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion5], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleRequestName + Parameters.roleAssignmentScheduleRequestName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleRequest + bodyMapper: Mappers.RoleAssignmentScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleRequestName + Parameters.roleAssignmentScheduleRequestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult + bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignmentSchedules.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignmentSchedules.ts index 79eec82f8018..d641c21f3802 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignmentSchedules.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignmentSchedules.ts @@ -20,7 +20,7 @@ import { RoleAssignmentSchedulesListForScopeResponse, RoleAssignmentSchedulesGetOptionalParams, RoleAssignmentSchedulesGetResponse, - RoleAssignmentSchedulesListForScopeNextResponse + RoleAssignmentSchedulesListForScopeNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { */ public listForScope( scope: string, - options?: RoleAssignmentSchedulesListForScopeOptionalParams + options?: RoleAssignmentSchedulesListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -58,14 +58,14 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleAssignmentSchedulesListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentSchedulesListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { private async *listForScopePagingAll( scope: string, - options?: RoleAssignmentSchedulesListForScopeOptionalParams + options?: RoleAssignmentSchedulesListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -103,11 +103,11 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { get( scope: string, roleAssignmentScheduleName: string, - options?: RoleAssignmentSchedulesGetOptionalParams + options?: RoleAssignmentSchedulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentScheduleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -118,11 +118,11 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { */ private _listForScope( scope: string, - options?: RoleAssignmentSchedulesListForScopeOptionalParams + options?: RoleAssignmentSchedulesListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -135,11 +135,11 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { private _listForScopeNext( scope: string, nextLink: string, - options?: RoleAssignmentSchedulesListForScopeNextOptionalParams + options?: RoleAssignmentSchedulesListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -147,54 +147,53 @@ export class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentSchedule + bodyMapper: Mappers.RoleAssignmentSchedule, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentScheduleName + Parameters.roleAssignmentScheduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleListResult + bodyMapper: Mappers.RoleAssignmentScheduleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentScheduleListResult + bodyMapper: Mappers.RoleAssignmentScheduleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts index aa6ff2403982..ddb6febb9777 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleAssignments.ts @@ -43,7 +43,7 @@ import { RoleAssignmentsListForSubscriptionNextResponse, RoleAssignmentsListForResourceGroupNextResponse, RoleAssignmentsListForResourceNextResponse, - RoleAssignmentsListForScopeNextResponse + RoleAssignmentsListForScopeNextResponse, } from "../models"; /// @@ -64,7 +64,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { * @param options The options parameters. */ public listForSubscription( - options?: RoleAssignmentsListForSubscriptionOptionalParams + options?: RoleAssignmentsListForSubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForSubscriptionPagingAll(options); return { @@ -79,13 +79,13 @@ export class RoleAssignmentsImpl implements RoleAssignments { throw new Error("maxPageSize is not supported by this operation."); } return this.listForSubscriptionPagingPage(options, settings); - } + }, }; } private async *listForSubscriptionPagingPage( options?: RoleAssignmentsListForSubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentsListForSubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +106,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { } private async *listForSubscriptionPagingAll( - options?: RoleAssignmentsListForSubscriptionOptionalParams + options?: RoleAssignmentsListForSubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForSubscriptionPagingPage(options)) { yield* page; @@ -120,7 +120,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ public listForResourceGroup( resourceGroupName: string, - options?: RoleAssignmentsListForResourceGroupOptionalParams + options?: RoleAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourceGroupPagingAll(resourceGroupName, options); return { @@ -137,16 +137,16 @@ export class RoleAssignmentsImpl implements RoleAssignments { return this.listForResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listForResourceGroupPagingPage( resourceGroupName: string, options?: RoleAssignmentsListForResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentsListForResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -161,7 +161,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { result = await this._listForResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -172,11 +172,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { private async *listForResourceGroupPagingAll( resourceGroupName: string, - options?: RoleAssignmentsListForResourceGroupOptionalParams + options?: RoleAssignmentsListForResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -196,14 +196,14 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: RoleAssignmentsListForResourceOptionalParams + options?: RoleAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForResourcePagingAll( resourceGroupName, resourceProviderNamespace, resourceType, resourceName, - options + options, ); return { next() { @@ -222,9 +222,9 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceType, resourceName, options, - settings + settings, ); - } + }, }; } @@ -234,7 +234,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceType: string, resourceName: string, options?: RoleAssignmentsListForResourceOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentsListForResourceResponse; let continuationToken = settings?.continuationToken; @@ -244,7 +244,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceProviderNamespace, resourceType, resourceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -258,7 +258,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceType, resourceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -272,14 +272,14 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: RoleAssignmentsListForResourceOptionalParams + options?: RoleAssignmentsListForResourceOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForResourcePagingPage( resourceGroupName, resourceProviderNamespace, resourceType, resourceName, - options + options, )) { yield* page; } @@ -295,7 +295,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ public listForScope( scope: string, - options?: RoleAssignmentsListForScopeOptionalParams + options?: RoleAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -310,14 +310,14 @@ export class RoleAssignmentsImpl implements RoleAssignments { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleAssignmentsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleAssignmentsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -339,7 +339,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { private async *listForScopePagingAll( scope: string, - options?: RoleAssignmentsListForScopeOptionalParams + options?: RoleAssignmentsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -351,11 +351,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { * @param options The options parameters. */ private _listForSubscription( - options?: RoleAssignmentsListForSubscriptionOptionalParams + options?: RoleAssignmentsListForSubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listForSubscriptionOperationSpec + listForSubscriptionOperationSpec, ); } @@ -366,11 +366,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ private _listForResourceGroup( resourceGroupName: string, - options?: RoleAssignmentsListForResourceGroupOptionalParams + options?: RoleAssignmentsListForResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listForResourceGroupOperationSpec + listForResourceGroupOperationSpec, ); } @@ -388,7 +388,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: RoleAssignmentsListForResourceOptionalParams + options?: RoleAssignmentsListForResourceOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -396,9 +396,9 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceProviderNamespace, resourceType, resourceName, - options + options, }, - listForResourceOperationSpec + listForResourceOperationSpec, ); } @@ -414,11 +414,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { get( scope: string, roleAssignmentName: string, - options?: RoleAssignmentsGetOptionalParams + options?: RoleAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -436,11 +436,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { scope: string, roleAssignmentName: string, parameters: RoleAssignmentCreateParameters, - options?: RoleAssignmentsCreateOptionalParams + options?: RoleAssignmentsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -456,11 +456,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { delete( scope: string, roleAssignmentName: string, - options?: RoleAssignmentsDeleteOptionalParams + options?: RoleAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleAssignmentName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -474,11 +474,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ private _listForScope( scope: string, - options?: RoleAssignmentsListForScopeOptionalParams + options?: RoleAssignmentsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -492,11 +492,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ getById( roleAssignmentId: string, - options?: RoleAssignmentsGetByIdOptionalParams + options?: RoleAssignmentsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleAssignmentId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -512,11 +512,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { createById( roleAssignmentId: string, parameters: RoleAssignmentCreateParameters, - options?: RoleAssignmentsCreateByIdOptionalParams + options?: RoleAssignmentsCreateByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleAssignmentId, parameters, options }, - createByIdOperationSpec + createByIdOperationSpec, ); } @@ -530,11 +530,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ deleteById( roleAssignmentId: string, - options?: RoleAssignmentsDeleteByIdOptionalParams + options?: RoleAssignmentsDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleAssignmentId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } @@ -545,11 +545,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { */ private _listForSubscriptionNext( nextLink: string, - options?: RoleAssignmentsListForSubscriptionNextOptionalParams + options?: RoleAssignmentsListForSubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listForSubscriptionNextOperationSpec + listForSubscriptionNextOperationSpec, ); } @@ -562,11 +562,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { private _listForResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: RoleAssignmentsListForResourceGroupNextOptionalParams + options?: RoleAssignmentsListForResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listForResourceGroupNextOperationSpec + listForResourceGroupNextOperationSpec, ); } @@ -586,7 +586,7 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceType: string, resourceName: string, nextLink: string, - options?: RoleAssignmentsListForResourceNextOptionalParams + options?: RoleAssignmentsListForResourceNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -595,9 +595,9 @@ export class RoleAssignmentsImpl implements RoleAssignments { resourceType, resourceName, nextLink, - options + options, }, - listForResourceNextOperationSpec + listForResourceNextOperationSpec, ); } @@ -613,11 +613,11 @@ export class RoleAssignmentsImpl implements RoleAssignments { private _listForScopeNext( scope: string, nextLink: string, - options?: RoleAssignmentsListForScopeNextOptionalParams + options?: RoleAssignmentsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -625,67 +625,64 @@ export class RoleAssignmentsImpl implements RoleAssignments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForSubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion1, Parameters.filter1, - Parameters.tenantId + Parameters.tenantId, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/roleAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/roleAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion1, Parameters.filter1, - Parameters.tenantId + Parameters.tenantId, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/roleAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion1, Parameters.filter1, - Parameters.tenantId + Parameters.tenantId, ], urlParameters: [ Parameters.$host, @@ -693,204 +690,201 @@ const listForResourceOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.resourceType, - Parameters.resourceName1 + Parameters.resourceName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.tenantId], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentName + Parameters.roleAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, 201: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentName + Parameters.roleAssignmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.tenantId], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleAssignmentName + Parameters.roleAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion1, Parameters.filter1, Parameters.tenantId, - Parameters.skipToken + Parameters.skipToken, ], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{roleAssignmentId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.tenantId], urlParameters: [Parameters.$host, Parameters.roleAssignmentId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createByIdOperationSpec: coreClient.OperationSpec = { path: "/{roleAssignmentId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, 201: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.roleAssignmentId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { path: "/{roleAssignmentId}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.RoleAssignment + bodyMapper: Mappers.RoleAssignment, }, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion1, Parameters.tenantId], urlParameters: [Parameters.$host, Parameters.roleAssignmentId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForSubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForResourceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, @@ -899,23 +893,23 @@ const listForResourceNextOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.resourceProviderNamespace, Parameters.resourceType, - Parameters.resourceName1 + Parameters.resourceName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleAssignmentListResult + bodyMapper: Mappers.RoleAssignmentListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts index 0971f8bb42ab..e6be6215695e 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleDefinitions.ts @@ -26,7 +26,7 @@ import { RoleDefinitionsCreateOrUpdateResponse, RoleDefinitionsGetByIdOptionalParams, RoleDefinitionsGetByIdResponse, - RoleDefinitionsListNextResponse + RoleDefinitionsListNextResponse, } from "../models"; /// @@ -52,7 +52,7 @@ export class RoleDefinitionsImpl implements RoleDefinitions { */ public list( scope: string, - options?: RoleDefinitionsListOptionalParams + options?: RoleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, options); return { @@ -67,14 +67,14 @@ export class RoleDefinitionsImpl implements RoleDefinitions { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scope, options, settings); - } + }, }; } private async *listPagingPage( scope: string, options?: RoleDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class RoleDefinitionsImpl implements RoleDefinitions { private async *listPagingAll( scope: string, - options?: RoleDefinitionsListOptionalParams + options?: RoleDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(scope, options)) { yield* page; @@ -115,11 +115,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { delete( scope: string, roleDefinitionId: string, - options?: RoleDefinitionsDeleteOptionalParams + options?: RoleDefinitionsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleDefinitionId, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -135,11 +135,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { get( scope: string, roleDefinitionId: string, - options?: RoleDefinitionsGetOptionalParams + options?: RoleDefinitionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleDefinitionId, options }, - getOperationSpec + getOperationSpec, ); } @@ -157,11 +157,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { scope: string, roleDefinitionId: string, roleDefinition: RoleDefinition, - options?: RoleDefinitionsCreateOrUpdateOptionalParams + options?: RoleDefinitionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleDefinitionId, roleDefinition, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -175,11 +175,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { */ private _list( scope: string, - options?: RoleDefinitionsListOptionalParams + options?: RoleDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listOperationSpec + listOperationSpec, ); } @@ -194,11 +194,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { */ getById( roleId: string, - options?: RoleDefinitionsGetByIdOptionalParams + options?: RoleDefinitionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -214,11 +214,11 @@ export class RoleDefinitionsImpl implements RoleDefinitions { private _listNext( scope: string, nextLink: string, - options?: RoleDefinitionsListNextOptionalParams + options?: RoleDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -226,115 +226,112 @@ export class RoleDefinitionsImpl implements RoleDefinitions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", httpMethod: "DELETE", responses: { 200: { - bodyMapper: Mappers.RoleDefinition + bodyMapper: Mappers.RoleDefinition, }, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleDefinitionId + Parameters.roleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleDefinition + bodyMapper: Mappers.RoleDefinition, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleDefinitionId + Parameters.roleDefinitionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.RoleDefinition + bodyMapper: Mappers.RoleDefinition, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.roleDefinition, queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleDefinitionId + Parameters.roleDefinitionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleDefinitionListResult + bodyMapper: Mappers.RoleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { path: "/{roleId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleDefinition + bodyMapper: Mappers.RoleDefinition, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.roleId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleDefinitionListResult + bodyMapper: Mappers.RoleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleInstances.ts b/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleInstances.ts index d742f9616209..2da9f5058175 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleInstances.ts @@ -20,13 +20,14 @@ import { RoleEligibilityScheduleInstancesListForScopeResponse, RoleEligibilityScheduleInstancesGetOptionalParams, RoleEligibilityScheduleInstancesGetResponse, - RoleEligibilityScheduleInstancesListForScopeNextResponse + RoleEligibilityScheduleInstancesListForScopeNextResponse, } from "../models"; /// /** Class containing RoleEligibilityScheduleInstances operations. */ export class RoleEligibilityScheduleInstancesImpl - implements RoleEligibilityScheduleInstances { + implements RoleEligibilityScheduleInstances +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class RoleEligibilityScheduleInstancesImpl */ public listForScope( scope: string, - options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams + options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -59,14 +60,14 @@ export class RoleEligibilityScheduleInstancesImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleEligibilityScheduleInstancesListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class RoleEligibilityScheduleInstancesImpl private async *listForScopePagingAll( scope: string, - options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams + options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -102,11 +103,11 @@ export class RoleEligibilityScheduleInstancesImpl */ private _listForScope( scope: string, - options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams + options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -120,11 +121,11 @@ export class RoleEligibilityScheduleInstancesImpl get( scope: string, roleEligibilityScheduleInstanceName: string, - options?: RoleEligibilityScheduleInstancesGetOptionalParams + options?: RoleEligibilityScheduleInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleInstanceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -137,11 +138,11 @@ export class RoleEligibilityScheduleInstancesImpl private _listForScopeNext( scope: string, nextLink: string, - options?: RoleEligibilityScheduleInstancesListForScopeNextOptionalParams + options?: RoleEligibilityScheduleInstancesListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -149,55 +150,53 @@ export class RoleEligibilityScheduleInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleInstanceListResult + bodyMapper: Mappers.RoleEligibilityScheduleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/{roleEligibilityScheduleInstanceName}", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleInstances/{roleEligibilityScheduleInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleInstance + bodyMapper: Mappers.RoleEligibilityScheduleInstance, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleInstanceName + Parameters.roleEligibilityScheduleInstanceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleInstanceListResult + bodyMapper: Mappers.RoleEligibilityScheduleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleRequests.ts b/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleRequests.ts index 3a303a55e84e..251a42d8c219 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleRequests.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleEligibilityScheduleRequests.ts @@ -25,13 +25,14 @@ import { RoleEligibilityScheduleRequestsCancelOptionalParams, RoleEligibilityScheduleRequestsValidateOptionalParams, RoleEligibilityScheduleRequestsValidateResponse, - RoleEligibilityScheduleRequestsListForScopeNextResponse + RoleEligibilityScheduleRequestsListForScopeNextResponse, } from "../models"; /// /** Class containing RoleEligibilityScheduleRequests operations. */ export class RoleEligibilityScheduleRequestsImpl - implements RoleEligibilityScheduleRequests { + implements RoleEligibilityScheduleRequests +{ private readonly client: AuthorizationManagementClient; /** @@ -49,7 +50,7 @@ export class RoleEligibilityScheduleRequestsImpl */ public listForScope( scope: string, - options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams + options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -64,14 +65,14 @@ export class RoleEligibilityScheduleRequestsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleEligibilityScheduleRequestsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class RoleEligibilityScheduleRequestsImpl private async *listForScopePagingAll( scope: string, - options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams + options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -103,11 +104,9 @@ export class RoleEligibilityScheduleRequestsImpl /** * Creates a role eligibility schedule request. * @param scope The scope of the role eligibility schedule request to create. The scope can be any REST - * resource instance. For example, use - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' - * for a resource group, and - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' + * resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * @param roleEligibilityScheduleRequestName The name of the role eligibility to create. It can be any * valid GUID. @@ -118,11 +117,11 @@ export class RoleEligibilityScheduleRequestsImpl scope: string, roleEligibilityScheduleRequestName: string, parameters: RoleEligibilityScheduleRequest, - options?: RoleEligibilityScheduleRequestsCreateOptionalParams + options?: RoleEligibilityScheduleRequestsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleRequestName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -136,11 +135,11 @@ export class RoleEligibilityScheduleRequestsImpl get( scope: string, roleEligibilityScheduleRequestName: string, - options?: RoleEligibilityScheduleRequestsGetOptionalParams + options?: RoleEligibilityScheduleRequestsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleRequestName, options }, - getOperationSpec + getOperationSpec, ); } @@ -151,11 +150,11 @@ export class RoleEligibilityScheduleRequestsImpl */ private _listForScope( scope: string, - options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams + options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -168,11 +167,11 @@ export class RoleEligibilityScheduleRequestsImpl cancel( scope: string, roleEligibilityScheduleRequestName: string, - options?: RoleEligibilityScheduleRequestsCancelOptionalParams + options?: RoleEligibilityScheduleRequestsCancelOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleRequestName, options }, - cancelOperationSpec + cancelOperationSpec, ); } @@ -187,11 +186,11 @@ export class RoleEligibilityScheduleRequestsImpl scope: string, roleEligibilityScheduleRequestName: string, parameters: RoleEligibilityScheduleRequest, - options?: RoleEligibilityScheduleRequestsValidateOptionalParams + options?: RoleEligibilityScheduleRequestsValidateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleRequestName, parameters, options }, - validateOperationSpec + validateOperationSpec, ); } @@ -204,11 +203,11 @@ export class RoleEligibilityScheduleRequestsImpl private _listForScopeNext( scope: string, nextLink: string, - options?: RoleEligibilityScheduleRequestsListForScopeNextOptionalParams + options?: RoleEligibilityScheduleRequestsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -216,120 +215,115 @@ export class RoleEligibilityScheduleRequestsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.RoleEligibilityScheduleRequest + bodyMapper: Mappers.RoleEligibilityScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleRequestName + Parameters.roleEligibilityScheduleRequestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleRequest + bodyMapper: Mappers.RoleEligibilityScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleRequestName + Parameters.roleEligibilityScheduleRequestName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleRequestListResult + bodyMapper: Mappers.RoleEligibilityScheduleRequestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.filter, Parameters.apiVersion5], + queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/cancel", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/cancel", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleRequestName + Parameters.roleEligibilityScheduleRequestName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const validateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/validate", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestName}/validate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleRequest + bodyMapper: Mappers.RoleEligibilityScheduleRequest, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleRequestName + Parameters.roleEligibilityScheduleRequestName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleRequestListResult + bodyMapper: Mappers.RoleEligibilityScheduleRequestListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleEligibilitySchedules.ts b/sdk/authorization/arm-authorization/src/operations/roleEligibilitySchedules.ts index 95370932c054..353bfaccec9d 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleEligibilitySchedules.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleEligibilitySchedules.ts @@ -20,7 +20,7 @@ import { RoleEligibilitySchedulesListForScopeResponse, RoleEligibilitySchedulesGetOptionalParams, RoleEligibilitySchedulesGetResponse, - RoleEligibilitySchedulesListForScopeNextResponse + RoleEligibilitySchedulesListForScopeNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { */ public listForScope( scope: string, - options?: RoleEligibilitySchedulesListForScopeOptionalParams + options?: RoleEligibilitySchedulesListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -58,14 +58,14 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleEligibilitySchedulesListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleEligibilitySchedulesListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { private async *listForScopePagingAll( scope: string, - options?: RoleEligibilitySchedulesListForScopeOptionalParams + options?: RoleEligibilitySchedulesListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -103,11 +103,11 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { get( scope: string, roleEligibilityScheduleName: string, - options?: RoleEligibilitySchedulesGetOptionalParams + options?: RoleEligibilitySchedulesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleEligibilityScheduleName, options }, - getOperationSpec + getOperationSpec, ); } @@ -118,11 +118,11 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { */ private _listForScope( scope: string, - options?: RoleEligibilitySchedulesListForScopeOptionalParams + options?: RoleEligibilitySchedulesListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -135,11 +135,11 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { private _listForScopeNext( scope: string, nextLink: string, - options?: RoleEligibilitySchedulesListForScopeNextOptionalParams + options?: RoleEligibilitySchedulesListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -147,54 +147,53 @@ export class RoleEligibilitySchedulesImpl implements RoleEligibilitySchedules { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules/{roleEligibilityScheduleName}", + path: "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules/{roleEligibilityScheduleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilitySchedule + bodyMapper: Mappers.RoleEligibilitySchedule, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleEligibilityScheduleName + Parameters.roleEligibilityScheduleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleEligibilitySchedules", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleListResult + bodyMapper: Mappers.RoleEligibilityScheduleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.filter, Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleEligibilityScheduleListResult + bodyMapper: Mappers.RoleEligibilityScheduleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleManagementPolicies.ts b/sdk/authorization/arm-authorization/src/operations/roleManagementPolicies.ts index 9f356908c1b4..365d1723acb1 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleManagementPolicies.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleManagementPolicies.ts @@ -23,7 +23,7 @@ import { RoleManagementPoliciesUpdateOptionalParams, RoleManagementPoliciesUpdateResponse, RoleManagementPoliciesDeleteOptionalParams, - RoleManagementPoliciesListForScopeNextResponse + RoleManagementPoliciesListForScopeNextResponse, } from "../models"; /// @@ -46,7 +46,7 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { */ public listForScope( scope: string, - options?: RoleManagementPoliciesListForScopeOptionalParams + options?: RoleManagementPoliciesListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -61,14 +61,14 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleManagementPoliciesListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleManagementPoliciesListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +90,7 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { private async *listForScopePagingAll( scope: string, - options?: RoleManagementPoliciesListForScopeOptionalParams + options?: RoleManagementPoliciesListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -106,11 +106,11 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { get( scope: string, roleManagementPolicyName: string, - options?: RoleManagementPoliciesGetOptionalParams + options?: RoleManagementPoliciesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -125,11 +125,11 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { scope: string, roleManagementPolicyName: string, parameters: RoleManagementPolicy, - options?: RoleManagementPoliciesUpdateOptionalParams + options?: RoleManagementPoliciesUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -142,11 +142,11 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { delete( scope: string, roleManagementPolicyName: string, - options?: RoleManagementPoliciesDeleteOptionalParams + options?: RoleManagementPoliciesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -157,11 +157,11 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { */ private _listForScope( scope: string, - options?: RoleManagementPoliciesListForScopeOptionalParams + options?: RoleManagementPoliciesListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -174,11 +174,11 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { private _listForScopeNext( scope: string, nextLink: string, - options?: RoleManagementPoliciesListForScopeNextOptionalParams + options?: RoleManagementPoliciesListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -186,97 +186,94 @@ export class RoleManagementPoliciesImpl implements RoleManagementPolicies { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicy + bodyMapper: Mappers.RoleManagementPolicy, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyName + Parameters.roleManagementPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicy + bodyMapper: Mappers.RoleManagementPolicy, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyName + Parameters.roleManagementPolicyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyName + Parameters.roleManagementPolicyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicyListResult + bodyMapper: Mappers.RoleManagementPolicyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicyListResult + bodyMapper: Mappers.RoleManagementPolicyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/roleManagementPolicyAssignments.ts b/sdk/authorization/arm-authorization/src/operations/roleManagementPolicyAssignments.ts index da229d06b1cc..3bceba546ec5 100644 --- a/sdk/authorization/arm-authorization/src/operations/roleManagementPolicyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operations/roleManagementPolicyAssignments.ts @@ -23,13 +23,14 @@ import { RoleManagementPolicyAssignmentsCreateOptionalParams, RoleManagementPolicyAssignmentsCreateResponse, RoleManagementPolicyAssignmentsDeleteOptionalParams, - RoleManagementPolicyAssignmentsListForScopeNextResponse + RoleManagementPolicyAssignmentsListForScopeNextResponse, } from "../models"; /// /** Class containing RoleManagementPolicyAssignments operations. */ export class RoleManagementPolicyAssignmentsImpl - implements RoleManagementPolicyAssignments { + implements RoleManagementPolicyAssignments +{ private readonly client: AuthorizationManagementClient; /** @@ -47,7 +48,7 @@ export class RoleManagementPolicyAssignmentsImpl */ public listForScope( scope: string, - options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams + options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listForScopePagingAll(scope, options); return { @@ -62,14 +63,14 @@ export class RoleManagementPolicyAssignmentsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listForScopePagingPage(scope, options, settings); - } + }, }; } private async *listForScopePagingPage( scope: string, options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RoleManagementPolicyAssignmentsListForScopeResponse; let continuationToken = settings?.continuationToken; @@ -91,7 +92,7 @@ export class RoleManagementPolicyAssignmentsImpl private async *listForScopePagingAll( scope: string, - options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams + options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams, ): AsyncIterableIterator { for await (const page of this.listForScopePagingPage(scope, options)) { yield* page; @@ -108,11 +109,11 @@ export class RoleManagementPolicyAssignmentsImpl get( scope: string, roleManagementPolicyAssignmentName: string, - options?: RoleManagementPolicyAssignmentsGetOptionalParams + options?: RoleManagementPolicyAssignmentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyAssignmentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -128,11 +129,11 @@ export class RoleManagementPolicyAssignmentsImpl scope: string, roleManagementPolicyAssignmentName: string, parameters: RoleManagementPolicyAssignment, - options?: RoleManagementPolicyAssignmentsCreateOptionalParams + options?: RoleManagementPolicyAssignmentsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyAssignmentName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -146,11 +147,11 @@ export class RoleManagementPolicyAssignmentsImpl delete( scope: string, roleManagementPolicyAssignmentName: string, - options?: RoleManagementPolicyAssignmentsDeleteOptionalParams + options?: RoleManagementPolicyAssignmentsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, roleManagementPolicyAssignmentName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -161,11 +162,11 @@ export class RoleManagementPolicyAssignmentsImpl */ private _listForScope( scope: string, - options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams + options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listForScopeOperationSpec + listForScopeOperationSpec, ); } @@ -178,11 +179,11 @@ export class RoleManagementPolicyAssignmentsImpl private _listForScopeNext( scope: string, nextLink: string, - options?: RoleManagementPolicyAssignmentsListForScopeNextOptionalParams + options?: RoleManagementPolicyAssignmentsListForScopeNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listForScopeNextOperationSpec + listForScopeNextOperationSpec, ); } } @@ -190,98 +191,94 @@ export class RoleManagementPolicyAssignmentsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicyAssignment + bodyMapper: Mappers.RoleManagementPolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyAssignmentName + Parameters.roleManagementPolicyAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", httpMethod: "PUT", responses: { 201: { - bodyMapper: Mappers.RoleManagementPolicyAssignment + bodyMapper: Mappers.RoleManagementPolicyAssignment, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyAssignmentName + Parameters.roleManagementPolicyAssignmentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.scope, - Parameters.roleManagementPolicyAssignmentName + Parameters.roleManagementPolicyAssignmentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments", + path: "/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicyAssignmentListResult + bodyMapper: Mappers.RoleManagementPolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; const listForScopeNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleManagementPolicyAssignmentListResult + bodyMapper: Mappers.RoleManagementPolicyAssignmentListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewDefaultSettings.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewDefaultSettings.ts index 875fed822a9d..39600d7720cc 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewDefaultSettings.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewDefaultSettings.ts @@ -16,12 +16,13 @@ import { ScopeAccessReviewDefaultSettingsGetResponse, AccessReviewScheduleSettings, ScopeAccessReviewDefaultSettingsPutOptionalParams, - ScopeAccessReviewDefaultSettingsPutResponse + ScopeAccessReviewDefaultSettingsPutResponse, } from "../models"; /** Class containing ScopeAccessReviewDefaultSettings operations. */ export class ScopeAccessReviewDefaultSettingsImpl - implements ScopeAccessReviewDefaultSettings { + implements ScopeAccessReviewDefaultSettings +{ private readonly client: AuthorizationManagementClient; /** @@ -39,11 +40,11 @@ export class ScopeAccessReviewDefaultSettingsImpl */ get( scope: string, - options?: ScopeAccessReviewDefaultSettingsGetOptionalParams + options?: ScopeAccessReviewDefaultSettingsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - getOperationSpec + getOperationSpec, ); } @@ -56,11 +57,11 @@ export class ScopeAccessReviewDefaultSettingsImpl put( scope: string, properties: AccessReviewScheduleSettings, - options?: ScopeAccessReviewDefaultSettingsPutOptionalParams + options?: ScopeAccessReviewDefaultSettingsPutOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, properties, options }, - putOperationSpec + putOperationSpec, ); } } @@ -68,38 +69,36 @@ export class ScopeAccessReviewDefaultSettingsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDefaultSettings + bodyMapper: Mappers.AccessReviewDefaultSettings, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], - serializer + serializer, }; const putOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleSettings/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewDefaultSettings + bodyMapper: Mappers.AccessReviewDefaultSettings, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties3, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinition.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinition.ts index 5b80d847cde1..91b8686b5cc9 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinition.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinition.ts @@ -15,12 +15,13 @@ import { AccessReviewHistoryDefinitionProperties, ScopeAccessReviewHistoryDefinitionCreateOptionalParams, ScopeAccessReviewHistoryDefinitionCreateResponse, - ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams + ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams, } from "../models"; /** Class containing ScopeAccessReviewHistoryDefinition operations. */ export class ScopeAccessReviewHistoryDefinitionImpl - implements ScopeAccessReviewHistoryDefinition { + implements ScopeAccessReviewHistoryDefinition +{ private readonly client: AuthorizationManagementClient; /** @@ -42,11 +43,11 @@ export class ScopeAccessReviewHistoryDefinitionImpl scope: string, historyDefinitionId: string, properties: AccessReviewHistoryDefinitionProperties, - options?: ScopeAccessReviewHistoryDefinitionCreateOptionalParams + options?: ScopeAccessReviewHistoryDefinitionCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, properties, options }, - createOperationSpec + createOperationSpec, ); } @@ -59,11 +60,11 @@ export class ScopeAccessReviewHistoryDefinitionImpl deleteById( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams + options?: ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } } @@ -71,45 +72,43 @@ export class ScopeAccessReviewHistoryDefinitionImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinition + bodyMapper: Mappers.AccessReviewHistoryDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.historyDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.historyDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstance.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstance.ts index 3100006e657a..fa3a71fe83e2 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstance.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstance.ts @@ -13,12 +13,13 @@ import * as Parameters from "../models/parameters"; import { AuthorizationManagementClient } from "../authorizationManagementClient"; import { ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, - ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse, } from "../models"; /** Class containing ScopeAccessReviewHistoryDefinitionInstance operations. */ export class ScopeAccessReviewHistoryDefinitionInstanceImpl - implements ScopeAccessReviewHistoryDefinitionInstance { + implements ScopeAccessReviewHistoryDefinitionInstance +{ private readonly client: AuthorizationManagementClient; /** @@ -41,13 +42,11 @@ export class ScopeAccessReviewHistoryDefinitionInstanceImpl scope: string, historyDefinitionId: string, instanceId: string, - options?: ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams - ): Promise< - ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse - > { + options?: ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, + ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, instanceId, options }, - generateDownloadUriOperationSpec + generateDownloadUriOperationSpec, ); } } @@ -55,24 +54,23 @@ export class ScopeAccessReviewHistoryDefinitionInstanceImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const generateDownloadUriOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances/{instanceId}/generateDownloadUri", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances/{instanceId}/generateDownloadUri", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryInstance + bodyMapper: Mappers.AccessReviewHistoryInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.historyDefinitionId, Parameters.instanceId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstances.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstances.ts index 4c9051542c81..3eb44116f736 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitionInstances.ts @@ -18,13 +18,14 @@ import { ScopeAccessReviewHistoryDefinitionInstancesListNextOptionalParams, ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, ScopeAccessReviewHistoryDefinitionInstancesListResponse, - ScopeAccessReviewHistoryDefinitionInstancesListNextResponse + ScopeAccessReviewHistoryDefinitionInstancesListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewHistoryDefinitionInstances operations. */ export class ScopeAccessReviewHistoryDefinitionInstancesImpl - implements ScopeAccessReviewHistoryDefinitionInstances { + implements ScopeAccessReviewHistoryDefinitionInstances +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl public list( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, historyDefinitionId, options); return { @@ -62,9 +63,9 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl scope, historyDefinitionId, options, - settings + settings, ); - } + }, }; } @@ -72,7 +73,7 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl scope: string, historyDefinitionId: string, options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewHistoryDefinitionInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -88,7 +89,7 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl scope, historyDefinitionId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -100,12 +101,12 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl private async *listPagingAll( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scope, historyDefinitionId, - options + options, )) { yield* page; } @@ -120,11 +121,11 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl private _list( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, options }, - listOperationSpec + listOperationSpec, ); } @@ -139,11 +140,11 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl scope: string, historyDefinitionId: string, nextLink: string, - options?: ScopeAccessReviewHistoryDefinitionInstancesListNextOptionalParams + options?: ScopeAccessReviewHistoryDefinitionInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -151,43 +152,42 @@ export class ScopeAccessReviewHistoryDefinitionInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}/instances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.historyDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.historyDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitions.ts index 9d97b64e13b2..731af96a0597 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewHistoryDefinitions.ts @@ -20,13 +20,14 @@ import { ScopeAccessReviewHistoryDefinitionsListResponse, ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams, ScopeAccessReviewHistoryDefinitionsGetByIdResponse, - ScopeAccessReviewHistoryDefinitionsListNextResponse + ScopeAccessReviewHistoryDefinitionsListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewHistoryDefinitions operations. */ export class ScopeAccessReviewHistoryDefinitionsImpl - implements ScopeAccessReviewHistoryDefinitions { + implements ScopeAccessReviewHistoryDefinitions +{ private readonly client: AuthorizationManagementClient; /** @@ -45,7 +46,7 @@ export class ScopeAccessReviewHistoryDefinitionsImpl */ public list( scope: string, - options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, options); return { @@ -60,14 +61,14 @@ export class ScopeAccessReviewHistoryDefinitionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scope, options, settings); - } + }, }; } private async *listPagingPage( scope: string, options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewHistoryDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +90,7 @@ export class ScopeAccessReviewHistoryDefinitionsImpl private async *listPagingAll( scope: string, - options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(scope, options)) { yield* page; @@ -104,11 +105,11 @@ export class ScopeAccessReviewHistoryDefinitionsImpl */ private _list( scope: string, - options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listOperationSpec + listOperationSpec, ); } @@ -121,11 +122,11 @@ export class ScopeAccessReviewHistoryDefinitionsImpl getById( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, historyDefinitionId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -138,11 +139,11 @@ export class ScopeAccessReviewHistoryDefinitionsImpl private _listNext( scope: string, nextLink: string, - options?: ScopeAccessReviewHistoryDefinitionsListNextOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -150,55 +151,53 @@ export class ScopeAccessReviewHistoryDefinitionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinition + bodyMapper: Mappers.AccessReviewHistoryDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.historyDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult + bodyMapper: Mappers.AccessReviewHistoryDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstance.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstance.ts index 04acb43fa98e..30a17747c88e 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstance.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstance.ts @@ -17,12 +17,13 @@ import { ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams, ScopeAccessReviewInstanceResetDecisionsOptionalParams, ScopeAccessReviewInstanceApplyDecisionsOptionalParams, - ScopeAccessReviewInstanceSendRemindersOptionalParams + ScopeAccessReviewInstanceSendRemindersOptionalParams, } from "../models"; /** Class containing ScopeAccessReviewInstance operations. */ export class ScopeAccessReviewInstanceImpl - implements ScopeAccessReviewInstance { + implements ScopeAccessReviewInstance +{ private readonly client: AuthorizationManagementClient; /** @@ -44,11 +45,11 @@ export class ScopeAccessReviewInstanceImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceStopOptionalParams + options?: ScopeAccessReviewInstanceStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -65,11 +66,11 @@ export class ScopeAccessReviewInstanceImpl scheduleDefinitionId: string, id: string, properties: RecordAllDecisionsProperties, - options?: ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams + options?: ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, properties, options }, - recordAllDecisionsOperationSpec + recordAllDecisionsOperationSpec, ); } @@ -84,11 +85,11 @@ export class ScopeAccessReviewInstanceImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceResetDecisionsOptionalParams + options?: ScopeAccessReviewInstanceResetDecisionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - resetDecisionsOperationSpec + resetDecisionsOperationSpec, ); } @@ -103,11 +104,11 @@ export class ScopeAccessReviewInstanceImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceApplyDecisionsOptionalParams + options?: ScopeAccessReviewInstanceApplyDecisionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - applyDecisionsOperationSpec + applyDecisionsOperationSpec, ); } @@ -122,11 +123,11 @@ export class ScopeAccessReviewInstanceImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceSendRemindersOptionalParams + options?: ScopeAccessReviewInstanceSendRemindersOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - sendRemindersOperationSpec + sendRemindersOperationSpec, ); } } @@ -134,34 +135,32 @@ export class ScopeAccessReviewInstanceImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const stopOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/stop", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const recordAllDecisionsOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/recordAllDecisions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/recordAllDecisions", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties4, queryParameters: [Parameters.apiVersion3], @@ -169,69 +168,66 @@ const recordAllDecisionsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const resetDecisionsOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/resetDecisions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/resetDecisions", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const applyDecisionsOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/applyDecisions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/applyDecisions", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const sendRemindersOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/sendReminders", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/sendReminders", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceContactedReviewers.ts index 883bfe85fed0..47493fddd441 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceContactedReviewers.ts @@ -18,13 +18,14 @@ import { ScopeAccessReviewInstanceContactedReviewersListNextOptionalParams, ScopeAccessReviewInstanceContactedReviewersListOptionalParams, ScopeAccessReviewInstanceContactedReviewersListResponse, - ScopeAccessReviewInstanceContactedReviewersListNextResponse + ScopeAccessReviewInstanceContactedReviewersListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewInstanceContactedReviewers operations. */ export class ScopeAccessReviewInstanceContactedReviewersImpl - implements ScopeAccessReviewInstanceContactedReviewers { + implements ScopeAccessReviewInstanceContactedReviewers +{ private readonly client: AuthorizationManagementClient; /** @@ -46,7 +47,7 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams + options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, scheduleDefinitionId, id, options); return { @@ -65,9 +66,9 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId, id, options, - settings + settings, ); - } + }, }; } @@ -76,7 +77,7 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewInstanceContactedReviewersListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,13 +107,13 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams + options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scope, scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -129,11 +130,11 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams + options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -150,11 +151,11 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: ScopeAccessReviewInstanceContactedReviewersListNextOptionalParams + options?: ScopeAccessReviewInstanceContactedReviewersListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -162,45 +163,44 @@ export class ScopeAccessReviewInstanceContactedReviewersImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceDecisions.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceDecisions.ts index 80ab30f21f9b..dcabe7928c26 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstanceDecisions.ts @@ -18,13 +18,14 @@ import { ScopeAccessReviewInstanceDecisionsListNextOptionalParams, ScopeAccessReviewInstanceDecisionsListOptionalParams, ScopeAccessReviewInstanceDecisionsListResponse, - ScopeAccessReviewInstanceDecisionsListNextResponse + ScopeAccessReviewInstanceDecisionsListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewInstanceDecisions operations. */ export class ScopeAccessReviewInstanceDecisionsImpl - implements ScopeAccessReviewInstanceDecisions { + implements ScopeAccessReviewInstanceDecisions +{ private readonly client: AuthorizationManagementClient; /** @@ -46,7 +47,7 @@ export class ScopeAccessReviewInstanceDecisionsImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceDecisionsListOptionalParams + options?: ScopeAccessReviewInstanceDecisionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, scheduleDefinitionId, id, options); return { @@ -65,9 +66,9 @@ export class ScopeAccessReviewInstanceDecisionsImpl scheduleDefinitionId, id, options, - settings + settings, ); - } + }, }; } @@ -76,7 +77,7 @@ export class ScopeAccessReviewInstanceDecisionsImpl scheduleDefinitionId: string, id: string, options?: ScopeAccessReviewInstanceDecisionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewInstanceDecisionsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class ScopeAccessReviewInstanceDecisionsImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,13 +107,13 @@ export class ScopeAccessReviewInstanceDecisionsImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceDecisionsListOptionalParams + options?: ScopeAccessReviewInstanceDecisionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scope, scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -129,11 +130,11 @@ export class ScopeAccessReviewInstanceDecisionsImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceDecisionsListOptionalParams + options?: ScopeAccessReviewInstanceDecisionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -150,11 +151,11 @@ export class ScopeAccessReviewInstanceDecisionsImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: ScopeAccessReviewInstanceDecisionsListNextOptionalParams + options?: ScopeAccessReviewInstanceDecisionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -162,45 +163,44 @@ export class ScopeAccessReviewInstanceDecisionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/decisions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewDecisionListResult + bodyMapper: Mappers.AccessReviewDecisionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstances.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstances.ts index 4c7eceaa883e..240686bc53ab 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstances.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewInstances.ts @@ -23,13 +23,14 @@ import { AccessReviewInstanceProperties, ScopeAccessReviewInstancesCreateOptionalParams, ScopeAccessReviewInstancesCreateResponse, - ScopeAccessReviewInstancesListNextResponse + ScopeAccessReviewInstancesListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewInstances operations. */ export class ScopeAccessReviewInstancesImpl - implements ScopeAccessReviewInstances { + implements ScopeAccessReviewInstances +{ private readonly client: AuthorizationManagementClient; /** @@ -49,7 +50,7 @@ export class ScopeAccessReviewInstancesImpl public list( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewInstancesListOptionalParams + options?: ScopeAccessReviewInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, scheduleDefinitionId, options); return { @@ -67,9 +68,9 @@ export class ScopeAccessReviewInstancesImpl scope, scheduleDefinitionId, options, - settings + settings, ); - } + }, }; } @@ -77,7 +78,7 @@ export class ScopeAccessReviewInstancesImpl scope: string, scheduleDefinitionId: string, options?: ScopeAccessReviewInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class ScopeAccessReviewInstancesImpl scope, scheduleDefinitionId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -105,12 +106,12 @@ export class ScopeAccessReviewInstancesImpl private async *listPagingAll( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewInstancesListOptionalParams + options?: ScopeAccessReviewInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scope, scheduleDefinitionId, - options + options, )) { yield* page; } @@ -125,11 +126,11 @@ export class ScopeAccessReviewInstancesImpl private _list( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewInstancesListOptionalParams + options?: ScopeAccessReviewInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, options }, - listOperationSpec + listOperationSpec, ); } @@ -144,11 +145,11 @@ export class ScopeAccessReviewInstancesImpl scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstancesGetByIdOptionalParams + options?: ScopeAccessReviewInstancesGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -165,11 +166,11 @@ export class ScopeAccessReviewInstancesImpl scheduleDefinitionId: string, id: string, properties: AccessReviewInstanceProperties, - options?: ScopeAccessReviewInstancesCreateOptionalParams + options?: ScopeAccessReviewInstancesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, id, properties, options }, - createOperationSpec + createOperationSpec, ); } @@ -184,11 +185,11 @@ export class ScopeAccessReviewInstancesImpl scope: string, scheduleDefinitionId: string, nextLink: string, - options?: ScopeAccessReviewInstancesListNextOptionalParams + options?: ScopeAccessReviewInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -196,59 +197,56 @@ export class ScopeAccessReviewInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstance + bodyMapper: Mappers.AccessReviewInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstance + bodyMapper: Mappers.AccessReviewInstance, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties2, queryParameters: [Parameters.apiVersion3], @@ -256,29 +254,29 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.scheduleDefinitionId, Parameters.id, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewInstanceListResult + bodyMapper: Mappers.AccessReviewInstanceListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewScheduleDefinitions.ts b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewScheduleDefinitions.ts index 293c310948d1..c1116e25e00b 100644 --- a/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewScheduleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operations/scopeAccessReviewScheduleDefinitions.ts @@ -25,13 +25,14 @@ import { ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse, ScopeAccessReviewScheduleDefinitionsStopOptionalParams, - ScopeAccessReviewScheduleDefinitionsListNextResponse + ScopeAccessReviewScheduleDefinitionsListNextResponse, } from "../models"; /// /** Class containing ScopeAccessReviewScheduleDefinitions operations. */ export class ScopeAccessReviewScheduleDefinitionsImpl - implements ScopeAccessReviewScheduleDefinitions { + implements ScopeAccessReviewScheduleDefinitions +{ private readonly client: AuthorizationManagementClient; /** @@ -49,7 +50,7 @@ export class ScopeAccessReviewScheduleDefinitionsImpl */ public list( scope: string, - options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scope, options); return { @@ -64,14 +65,14 @@ export class ScopeAccessReviewScheduleDefinitionsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scope, options, settings); - } + }, }; } private async *listPagingPage( scope: string, options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ScopeAccessReviewScheduleDefinitionsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class ScopeAccessReviewScheduleDefinitionsImpl private async *listPagingAll( scope: string, - options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(scope, options)) { yield* page; @@ -107,11 +108,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl */ private _list( scope: string, - options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, options }, - listOperationSpec + listOperationSpec, ); } @@ -124,11 +125,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl getById( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, options }, - getByIdOperationSpec + getByIdOperationSpec, ); } @@ -141,11 +142,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl deleteById( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, options }, - deleteByIdOperationSpec + deleteByIdOperationSpec, ); } @@ -160,11 +161,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl scope: string, scheduleDefinitionId: string, properties: AccessReviewScheduleDefinitionProperties, - options?: ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, properties, options }, - createOrUpdateByIdOperationSpec + createOrUpdateByIdOperationSpec, ); } @@ -177,11 +178,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl stop( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsStopOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsStopOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, scheduleDefinitionId, options }, - stopOperationSpec + stopOperationSpec, ); } @@ -194,11 +195,11 @@ export class ScopeAccessReviewScheduleDefinitionsImpl private _listNext( scope: string, nextLink: string, - options?: ScopeAccessReviewScheduleDefinitionsListNextOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { scope, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -206,117 +207,112 @@ export class ScopeAccessReviewScheduleDefinitionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.filter1, Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], - serializer + serializer, }; const getByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinition + bodyMapper: Mappers.AccessReviewScheduleDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateByIdOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinition + bodyMapper: Mappers.AccessReviewScheduleDefinition, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, requestBody: Parameters.properties1, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const stopOperationSpec: coreClient.OperationSpec = { - path: - "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/stop", + path: "/{scope}/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/stop", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.scope1 + Parameters.scope1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult + bodyMapper: Mappers.AccessReviewScheduleDefinitionListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operations/tenantLevelAccessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operations/tenantLevelAccessReviewInstanceContactedReviewers.ts index 41a40c84b955..0407dbdee4a2 100644 --- a/sdk/authorization/arm-authorization/src/operations/tenantLevelAccessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operations/tenantLevelAccessReviewInstanceContactedReviewers.ts @@ -18,13 +18,14 @@ import { TenantLevelAccessReviewInstanceContactedReviewersListNextOptionalParams, TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, TenantLevelAccessReviewInstanceContactedReviewersListResponse, - TenantLevelAccessReviewInstanceContactedReviewersListNextResponse + TenantLevelAccessReviewInstanceContactedReviewersListNextResponse, } from "../models"; /// /** Class containing TenantLevelAccessReviewInstanceContactedReviewers operations. */ export class TenantLevelAccessReviewInstanceContactedReviewersImpl - implements TenantLevelAccessReviewInstanceContactedReviewers { + implements TenantLevelAccessReviewInstanceContactedReviewers +{ private readonly client: AuthorizationManagementClient; /** @@ -44,7 +45,7 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl public list( scheduleDefinitionId: string, id: string, - options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(scheduleDefinitionId, id, options); return { @@ -59,7 +60,7 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(scheduleDefinitionId, id, options, settings); - } + }, }; } @@ -67,7 +68,7 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: TenantLevelAccessReviewInstanceContactedReviewersListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +84,7 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId, id, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -95,12 +96,12 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl private async *listPagingAll( scheduleDefinitionId: string, id: string, - options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( scheduleDefinitionId, id, - options + options, )) { yield* page; } @@ -115,11 +116,11 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl private _list( scheduleDefinitionId: string, id: string, - options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, options }, - listOperationSpec + listOperationSpec, ); } @@ -134,13 +135,11 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl scheduleDefinitionId: string, id: string, nextLink: string, - options?: TenantLevelAccessReviewInstanceContactedReviewersListNextOptionalParams - ): Promise< - TenantLevelAccessReviewInstanceContactedReviewersListNextResponse - > { + options?: TenantLevelAccessReviewInstanceContactedReviewersListNextOptionalParams, + ): Promise { return this.client.sendOperationRequest( { scheduleDefinitionId, id, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -148,43 +147,42 @@ export class TenantLevelAccessReviewInstanceContactedReviewersImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", + path: "/providers/Microsoft.Authorization/accessReviewScheduleDefinitions/{scheduleDefinitionId}/instances/{id}/contactedReviewers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AccessReviewContactedReviewerListResult + bodyMapper: Mappers.AccessReviewContactedReviewerListResult, }, default: { - bodyMapper: Mappers.ErrorDefinition - } + bodyMapper: Mappers.ErrorDefinition, + }, }, urlParameters: [ Parameters.$host, Parameters.nextLink, Parameters.scheduleDefinitionId, - Parameters.id + Parameters.id, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewDefaultSettingsOperations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewDefaultSettingsOperations.ts index 71fc31da58f5..0b88a3c6cb8a 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewDefaultSettingsOperations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewDefaultSettingsOperations.ts @@ -11,7 +11,7 @@ import { AccessReviewDefaultSettingsGetResponse, AccessReviewScheduleSettings, AccessReviewDefaultSettingsPutOptionalParams, - AccessReviewDefaultSettingsPutResponse + AccessReviewDefaultSettingsPutResponse, } from "../models"; /** Interface representing a AccessReviewDefaultSettingsOperations. */ @@ -21,7 +21,7 @@ export interface AccessReviewDefaultSettingsOperations { * @param options The options parameters. */ get( - options?: AccessReviewDefaultSettingsGetOptionalParams + options?: AccessReviewDefaultSettingsGetOptionalParams, ): Promise; /** * Get access review default settings for the subscription @@ -30,6 +30,6 @@ export interface AccessReviewDefaultSettingsOperations { */ put( properties: AccessReviewScheduleSettings, - options?: AccessReviewDefaultSettingsPutOptionalParams + options?: AccessReviewDefaultSettingsPutOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstance.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstance.ts index 4d77716ecc2f..47e8b0395cef 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstance.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstance.ts @@ -8,7 +8,7 @@ import { AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, - AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse, } from "../models"; /** Interface representing a AccessReviewHistoryDefinitionInstance. */ @@ -23,6 +23,6 @@ export interface AccessReviewHistoryDefinitionInstance { generateDownloadUri( historyDefinitionId: string, instanceId: string, - options?: AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams + options?: AccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstances.ts index 1549ff379e98..d05f29657d23 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionInstances.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewHistoryInstance, - AccessReviewHistoryDefinitionInstancesListOptionalParams + AccessReviewHistoryDefinitionInstancesListOptionalParams, } from "../models"; /// @@ -22,6 +22,6 @@ export interface AccessReviewHistoryDefinitionInstances { */ list( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionInstancesListOptionalParams + options?: AccessReviewHistoryDefinitionInstancesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionOperations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionOperations.ts index dfda80c1b829..1033c3885516 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionOperations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitionOperations.ts @@ -10,7 +10,7 @@ import { AccessReviewHistoryDefinitionProperties, AccessReviewHistoryDefinitionCreateOptionalParams, AccessReviewHistoryDefinitionCreateResponse, - AccessReviewHistoryDefinitionDeleteByIdOptionalParams + AccessReviewHistoryDefinitionDeleteByIdOptionalParams, } from "../models"; /** Interface representing a AccessReviewHistoryDefinitionOperations. */ @@ -24,7 +24,7 @@ export interface AccessReviewHistoryDefinitionOperations { create( historyDefinitionId: string, properties: AccessReviewHistoryDefinitionProperties, - options?: AccessReviewHistoryDefinitionCreateOptionalParams + options?: AccessReviewHistoryDefinitionCreateOptionalParams, ): Promise; /** * Delete an access review history definition @@ -33,6 +33,6 @@ export interface AccessReviewHistoryDefinitionOperations { */ deleteById( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionDeleteByIdOptionalParams + options?: AccessReviewHistoryDefinitionDeleteByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitions.ts index 4c1896b8172d..82848923b580 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewHistoryDefinitions.ts @@ -11,7 +11,7 @@ import { AccessReviewHistoryDefinition, AccessReviewHistoryDefinitionsListOptionalParams, AccessReviewHistoryDefinitionsGetByIdOptionalParams, - AccessReviewHistoryDefinitionsGetByIdResponse + AccessReviewHistoryDefinitionsGetByIdResponse, } from "../models"; /// @@ -23,7 +23,7 @@ export interface AccessReviewHistoryDefinitions { * @param options The options parameters. */ list( - options?: AccessReviewHistoryDefinitionsListOptionalParams + options?: AccessReviewHistoryDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get access review history definition by definition Id @@ -32,6 +32,6 @@ export interface AccessReviewHistoryDefinitions { */ getById( historyDefinitionId: string, - options?: AccessReviewHistoryDefinitionsGetByIdOptionalParams + options?: AccessReviewHistoryDefinitionsGetByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceContactedReviewers.ts index 5d9cd938cae5..0cdae438b449 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceContactedReviewers.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewContactedReviewer, - AccessReviewInstanceContactedReviewersListOptionalParams + AccessReviewInstanceContactedReviewersListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface AccessReviewInstanceContactedReviewers { list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceContactedReviewersListOptionalParams + options?: AccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceDecisions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceDecisions.ts index df1e4cdfc6e6..e878c959b162 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceDecisions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewDecision, - AccessReviewInstanceDecisionsListOptionalParams + AccessReviewInstanceDecisionsListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface AccessReviewInstanceDecisions { list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceDecisionsListOptionalParams + options?: AccessReviewInstanceDecisionsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceMyDecisions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceMyDecisions.ts index 7f2013cc6608..2bedbdec12c0 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceMyDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceMyDecisions.ts @@ -14,7 +14,7 @@ import { AccessReviewInstanceMyDecisionsGetByIdResponse, AccessReviewDecisionProperties, AccessReviewInstanceMyDecisionsPatchOptionalParams, - AccessReviewInstanceMyDecisionsPatchResponse + AccessReviewInstanceMyDecisionsPatchResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface AccessReviewInstanceMyDecisions { list( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceMyDecisionsListOptionalParams + options?: AccessReviewInstanceMyDecisionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get my single access review instance decision. @@ -42,7 +42,7 @@ export interface AccessReviewInstanceMyDecisions { scheduleDefinitionId: string, id: string, decisionId: string, - options?: AccessReviewInstanceMyDecisionsGetByIdOptionalParams + options?: AccessReviewInstanceMyDecisionsGetByIdOptionalParams, ): Promise; /** * Record a decision. @@ -57,6 +57,6 @@ export interface AccessReviewInstanceMyDecisions { id: string, decisionId: string, properties: AccessReviewDecisionProperties, - options?: AccessReviewInstanceMyDecisionsPatchOptionalParams + options?: AccessReviewInstanceMyDecisionsPatchOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceOperations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceOperations.ts index 0faef402bebd..6b2a7387d365 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceOperations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstanceOperations.ts @@ -11,7 +11,7 @@ import { AccessReviewInstanceResetDecisionsOptionalParams, AccessReviewInstanceApplyDecisionsOptionalParams, AccessReviewInstanceSendRemindersOptionalParams, - AccessReviewInstanceAcceptRecommendationsOptionalParams + AccessReviewInstanceAcceptRecommendationsOptionalParams, } from "../models"; /** Interface representing a AccessReviewInstanceOperations. */ @@ -25,7 +25,7 @@ export interface AccessReviewInstanceOperations { stop( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceStopOptionalParams + options?: AccessReviewInstanceStopOptionalParams, ): Promise; /** * An action to reset all decisions for an access review instance. @@ -36,7 +36,7 @@ export interface AccessReviewInstanceOperations { resetDecisions( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceResetDecisionsOptionalParams + options?: AccessReviewInstanceResetDecisionsOptionalParams, ): Promise; /** * An action to apply all decisions for an access review instance. @@ -47,7 +47,7 @@ export interface AccessReviewInstanceOperations { applyDecisions( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceApplyDecisionsOptionalParams + options?: AccessReviewInstanceApplyDecisionsOptionalParams, ): Promise; /** * An action to send reminders for an access review instance. @@ -58,7 +58,7 @@ export interface AccessReviewInstanceOperations { sendReminders( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceSendRemindersOptionalParams + options?: AccessReviewInstanceSendRemindersOptionalParams, ): Promise; /** * An action to accept recommendations for decision in an access review instance. @@ -69,6 +69,6 @@ export interface AccessReviewInstanceOperations { acceptRecommendations( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstanceAcceptRecommendationsOptionalParams + options?: AccessReviewInstanceAcceptRecommendationsOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstances.ts index 540b9fa5218c..42dbc9491748 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstances.ts @@ -14,7 +14,7 @@ import { AccessReviewInstancesGetByIdResponse, AccessReviewInstanceProperties, AccessReviewInstancesCreateOptionalParams, - AccessReviewInstancesCreateResponse + AccessReviewInstancesCreateResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface AccessReviewInstances { */ list( scheduleDefinitionId: string, - options?: AccessReviewInstancesListOptionalParams + options?: AccessReviewInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get access review instances @@ -38,7 +38,7 @@ export interface AccessReviewInstances { getById( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstancesGetByIdOptionalParams + options?: AccessReviewInstancesGetByIdOptionalParams, ): Promise; /** * Update access review instance. @@ -51,6 +51,6 @@ export interface AccessReviewInstances { scheduleDefinitionId: string, id: string, properties: AccessReviewInstanceProperties, - options?: AccessReviewInstancesCreateOptionalParams + options?: AccessReviewInstancesCreateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstancesAssignedForMyApproval.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstancesAssignedForMyApproval.ts index 86e51cc51c0e..3bc2587b1f33 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstancesAssignedForMyApproval.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewInstancesAssignedForMyApproval.ts @@ -11,7 +11,7 @@ import { AccessReviewInstance, AccessReviewInstancesAssignedForMyApprovalListOptionalParams, AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams, - AccessReviewInstancesAssignedForMyApprovalGetByIdResponse + AccessReviewInstancesAssignedForMyApprovalGetByIdResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface AccessReviewInstancesAssignedForMyApproval { */ list( scheduleDefinitionId: string, - options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalListOptionalParams, ): PagedAsyncIterableIterator; /** * Get single access review instance assigned for my approval. @@ -35,6 +35,6 @@ export interface AccessReviewInstancesAssignedForMyApproval { getById( scheduleDefinitionId: string, id: string, - options?: AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams + options?: AccessReviewInstancesAssignedForMyApprovalGetByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitions.ts index 972f1705680c..5d722dbad6ca 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitions.ts @@ -16,7 +16,7 @@ import { AccessReviewScheduleDefinitionProperties, AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse, - AccessReviewScheduleDefinitionsStopOptionalParams + AccessReviewScheduleDefinitionsStopOptionalParams, } from "../models"; /// @@ -27,7 +27,7 @@ export interface AccessReviewScheduleDefinitions { * @param options The options parameters. */ list( - options?: AccessReviewScheduleDefinitionsListOptionalParams + options?: AccessReviewScheduleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get single access review definition @@ -36,7 +36,7 @@ export interface AccessReviewScheduleDefinitions { */ getById( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsGetByIdOptionalParams + options?: AccessReviewScheduleDefinitionsGetByIdOptionalParams, ): Promise; /** * Delete access review schedule definition @@ -45,7 +45,7 @@ export interface AccessReviewScheduleDefinitions { */ deleteById( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsDeleteByIdOptionalParams + options?: AccessReviewScheduleDefinitionsDeleteByIdOptionalParams, ): Promise; /** * Create or Update access review schedule definition. @@ -56,7 +56,7 @@ export interface AccessReviewScheduleDefinitions { createOrUpdateById( scheduleDefinitionId: string, properties: AccessReviewScheduleDefinitionProperties, - options?: AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + options?: AccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ): Promise; /** * Stop access review definition @@ -65,6 +65,6 @@ export interface AccessReviewScheduleDefinitions { */ stop( scheduleDefinitionId: string, - options?: AccessReviewScheduleDefinitionsStopOptionalParams + options?: AccessReviewScheduleDefinitionsStopOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitionsAssignedForMyApproval.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitionsAssignedForMyApproval.ts index 6f00935f1250..bf36997ed849 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitionsAssignedForMyApproval.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/accessReviewScheduleDefinitionsAssignedForMyApproval.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewScheduleDefinition, - AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface AccessReviewScheduleDefinitionsAssignedForMyApproval { * @param options The options parameters. */ list( - options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams + options?: AccessReviewScheduleDefinitionsAssignedForMyApprovalListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertConfigurations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertConfigurations.ts index 8b041634b838..02be6331e50d 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertConfigurations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertConfigurations.ts @@ -12,7 +12,7 @@ import { AlertConfigurationsListForScopeOptionalParams, AlertConfigurationsGetOptionalParams, AlertConfigurationsGetResponse, - AlertConfigurationsUpdateOptionalParams + AlertConfigurationsUpdateOptionalParams, } from "../models"; /// @@ -25,7 +25,7 @@ export interface AlertConfigurations { */ listForScope( scope: string, - options?: AlertConfigurationsListForScopeOptionalParams + options?: AlertConfigurationsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified alert configuration. @@ -42,7 +42,7 @@ export interface AlertConfigurations { get( scope: string, alertId: string, - options?: AlertConfigurationsGetOptionalParams + options?: AlertConfigurationsGetOptionalParams, ): Promise; /** * Update an alert configuration. @@ -55,6 +55,6 @@ export interface AlertConfigurations { scope: string, alertId: string, parameters: AlertConfiguration, - options?: AlertConfigurationsUpdateOptionalParams + options?: AlertConfigurationsUpdateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertDefinitions.ts index 371884eabfad..a4fa413ef3f9 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertDefinitions.ts @@ -11,7 +11,7 @@ import { AlertDefinition, AlertDefinitionsListForScopeOptionalParams, AlertDefinitionsGetOptionalParams, - AlertDefinitionsGetResponse + AlertDefinitionsGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface AlertDefinitions { */ listForScope( scope: string, - options?: AlertDefinitionsListForScopeOptionalParams + options?: AlertDefinitionsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified alert definition. @@ -41,6 +41,6 @@ export interface AlertDefinitions { get( scope: string, alertDefinitionId: string, - options?: AlertDefinitionsGetOptionalParams + options?: AlertDefinitionsGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertIncidents.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertIncidents.ts index 67b1eaf4c053..d0f33ad8ce04 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertIncidents.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertIncidents.ts @@ -12,7 +12,7 @@ import { AlertIncidentsListForScopeOptionalParams, AlertIncidentsGetOptionalParams, AlertIncidentsGetResponse, - AlertIncidentsRemediateOptionalParams + AlertIncidentsRemediateOptionalParams, } from "../models"; /// @@ -27,7 +27,7 @@ export interface AlertIncidents { listForScope( scope: string, alertId: string, - options?: AlertIncidentsListForScopeOptionalParams + options?: AlertIncidentsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified alert incident. @@ -46,7 +46,7 @@ export interface AlertIncidents { scope: string, alertId: string, alertIncidentId: string, - options?: AlertIncidentsGetOptionalParams + options?: AlertIncidentsGetOptionalParams, ): Promise; /** * Remediate an alert incident. @@ -59,6 +59,6 @@ export interface AlertIncidents { scope: string, alertId: string, alertIncidentId: string, - options?: AlertIncidentsRemediateOptionalParams + options?: AlertIncidentsRemediateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertOperation.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertOperation.ts index ce47e8790833..769cadefdd5c 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/alertOperation.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/alertOperation.ts @@ -8,7 +8,7 @@ import { AlertOperationGetOptionalParams, - AlertOperationGetResponse + AlertOperationGetResponse, } from "../models"; /** Interface representing a AlertOperation. */ @@ -22,6 +22,6 @@ export interface AlertOperation { get( scope: string, operationId: string, - options?: AlertOperationGetOptionalParams + options?: AlertOperationGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/alerts.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/alerts.ts index 62e7c64e9b54..2d589e6329a5 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/alerts.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/alerts.ts @@ -17,7 +17,7 @@ import { AlertsRefreshOptionalParams, AlertsRefreshResponse, AlertsRefreshAllOptionalParams, - AlertsRefreshAllResponse + AlertsRefreshAllResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Alerts { */ listForScope( scope: string, - options?: AlertsListForScopeOptionalParams + options?: AlertsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified alert. @@ -46,7 +46,7 @@ export interface Alerts { get( scope: string, alertId: string, - options?: AlertsGetOptionalParams + options?: AlertsGetOptionalParams, ): Promise; /** * Update an alert. @@ -59,7 +59,7 @@ export interface Alerts { scope: string, alertId: string, parameters: Alert, - options?: AlertsUpdateOptionalParams + options?: AlertsUpdateOptionalParams, ): Promise; /** * Refresh an alert. @@ -70,7 +70,7 @@ export interface Alerts { beginRefresh( scope: string, alertId: string, - options?: AlertsRefreshOptionalParams + options?: AlertsRefreshOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface Alerts { beginRefreshAndWait( scope: string, alertId: string, - options?: AlertsRefreshOptionalParams + options?: AlertsRefreshOptionalParams, ): Promise; /** * Refresh all alerts for a resource scope. @@ -95,7 +95,7 @@ export interface Alerts { */ beginRefreshAll( scope: string, - options?: AlertsRefreshAllOptionalParams + options?: AlertsRefreshAllOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -109,6 +109,6 @@ export interface Alerts { */ beginRefreshAllAndWait( scope: string, - options?: AlertsRefreshAllOptionalParams + options?: AlertsRefreshAllOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/classicAdministrators.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/classicAdministrators.ts index b97124c34af9..8d805a8d6966 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/classicAdministrators.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/classicAdministrators.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { ClassicAdministrator, - ClassicAdministratorsListOptionalParams + ClassicAdministratorsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface ClassicAdministrators { * @param options The options parameters. */ list( - options?: ClassicAdministratorsListOptionalParams + options?: ClassicAdministratorsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/denyAssignments.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/denyAssignments.ts index d57be6806141..ed0b90ea5f88 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/denyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/denyAssignments.ts @@ -16,7 +16,7 @@ import { DenyAssignmentsGetOptionalParams, DenyAssignmentsGetResponse, DenyAssignmentsGetByIdOptionalParams, - DenyAssignmentsGetByIdResponse + DenyAssignmentsGetByIdResponse, } from "../models"; /// @@ -37,7 +37,7 @@ export interface DenyAssignments { parentResourcePath: string, resourceType: string, resourceName: string, - options?: DenyAssignmentsListForResourceOptionalParams + options?: DenyAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator; /** * Gets deny assignments for a resource group. @@ -46,14 +46,14 @@ export interface DenyAssignments { */ listForResourceGroup( resourceGroupName: string, - options?: DenyAssignmentsListForResourceGroupOptionalParams + options?: DenyAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all deny assignments for the subscription. * @param options The options parameters. */ list( - options?: DenyAssignmentsListOptionalParams + options?: DenyAssignmentsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets deny assignments for a scope. @@ -62,7 +62,7 @@ export interface DenyAssignments { */ listForScope( scope: string, - options?: DenyAssignmentsListForScopeOptionalParams + options?: DenyAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified deny assignment. @@ -73,7 +73,7 @@ export interface DenyAssignments { get( scope: string, denyAssignmentId: string, - options?: DenyAssignmentsGetOptionalParams + options?: DenyAssignmentsGetOptionalParams, ): Promise; /** * Gets a deny assignment by ID. @@ -86,6 +86,6 @@ export interface DenyAssignments { */ getById( denyAssignmentId: string, - options?: DenyAssignmentsGetByIdOptionalParams + options?: DenyAssignmentsGetByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/eligibleChildResources.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/eligibleChildResources.ts index e4d88d125602..86a8d092576a 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/eligibleChildResources.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/eligibleChildResources.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { EligibleChildResource, - EligibleChildResourcesGetOptionalParams + EligibleChildResourcesGetOptionalParams, } from "../models"; /// @@ -22,6 +22,6 @@ export interface EligibleChildResources { */ list( scope: string, - options?: EligibleChildResourcesGetOptionalParams + options?: EligibleChildResourcesGetOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/globalAdministrator.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/globalAdministrator.ts index e0ecc90c5fae..c9014bbf1120 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/globalAdministrator.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/globalAdministrator.ts @@ -15,6 +15,6 @@ export interface GlobalAdministrator { * @param options The options parameters. */ elevateAccess( - options?: GlobalAdministratorElevateAccessOptionalParams + options?: GlobalAdministratorElevateAccessOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/operations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/operations.ts index 92a4da30855a..953466590140 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/operations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/permissions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/permissions.ts index c29022ffc1f1..054e901b0737 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/permissions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/permissions.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Permission, PermissionsListForResourceGroupOptionalParams, - PermissionsListForResourceOptionalParams + PermissionsListForResourceOptionalParams, } from "../models"; /// @@ -23,7 +23,7 @@ export interface Permissions { */ listForResourceGroup( resourceGroupName: string, - options?: PermissionsListForResourceGroupOptionalParams + options?: PermissionsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets all permissions the caller has for a resource. @@ -40,6 +40,6 @@ export interface Permissions { parentResourcePath: string, resourceType: string, resourceName: string, - options?: PermissionsListForResourceOptionalParams + options?: PermissionsListForResourceOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/providerOperationsMetadataOperations.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/providerOperationsMetadataOperations.ts index a7e5a95f3d63..4ef313a74dba 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/providerOperationsMetadataOperations.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/providerOperationsMetadataOperations.ts @@ -11,7 +11,7 @@ import { ProviderOperationsMetadata, ProviderOperationsMetadataListOptionalParams, ProviderOperationsMetadataGetOptionalParams, - ProviderOperationsMetadataGetResponse + ProviderOperationsMetadataGetResponse, } from "../models"; /// @@ -22,7 +22,7 @@ export interface ProviderOperationsMetadataOperations { * @param options The options parameters. */ list( - options?: ProviderOperationsMetadataListOptionalParams + options?: ProviderOperationsMetadataListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets provider operations metadata for the specified resource provider. @@ -31,6 +31,6 @@ export interface ProviderOperationsMetadataOperations { */ get( resourceProviderNamespace: string, - options?: ProviderOperationsMetadataGetOptionalParams + options?: ProviderOperationsMetadataGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleInstances.ts index 6e839fde6303..bc5193d2260e 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleInstances.ts @@ -11,7 +11,7 @@ import { RoleAssignmentScheduleInstance, RoleAssignmentScheduleInstancesListForScopeOptionalParams, RoleAssignmentScheduleInstancesGetOptionalParams, - RoleAssignmentScheduleInstancesGetResponse + RoleAssignmentScheduleInstancesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface RoleAssignmentScheduleInstances { */ listForScope( scope: string, - options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams + options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified role assignment schedule instance. @@ -36,6 +36,6 @@ export interface RoleAssignmentScheduleInstances { get( scope: string, roleAssignmentScheduleInstanceName: string, - options?: RoleAssignmentScheduleInstancesGetOptionalParams + options?: RoleAssignmentScheduleInstancesGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleRequests.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleRequests.ts index c0fc1fb605db..e8284903cd39 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleRequests.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentScheduleRequests.ts @@ -16,7 +16,7 @@ import { RoleAssignmentScheduleRequestsGetResponse, RoleAssignmentScheduleRequestsCancelOptionalParams, RoleAssignmentScheduleRequestsValidateOptionalParams, - RoleAssignmentScheduleRequestsValidateResponse + RoleAssignmentScheduleRequestsValidateResponse, } from "../models"; /// @@ -29,16 +29,14 @@ export interface RoleAssignmentScheduleRequests { */ listForScope( scope: string, - options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams + options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a role assignment schedule request. * @param scope The scope of the role assignment schedule request to create. The scope can be any REST - * resource instance. For example, use - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' - * for a resource group, and - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' + * resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * @param roleAssignmentScheduleRequestName A GUID for the role assignment to create. The name must be * unique and different for each role assignment. @@ -49,7 +47,7 @@ export interface RoleAssignmentScheduleRequests { scope: string, roleAssignmentScheduleRequestName: string, parameters: RoleAssignmentScheduleRequest, - options?: RoleAssignmentScheduleRequestsCreateOptionalParams + options?: RoleAssignmentScheduleRequestsCreateOptionalParams, ): Promise; /** * Get the specified role assignment schedule request. @@ -61,7 +59,7 @@ export interface RoleAssignmentScheduleRequests { get( scope: string, roleAssignmentScheduleRequestName: string, - options?: RoleAssignmentScheduleRequestsGetOptionalParams + options?: RoleAssignmentScheduleRequestsGetOptionalParams, ): Promise; /** * Cancels a pending role assignment schedule request. @@ -72,7 +70,7 @@ export interface RoleAssignmentScheduleRequests { cancel( scope: string, roleAssignmentScheduleRequestName: string, - options?: RoleAssignmentScheduleRequestsCancelOptionalParams + options?: RoleAssignmentScheduleRequestsCancelOptionalParams, ): Promise; /** * Validates a new role assignment schedule request. @@ -85,6 +83,6 @@ export interface RoleAssignmentScheduleRequests { scope: string, roleAssignmentScheduleRequestName: string, parameters: RoleAssignmentScheduleRequest, - options?: RoleAssignmentScheduleRequestsValidateOptionalParams + options?: RoleAssignmentScheduleRequestsValidateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentSchedules.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentSchedules.ts index 860f62c3bfda..9a19d528e829 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentSchedules.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignmentSchedules.ts @@ -11,7 +11,7 @@ import { RoleAssignmentSchedule, RoleAssignmentSchedulesListForScopeOptionalParams, RoleAssignmentSchedulesGetOptionalParams, - RoleAssignmentSchedulesGetResponse + RoleAssignmentSchedulesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface RoleAssignmentSchedules { */ listForScope( scope: string, - options?: RoleAssignmentSchedulesListForScopeOptionalParams + options?: RoleAssignmentSchedulesListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified role assignment schedule for a resource scope @@ -35,6 +35,6 @@ export interface RoleAssignmentSchedules { get( scope: string, roleAssignmentScheduleName: string, - options?: RoleAssignmentSchedulesGetOptionalParams + options?: RoleAssignmentSchedulesGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignments.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignments.ts index 8b853bdceaa3..b4c5671894bb 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleAssignments.ts @@ -25,7 +25,7 @@ import { RoleAssignmentsCreateByIdOptionalParams, RoleAssignmentsCreateByIdResponse, RoleAssignmentsDeleteByIdOptionalParams, - RoleAssignmentsDeleteByIdResponse + RoleAssignmentsDeleteByIdResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface RoleAssignments { * @param options The options parameters. */ listForSubscription( - options?: RoleAssignmentsListForSubscriptionOptionalParams + options?: RoleAssignmentsListForSubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List all role assignments that apply to a resource group. @@ -45,7 +45,7 @@ export interface RoleAssignments { */ listForResourceGroup( resourceGroupName: string, - options?: RoleAssignmentsListForResourceGroupOptionalParams + options?: RoleAssignmentsListForResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * List all role assignments that apply to a resource. @@ -61,7 +61,7 @@ export interface RoleAssignments { resourceProviderNamespace: string, resourceType: string, resourceName: string, - options?: RoleAssignmentsListForResourceOptionalParams + options?: RoleAssignmentsListForResourceOptionalParams, ): PagedAsyncIterableIterator; /** * List all role assignments that apply to a scope. @@ -73,7 +73,7 @@ export interface RoleAssignments { */ listForScope( scope: string, - options?: RoleAssignmentsListForScopeOptionalParams + options?: RoleAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get a role assignment by scope and name. @@ -87,7 +87,7 @@ export interface RoleAssignments { get( scope: string, roleAssignmentName: string, - options?: RoleAssignmentsGetOptionalParams + options?: RoleAssignmentsGetOptionalParams, ): Promise; /** * Create or update a role assignment by scope and name. @@ -103,7 +103,7 @@ export interface RoleAssignments { scope: string, roleAssignmentName: string, parameters: RoleAssignmentCreateParameters, - options?: RoleAssignmentsCreateOptionalParams + options?: RoleAssignmentsCreateOptionalParams, ): Promise; /** * Delete a role assignment by scope and name. @@ -117,7 +117,7 @@ export interface RoleAssignments { delete( scope: string, roleAssignmentName: string, - options?: RoleAssignmentsDeleteOptionalParams + options?: RoleAssignmentsDeleteOptionalParams, ): Promise; /** * Get a role assignment by ID. @@ -129,7 +129,7 @@ export interface RoleAssignments { */ getById( roleAssignmentId: string, - options?: RoleAssignmentsGetByIdOptionalParams + options?: RoleAssignmentsGetByIdOptionalParams, ): Promise; /** * Create or update a role assignment by ID. @@ -143,7 +143,7 @@ export interface RoleAssignments { createById( roleAssignmentId: string, parameters: RoleAssignmentCreateParameters, - options?: RoleAssignmentsCreateByIdOptionalParams + options?: RoleAssignmentsCreateByIdOptionalParams, ): Promise; /** * Delete a role assignment by ID. @@ -155,6 +155,6 @@ export interface RoleAssignments { */ deleteById( roleAssignmentId: string, - options?: RoleAssignmentsDeleteByIdOptionalParams + options?: RoleAssignmentsDeleteByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleDefinitions.ts index 4889cf0acc47..a47eafff8dd7 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleDefinitions.ts @@ -17,7 +17,7 @@ import { RoleDefinitionsCreateOrUpdateOptionalParams, RoleDefinitionsCreateOrUpdateResponse, RoleDefinitionsGetByIdOptionalParams, - RoleDefinitionsGetByIdResponse + RoleDefinitionsGetByIdResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface RoleDefinitions { */ list( scope: string, - options?: RoleDefinitionsListOptionalParams + options?: RoleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes a role definition. @@ -47,7 +47,7 @@ export interface RoleDefinitions { delete( scope: string, roleDefinitionId: string, - options?: RoleDefinitionsDeleteOptionalParams + options?: RoleDefinitionsDeleteOptionalParams, ): Promise; /** * Get role definition by ID (GUID). @@ -61,7 +61,7 @@ export interface RoleDefinitions { get( scope: string, roleDefinitionId: string, - options?: RoleDefinitionsGetOptionalParams + options?: RoleDefinitionsGetOptionalParams, ): Promise; /** * Creates or updates a role definition. @@ -77,7 +77,7 @@ export interface RoleDefinitions { scope: string, roleDefinitionId: string, roleDefinition: RoleDefinition, - options?: RoleDefinitionsCreateOrUpdateOptionalParams + options?: RoleDefinitionsCreateOrUpdateOptionalParams, ): Promise; /** * Gets a role definition by ID. @@ -90,6 +90,6 @@ export interface RoleDefinitions { */ getById( roleId: string, - options?: RoleDefinitionsGetByIdOptionalParams + options?: RoleDefinitionsGetByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleInstances.ts index a749afd71b39..0a5706d341da 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleInstances.ts @@ -11,7 +11,7 @@ import { RoleEligibilityScheduleInstance, RoleEligibilityScheduleInstancesListForScopeOptionalParams, RoleEligibilityScheduleInstancesGetOptionalParams, - RoleEligibilityScheduleInstancesGetResponse + RoleEligibilityScheduleInstancesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface RoleEligibilityScheduleInstances { */ listForScope( scope: string, - options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams + options?: RoleEligibilityScheduleInstancesListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the specified role eligibility schedule instance. @@ -36,6 +36,6 @@ export interface RoleEligibilityScheduleInstances { get( scope: string, roleEligibilityScheduleInstanceName: string, - options?: RoleEligibilityScheduleInstancesGetOptionalParams + options?: RoleEligibilityScheduleInstancesGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleRequests.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleRequests.ts index 8726437d063c..360227afddd2 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleRequests.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilityScheduleRequests.ts @@ -16,7 +16,7 @@ import { RoleEligibilityScheduleRequestsGetResponse, RoleEligibilityScheduleRequestsCancelOptionalParams, RoleEligibilityScheduleRequestsValidateOptionalParams, - RoleEligibilityScheduleRequestsValidateResponse + RoleEligibilityScheduleRequestsValidateResponse, } from "../models"; /// @@ -29,16 +29,14 @@ export interface RoleEligibilityScheduleRequests { */ listForScope( scope: string, - options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams + options?: RoleEligibilityScheduleRequestsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a role eligibility schedule request. * @param scope The scope of the role eligibility schedule request to create. The scope can be any REST - * resource instance. For example, use - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' - * for a resource group, and - * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' + * resource instance. For example, use '/subscriptions/{subscription-id}/' for a subscription, + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and + * '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' * for a resource. * @param roleEligibilityScheduleRequestName The name of the role eligibility to create. It can be any * valid GUID. @@ -49,7 +47,7 @@ export interface RoleEligibilityScheduleRequests { scope: string, roleEligibilityScheduleRequestName: string, parameters: RoleEligibilityScheduleRequest, - options?: RoleEligibilityScheduleRequestsCreateOptionalParams + options?: RoleEligibilityScheduleRequestsCreateOptionalParams, ): Promise; /** * Get the specified role eligibility schedule request. @@ -61,7 +59,7 @@ export interface RoleEligibilityScheduleRequests { get( scope: string, roleEligibilityScheduleRequestName: string, - options?: RoleEligibilityScheduleRequestsGetOptionalParams + options?: RoleEligibilityScheduleRequestsGetOptionalParams, ): Promise; /** * Cancels a pending role eligibility schedule request. @@ -72,7 +70,7 @@ export interface RoleEligibilityScheduleRequests { cancel( scope: string, roleEligibilityScheduleRequestName: string, - options?: RoleEligibilityScheduleRequestsCancelOptionalParams + options?: RoleEligibilityScheduleRequestsCancelOptionalParams, ): Promise; /** * Validates a new role eligibility schedule request. @@ -85,6 +83,6 @@ export interface RoleEligibilityScheduleRequests { scope: string, roleEligibilityScheduleRequestName: string, parameters: RoleEligibilityScheduleRequest, - options?: RoleEligibilityScheduleRequestsValidateOptionalParams + options?: RoleEligibilityScheduleRequestsValidateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilitySchedules.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilitySchedules.ts index 7a8e00368b23..337069c9c999 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilitySchedules.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleEligibilitySchedules.ts @@ -11,7 +11,7 @@ import { RoleEligibilitySchedule, RoleEligibilitySchedulesListForScopeOptionalParams, RoleEligibilitySchedulesGetOptionalParams, - RoleEligibilitySchedulesGetResponse + RoleEligibilitySchedulesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface RoleEligibilitySchedules { */ listForScope( scope: string, - options?: RoleEligibilitySchedulesListForScopeOptionalParams + options?: RoleEligibilitySchedulesListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified role eligibility schedule for a resource scope @@ -35,6 +35,6 @@ export interface RoleEligibilitySchedules { get( scope: string, roleEligibilityScheduleName: string, - options?: RoleEligibilitySchedulesGetOptionalParams + options?: RoleEligibilitySchedulesGetOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicies.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicies.ts index 1f9ef62fd721..be60aa4a3117 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicies.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicies.ts @@ -14,7 +14,7 @@ import { RoleManagementPoliciesGetResponse, RoleManagementPoliciesUpdateOptionalParams, RoleManagementPoliciesUpdateResponse, - RoleManagementPoliciesDeleteOptionalParams + RoleManagementPoliciesDeleteOptionalParams, } from "../models"; /// @@ -27,7 +27,7 @@ export interface RoleManagementPolicies { */ listForScope( scope: string, - options?: RoleManagementPoliciesListForScopeOptionalParams + options?: RoleManagementPoliciesListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified role management policy for a resource scope @@ -38,7 +38,7 @@ export interface RoleManagementPolicies { get( scope: string, roleManagementPolicyName: string, - options?: RoleManagementPoliciesGetOptionalParams + options?: RoleManagementPoliciesGetOptionalParams, ): Promise; /** * Update a role management policy @@ -51,7 +51,7 @@ export interface RoleManagementPolicies { scope: string, roleManagementPolicyName: string, parameters: RoleManagementPolicy, - options?: RoleManagementPoliciesUpdateOptionalParams + options?: RoleManagementPoliciesUpdateOptionalParams, ): Promise; /** * Delete a role management policy @@ -62,6 +62,6 @@ export interface RoleManagementPolicies { delete( scope: string, roleManagementPolicyName: string, - options?: RoleManagementPoliciesDeleteOptionalParams + options?: RoleManagementPoliciesDeleteOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicyAssignments.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicyAssignments.ts index 04743a2ae06d..b17852f00d0f 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicyAssignments.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/roleManagementPolicyAssignments.ts @@ -14,7 +14,7 @@ import { RoleManagementPolicyAssignmentsGetResponse, RoleManagementPolicyAssignmentsCreateOptionalParams, RoleManagementPolicyAssignmentsCreateResponse, - RoleManagementPolicyAssignmentsDeleteOptionalParams + RoleManagementPolicyAssignmentsDeleteOptionalParams, } from "../models"; /// @@ -27,7 +27,7 @@ export interface RoleManagementPolicyAssignments { */ listForScope( scope: string, - options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams + options?: RoleManagementPolicyAssignmentsListForScopeOptionalParams, ): PagedAsyncIterableIterator; /** * Get the specified role management policy assignment for a resource scope @@ -39,7 +39,7 @@ export interface RoleManagementPolicyAssignments { get( scope: string, roleManagementPolicyAssignmentName: string, - options?: RoleManagementPolicyAssignmentsGetOptionalParams + options?: RoleManagementPolicyAssignmentsGetOptionalParams, ): Promise; /** * Create a role management policy assignment @@ -53,7 +53,7 @@ export interface RoleManagementPolicyAssignments { scope: string, roleManagementPolicyAssignmentName: string, parameters: RoleManagementPolicyAssignment, - options?: RoleManagementPolicyAssignmentsCreateOptionalParams + options?: RoleManagementPolicyAssignmentsCreateOptionalParams, ): Promise; /** * Delete a role management policy assignment @@ -65,6 +65,6 @@ export interface RoleManagementPolicyAssignments { delete( scope: string, roleManagementPolicyAssignmentName: string, - options?: RoleManagementPolicyAssignmentsDeleteOptionalParams + options?: RoleManagementPolicyAssignmentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewDefaultSettings.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewDefaultSettings.ts index a0b9039d045d..934ea23776cf 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewDefaultSettings.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewDefaultSettings.ts @@ -11,7 +11,7 @@ import { ScopeAccessReviewDefaultSettingsGetResponse, AccessReviewScheduleSettings, ScopeAccessReviewDefaultSettingsPutOptionalParams, - ScopeAccessReviewDefaultSettingsPutResponse + ScopeAccessReviewDefaultSettingsPutResponse, } from "../models"; /** Interface representing a ScopeAccessReviewDefaultSettings. */ @@ -23,7 +23,7 @@ export interface ScopeAccessReviewDefaultSettings { */ get( scope: string, - options?: ScopeAccessReviewDefaultSettingsGetOptionalParams + options?: ScopeAccessReviewDefaultSettingsGetOptionalParams, ): Promise; /** * Get access review default settings for the subscription @@ -34,6 +34,6 @@ export interface ScopeAccessReviewDefaultSettings { put( scope: string, properties: AccessReviewScheduleSettings, - options?: ScopeAccessReviewDefaultSettingsPutOptionalParams + options?: ScopeAccessReviewDefaultSettingsPutOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinition.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinition.ts index 7f5b3c4f1218..17a67f536db1 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinition.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinition.ts @@ -10,7 +10,7 @@ import { AccessReviewHistoryDefinitionProperties, ScopeAccessReviewHistoryDefinitionCreateOptionalParams, ScopeAccessReviewHistoryDefinitionCreateResponse, - ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams + ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams, } from "../models"; /** Interface representing a ScopeAccessReviewHistoryDefinition. */ @@ -26,7 +26,7 @@ export interface ScopeAccessReviewHistoryDefinition { scope: string, historyDefinitionId: string, properties: AccessReviewHistoryDefinitionProperties, - options?: ScopeAccessReviewHistoryDefinitionCreateOptionalParams + options?: ScopeAccessReviewHistoryDefinitionCreateOptionalParams, ): Promise; /** * Delete an access review history definition @@ -37,6 +37,6 @@ export interface ScopeAccessReviewHistoryDefinition { deleteById( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams + options?: ScopeAccessReviewHistoryDefinitionDeleteByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstance.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstance.ts index 952f891d24a5..bbbe410f7493 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstance.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstance.ts @@ -8,7 +8,7 @@ import { ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, - ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse + ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse, } from "../models"; /** Interface representing a ScopeAccessReviewHistoryDefinitionInstance. */ @@ -25,8 +25,6 @@ export interface ScopeAccessReviewHistoryDefinitionInstance { scope: string, historyDefinitionId: string, instanceId: string, - options?: ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams - ): Promise< - ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse - >; + options?: ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriOptionalParams, + ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstances.ts index 1263672ae858..78eac3807204 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitionInstances.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewHistoryInstance, - ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface ScopeAccessReviewHistoryDefinitionInstances { list( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionInstancesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitions.ts index d14f3ce0293d..ae65d55c3419 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewHistoryDefinitions.ts @@ -11,7 +11,7 @@ import { AccessReviewHistoryDefinition, ScopeAccessReviewHistoryDefinitionsListOptionalParams, ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams, - ScopeAccessReviewHistoryDefinitionsGetByIdResponse + ScopeAccessReviewHistoryDefinitionsGetByIdResponse, } from "../models"; /// @@ -25,7 +25,7 @@ export interface ScopeAccessReviewHistoryDefinitions { */ list( scope: string, - options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get access review history definition by definition Id @@ -36,6 +36,6 @@ export interface ScopeAccessReviewHistoryDefinitions { getById( scope: string, historyDefinitionId: string, - options?: ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams + options?: ScopeAccessReviewHistoryDefinitionsGetByIdOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstance.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstance.ts index 195539b5ebf9..ab85bdea27e6 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstance.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstance.ts @@ -12,7 +12,7 @@ import { ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams, ScopeAccessReviewInstanceResetDecisionsOptionalParams, ScopeAccessReviewInstanceApplyDecisionsOptionalParams, - ScopeAccessReviewInstanceSendRemindersOptionalParams + ScopeAccessReviewInstanceSendRemindersOptionalParams, } from "../models"; /** Interface representing a ScopeAccessReviewInstance. */ @@ -28,7 +28,7 @@ export interface ScopeAccessReviewInstance { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceStopOptionalParams + options?: ScopeAccessReviewInstanceStopOptionalParams, ): Promise; /** * An action to approve/deny all decisions for a review with certain filters. @@ -43,7 +43,7 @@ export interface ScopeAccessReviewInstance { scheduleDefinitionId: string, id: string, properties: RecordAllDecisionsProperties, - options?: ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams + options?: ScopeAccessReviewInstanceRecordAllDecisionsOptionalParams, ): Promise; /** * An action to reset all decisions for an access review instance. @@ -56,7 +56,7 @@ export interface ScopeAccessReviewInstance { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceResetDecisionsOptionalParams + options?: ScopeAccessReviewInstanceResetDecisionsOptionalParams, ): Promise; /** * An action to apply all decisions for an access review instance. @@ -69,7 +69,7 @@ export interface ScopeAccessReviewInstance { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceApplyDecisionsOptionalParams + options?: ScopeAccessReviewInstanceApplyDecisionsOptionalParams, ): Promise; /** * An action to send reminders for an access review instance. @@ -82,6 +82,6 @@ export interface ScopeAccessReviewInstance { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceSendRemindersOptionalParams + options?: ScopeAccessReviewInstanceSendRemindersOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceContactedReviewers.ts index 1e0830d268da..9fd73c479006 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceContactedReviewers.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewContactedReviewer, - ScopeAccessReviewInstanceContactedReviewersListOptionalParams + ScopeAccessReviewInstanceContactedReviewersListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ScopeAccessReviewInstanceContactedReviewers { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams + options?: ScopeAccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceDecisions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceDecisions.ts index 0f754eb6126e..cf0a3ca2a111 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceDecisions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstanceDecisions.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewDecision, - ScopeAccessReviewInstanceDecisionsListOptionalParams + ScopeAccessReviewInstanceDecisionsListOptionalParams, } from "../models"; /// @@ -26,6 +26,6 @@ export interface ScopeAccessReviewInstanceDecisions { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstanceDecisionsListOptionalParams + options?: ScopeAccessReviewInstanceDecisionsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstances.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstances.ts index 81c7a21a7600..1a373cd6530e 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstances.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewInstances.ts @@ -14,7 +14,7 @@ import { ScopeAccessReviewInstancesGetByIdResponse, AccessReviewInstanceProperties, ScopeAccessReviewInstancesCreateOptionalParams, - ScopeAccessReviewInstancesCreateResponse + ScopeAccessReviewInstancesCreateResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ScopeAccessReviewInstances { list( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewInstancesListOptionalParams + options?: ScopeAccessReviewInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get access review instances @@ -42,7 +42,7 @@ export interface ScopeAccessReviewInstances { scope: string, scheduleDefinitionId: string, id: string, - options?: ScopeAccessReviewInstancesGetByIdOptionalParams + options?: ScopeAccessReviewInstancesGetByIdOptionalParams, ): Promise; /** * Update access review instance. @@ -57,6 +57,6 @@ export interface ScopeAccessReviewInstances { scheduleDefinitionId: string, id: string, properties: AccessReviewInstanceProperties, - options?: ScopeAccessReviewInstancesCreateOptionalParams + options?: ScopeAccessReviewInstancesCreateOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewScheduleDefinitions.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewScheduleDefinitions.ts index a0459141a928..a2f88fea18d5 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewScheduleDefinitions.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/scopeAccessReviewScheduleDefinitions.ts @@ -16,7 +16,7 @@ import { AccessReviewScheduleDefinitionProperties, ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse, - ScopeAccessReviewScheduleDefinitionsStopOptionalParams + ScopeAccessReviewScheduleDefinitionsStopOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ScopeAccessReviewScheduleDefinitions { */ list( scope: string, - options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get single access review definition @@ -40,7 +40,7 @@ export interface ScopeAccessReviewScheduleDefinitions { getById( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsGetByIdOptionalParams, ): Promise; /** * Delete access review schedule definition @@ -51,7 +51,7 @@ export interface ScopeAccessReviewScheduleDefinitions { deleteById( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsDeleteByIdOptionalParams, ): Promise; /** * Create or Update access review schedule definition. @@ -64,7 +64,7 @@ export interface ScopeAccessReviewScheduleDefinitions { scope: string, scheduleDefinitionId: string, properties: AccessReviewScheduleDefinitionProperties, - options?: ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdOptionalParams, ): Promise; /** * Stop access review definition @@ -75,6 +75,6 @@ export interface ScopeAccessReviewScheduleDefinitions { stop( scope: string, scheduleDefinitionId: string, - options?: ScopeAccessReviewScheduleDefinitionsStopOptionalParams + options?: ScopeAccessReviewScheduleDefinitionsStopOptionalParams, ): Promise; } diff --git a/sdk/authorization/arm-authorization/src/operationsInterfaces/tenantLevelAccessReviewInstanceContactedReviewers.ts b/sdk/authorization/arm-authorization/src/operationsInterfaces/tenantLevelAccessReviewInstanceContactedReviewers.ts index e7b93a374851..75314ec2865d 100644 --- a/sdk/authorization/arm-authorization/src/operationsInterfaces/tenantLevelAccessReviewInstanceContactedReviewers.ts +++ b/sdk/authorization/arm-authorization/src/operationsInterfaces/tenantLevelAccessReviewInstanceContactedReviewers.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { AccessReviewContactedReviewer, - TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, } from "../models"; /// @@ -24,6 +24,6 @@ export interface TenantLevelAccessReviewInstanceContactedReviewers { list( scheduleDefinitionId: string, id: string, - options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams + options?: TenantLevelAccessReviewInstanceContactedReviewersListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/authorization/arm-authorization/src/pagingHelper.ts b/sdk/authorization/arm-authorization/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/authorization/arm-authorization/src/pagingHelper.ts +++ b/sdk/authorization/arm-authorization/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/authorization/arm-authorization/test/sampleTest.ts b/sdk/authorization/arm-authorization/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/authorization/arm-authorization/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/authorization/arm-authorization/tsconfig.json b/sdk/authorization/arm-authorization/tsconfig.json index bd142baf706d..3e6ae96443f3 100644 --- a/sdk/authorization/arm-authorization/tsconfig.json +++ b/sdk/authorization/arm-authorization/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-authorization": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"