Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add networksecurityperimeter and managedidentitywithdelegation common types #1505

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: feature
packages:
- "@azure-tools/typespec-azure-resource-manager"
---

Added common-types managed identity with delegation and network security perimeter
277 changes: 277 additions & 0 deletions docs/libraries/azure-resource-manager/reference/data-types.md

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/libraries/azure-resource-manager/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,15 @@ npm install --save-peer @azure-tools/typespec-azure-resource-manager

### Models

- [`AccessRule`](./data-types.md#Azure.ResourceManager.CommonTypes.AccessRule)
- [`AccessRuleProperties`](./data-types.md#Azure.ResourceManager.CommonTypes.AccessRuleProperties)
- [`ApiVersionParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.ApiVersionParameter)
- [`AzureEntityResource`](./data-types.md#Azure.ResourceManager.CommonTypes.AzureEntityResource)
- [`CheckNameAvailabilityRequest`](./data-types.md#Azure.ResourceManager.CommonTypes.CheckNameAvailabilityRequest)
- [`CheckNameAvailabilityResponse`](./data-types.md#Azure.ResourceManager.CommonTypes.CheckNameAvailabilityResponse)
- [`CustomerManagedKeyEncryption`](./data-types.md#Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption)
- [`DelegatedResource`](./data-types.md#Azure.ResourceManager.CommonTypes.DelegatedResource)
- [`DelegatedResources`](./data-types.md#Azure.ResourceManager.CommonTypes.DelegatedResources)
- [`Encryption`](./data-types.md#Azure.ResourceManager.CommonTypes.Encryption)
- [`EncryptionProperties`](./data-types.md#Azure.ResourceManager.CommonTypes.EncryptionProperties)
- [`ErrorAdditionalInfo`](./data-types.md#Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo)
Expand All @@ -185,8 +189,15 @@ npm install --save-peer @azure-tools/typespec-azure-resource-manager
- [`LocationResourceParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.LocationResourceParameter)
- [`ManagedOnBehalfOfConfiguration`](./data-types.md#Azure.ResourceManager.CommonTypes.ManagedOnBehalfOfConfiguration)
- [`ManagedServiceIdentity`](./data-types.md#Azure.ResourceManager.CommonTypes.ManagedServiceIdentity)
- [`ManagedServiceIdentityWithDelegation`](./data-types.md#Azure.ResourceManager.CommonTypes.ManagedServiceIdentityWithDelegation)
- [`ManagementGroupNameParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.ManagementGroupNameParameter)
- [`MoboBrokerResource`](./data-types.md#Azure.ResourceManager.CommonTypes.MoboBrokerResource)
- [`NetworkSecurityPerimeter`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeter)
- [`NetworkSecurityPerimeterConfiguration`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfiguration)
- [`NetworkSecurityPerimeterConfigurationListResult`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationListResult)
- [`NetworkSecurityPerimeterConfigurationNameParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationNameParameter)
- [`NetworkSecurityPerimeterConfigurationProperties`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityPerimeterConfigurationProperties)
- [`NetworkSecurityProfile`](./data-types.md#Azure.ResourceManager.CommonTypes.NetworkSecurityProfile)
- [`Operation`](./data-types.md#Azure.ResourceManager.CommonTypes.Operation)
- [`OperationDisplay`](./data-types.md#Azure.ResourceManager.CommonTypes.OperationDisplay)
- [`OperationIdParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.OperationIdParameter)
Expand All @@ -203,8 +214,11 @@ npm install --save-peer @azure-tools/typespec-azure-resource-manager
- [`PrivateLinkResourceParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.PrivateLinkResourceParameter)
- [`PrivateLinkResourceProperties`](./data-types.md#Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties)
- [`PrivateLinkServiceConnectionState`](./data-types.md#Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState)
- [`ProvisioningIssue`](./data-types.md#Azure.ResourceManager.CommonTypes.ProvisioningIssue)
- [`ProvisioningIssueProperties`](./data-types.md#Azure.ResourceManager.CommonTypes.ProvisioningIssueProperties)
- [`ProxyResource`](./data-types.md#Azure.ResourceManager.CommonTypes.ProxyResource)
- [`Resource`](./data-types.md#Azure.ResourceManager.CommonTypes.Resource)
- [`ResourceAssociation`](./data-types.md#Azure.ResourceManager.CommonTypes.ResourceAssociation)
- [`ResourceGroupNameParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.ResourceGroupNameParameter)
- [`ResourceModelWithAllowedPropertySet`](./data-types.md#Azure.ResourceManager.CommonTypes.ResourceModelWithAllowedPropertySet)
- [`ScopeParameter`](./data-types.md#Azure.ResourceManager.CommonTypes.ScopeParameter)
Expand Down
4 changes: 3 additions & 1 deletion packages/samples/common-types/gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ const outDir = resolve(dir, "openapi");
await rm(outDir, { recursive: true, force: true });
await emitCommonTypesSwagger("customer-managed-keys");
await emitCommonTypesSwagger("managed-identity");
await emitCommonTypesSwagger("managed-identity-with-delegation");
await emitCommonTypesSwagger("mobo");
await emitCommonTypesSwagger("network-security-perimeter");
await emitCommonTypesSwagger("private-links");
await emitCommonTypesSwagger("types");
await emitCommonTypesSwagger("mobo");

function log(...args: any[]) {
// eslint-disable-next-line no-console
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"swagger": "2.0",
"info": {
"title": "Common types",
"version": "v4"
},
"paths": {},
"definitions": {
"DelegatedResource": {
"type": "object",
"description": "Delegated resource properties - internal use only.",
"properties": {
"resourceId": {
"type": "string",
"description": "The ARM resource id of the delegated resource - internal use only."
},
"tenantId": {
"type": "string",
"format": "uuid",
"description": "The tenant id of the delegated resource - internal use only."
},
"referralResource": {
"type": "string",
"description": "The delegation id of the referral delegation (optional) - internal use only."
},
"location": {
"type": "string",
"description": "The source resource location - internal use only."
}
}
},
"DelegatedResources": {
"type": "object",
"description": "The set of delegated resources. The delegated resources dictionary keys will be source resource internal ids - internal use only.",
"additionalProperties": {
"$ref": "#/definitions/DelegatedResource"
}
},
"ManagedServiceIdentityWithDelegation": {
"type": "object",
"description": "Managed service identity (system assigned and/or user assigned identities and/or delegated identities) - internal use only.",
"properties": {
"delegatedResources": {
"$ref": "#/definitions/DelegatedResources"
}
},
"allOf": [
{
"$ref": "./managedidentity.json#/definitions/ManagedServiceIdentity"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"swagger": "2.0",
"info": {
"title": "Common types",
"version": "v5"
},
"paths": {},
"definitions": {
"DelegatedResource": {
"type": "object",
"description": "Delegated resource properties - internal use only.",
"properties": {
"resourceId": {
"type": "string",
"description": "The ARM resource id of the delegated resource - internal use only."
},
"tenantId": {
"type": "string",
"format": "uuid",
"description": "The tenant id of the delegated resource - internal use only."
},
"referralResource": {
"type": "string",
"description": "The delegation id of the referral delegation (optional) - internal use only."
},
"location": {
"type": "string",
"description": "The source resource location - internal use only."
}
}
},
"DelegatedResources": {
"type": "object",
"description": "The set of delegated resources. The delegated resources dictionary keys will be source resource internal ids - internal use only.",
"additionalProperties": {
"$ref": "#/definitions/DelegatedResource"
}
},
"ManagedServiceIdentityWithDelegation": {
"type": "object",
"description": "Managed service identity (system assigned and/or user assigned identities and/or delegated identities) - internal use only.",
"properties": {
"delegatedResources": {
"$ref": "#/definitions/DelegatedResources"
}
},
"allOf": [
{
"$ref": "./managedidentity.json#/definitions/ManagedServiceIdentity"
}
]
}
}
}
Loading
Loading