Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

317 changes: 309 additions & 8 deletions sdk/authorization/arm-authorization/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/authorization/arm-authorization/LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 4 additions & 4 deletions sdk/authorization/arm-authorization/_meta.json
Original file line number Diff line number Diff line change
@@ -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"
}
75 changes: 33 additions & 42 deletions sdk/authorization/arm-authorization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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",
Expand All @@ -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": {
Expand All @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,9 @@ export interface ErrorResponse {
error?: ErrorDetail;
}

// @public
export type ExcludedPrincipalTypes = string;

// @public (undocumented)
export interface ExpandedProperties {
principal?: ExpandedPropertiesPrincipal;
Expand Down Expand Up @@ -1664,6 +1667,12 @@ export enum KnownEnablementRules {
Ticketing = "Ticketing"
}

// @public
export enum KnownExcludedPrincipalTypes {
ServicePrincipalsAsRequestor = "ServicePrincipalsAsRequestor",
ServicePrincipalsAsTarget = "ServicePrincipalsAsTarget"
}

// @public
export enum KnownMemberType {
Direct = "Direct",
Expand All @@ -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",
Expand Down Expand Up @@ -1724,7 +1740,8 @@ export enum KnownRoleManagementPolicyRuleType {
RoleManagementPolicyAuthenticationContextRule = "RoleManagementPolicyAuthenticationContextRule",
RoleManagementPolicyEnablementRule = "RoleManagementPolicyEnablementRule",
RoleManagementPolicyExpirationRule = "RoleManagementPolicyExpirationRule",
RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule"
RoleManagementPolicyNotificationRule = "RoleManagementPolicyNotificationRule",
RoleManagementPolicyPimOnlyModeRule = "RoleManagementPolicyPimOnlyModeRule"
}

// @public
Expand Down Expand Up @@ -1770,6 +1787,7 @@ export enum KnownType {
// @public
export enum KnownUserType {
Group = "Group",
ServicePrincipal = "ServicePrincipal",
User = "User"
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -1902,7 +1930,7 @@ export interface PolicyAssignmentPropertiesScope {
type?: string;
}

// @public (undocumented)
// @public
export interface PolicyProperties {
readonly scope?: PolicyPropertiesScope;
}
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand All @@ -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 {
Expand Down Expand Up @@ -3210,6 +3245,13 @@ export interface UserSet {
userType?: UserType;
}

// @public
export interface UsersOrServicePrincipalSet {
displayName?: string;
id?: string;
type?: UserType;
}

// @public
export type UserType = string;

Expand Down
Loading