Skip to content

Commit

Permalink
feat: add 2025-01-01 API version with updated capability type properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RenzoPrettoMS committed Jan 21, 2025
1 parent a16602c commit 909f845
Show file tree
Hide file tree
Showing 7 changed files with 2,706 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using TypeSpec.Http;
using Azure.ResourceManager;
using Azure.ResourceManager.Foundations;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;

namespace Microsoft.Chaos;

Expand Down Expand Up @@ -86,10 +87,17 @@ model CapabilityTypeProperties {
@visibility("read")
azureRbacDataActions?: string[];

/**
* Data plane actions necessary to execute capability type.
*/
@visibility("read")
requiredAzureRoleDefinitionIds?: string[];

/**
* Runtime properties of this Capability Type.
*/
@visibility("read")
@added(Microsoft.Chaos.Versions.v2025_01_01)
runtimeProperties?: CapabilityTypePropertiesRuntimeProperties;
}

Expand Down
3 changes: 3 additions & 0 deletions specification/chaos/Chaos.Management/experiment.models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ using TypeSpec.Http;
using Azure.ResourceManager;
using Azure.ResourceManager.Foundations;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;

namespace Microsoft.Chaos;
/**
Expand Down Expand Up @@ -114,6 +115,7 @@ model ExperimentProperties {
/**
* Optional customer-managed Storage account where Experiment schema will be stored.
*/
@removed(Microsoft.Chaos.Versions.v2025_01_01)
customerDataStorage?: CustomerDataStorageProperties;
}

Expand Down Expand Up @@ -204,6 +206,7 @@ model ChaosTargetFilter {
/**
* Model that represents the Customer Managed Storage for an Experiment.
*/
@removed(Microsoft.Chaos.Versions.v2025_01_01)
model CustomerDataStorageProperties {
/**
* ARM Resource ID of the Storage account to use for Customer Data storage.
Expand Down
7 changes: 7 additions & 0 deletions specification/chaos/Chaos.Management/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,11 @@ enum Versions {
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
v2024_11_01_preview: "2024-11-01-preview",

/**
* The 2025-01-01 API version.
*/
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@useDependency(Azure.Core.Versions.v1_0_Preview_1)
v2025_01_01: "2025-01-01",
}
2 changes: 2 additions & 0 deletions specification/chaos/Chaos.Management/privateAccess.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;

namespace Microsoft.Chaos;

@armResourceOperations
@removed(Microsoft.Chaos.Versions.v2025_01_01)
interface PrivateAccesses {
/**
* Get a private access resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;

namespace Microsoft.Chaos;

@removed(Microsoft.Chaos.Versions.v2025_01_01)
@armResourceOperations
interface PrivateEndpointConnections {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2487,20 +2487,12 @@
},
"readOnly": true
},
"runtimeProperties": {
"$ref": "#/definitions/CapabilityTypePropertiesRuntimeProperties",
"description": "Runtime properties of this Capability Type.",
"readOnly": true
}
}
},
"CapabilityTypePropertiesRuntimeProperties": {
"type": "object",
"description": "Runtime properties of this Capability Type.",
"properties": {
"kind": {
"type": "string",
"description": "String of the kind of the resource's action type (continuous or discrete).",
"requiredAzureRoleDefinitionIds": {
"type": "array",
"description": "Data plane actions necessary to execute capability type.",
"items": {
"type": "string"
},
"readOnly": true
}
}
Expand Down
Loading

0 comments on commit 909f845

Please sign in to comment.