Skip to content

Commit

Permalink
CodeGen from PR 32093 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 2f5a6ec5fa7ca924c6507de900985ddf4465185d into 9be3ccf5b1729cb1e5f41438fe6d7a6308aab50a
  • Loading branch information
SDKAuto committed Jan 11, 2025
1 parent bdd684c commit b13f955
Show file tree
Hide file tree
Showing 156 changed files with 7,155 additions and 11,382 deletions.
110 changes: 43 additions & 67 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

165 changes: 158 additions & 7 deletions sdk/chaos/arm-chaos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,166 @@
# Release History

## 1.1.1 (Unreleased)


## 2.0.0-beta.1 (2025-01-11)
Compared with version 1.1.0

### Features Added

### Breaking Changes
- Added operation group ExperimentExecutionsOperations
- Added operation group PrivateAccessesOperations
- Added operation group PrivateEndpointConnectionsOperations
- Added operation ExperimentsOperations.cancel
- Added operation ExperimentsOperations.createOrUpdate
- Added operation ExperimentsOperations.delete
- Added operation ExperimentsOperations.start
- Added operation ExperimentsOperations.update
- Added operation OperationsOperations.list
- Added Interface CapabilityProperties
- Added Interface CapabilityTypeProperties
- Added Interface CustomerDataStorageProperties
- Added Interface ExperimentExecutionsGetExecutionDetailsOptionalParams
- Added Interface ExperimentExecutionsGetExecutionOptionalParams
- Added Interface ExperimentExecutionsListAllExecutionsOptionalParams
- Added Interface ExperimentProperties
- Added Interface ManagedServiceIdentity
- Added Interface OperationsListOptionalParams
- Added Interface OperationStatusResult
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface PrivateAccess
- Added Interface PrivateAccessesCreateOrUpdateOptionalParams
- Added Interface PrivateAccessesDeleteOptionalParams
- Added Interface PrivateAccessesGetOptionalParams
- Added Interface PrivateAccessesListAllOptionalParams
- Added Interface PrivateAccessesListOptionalParams
- Added Interface PrivateAccessesPrivateLinkResourcesOptionalParams
- Added Interface PrivateAccessesUpdateOptionalParams
- Added Interface PrivateAccessPatch
- Added Interface PrivateAccessProperties
- Added Interface PrivateEndpoint
- Added Interface PrivateEndpointConnection
- Added Interface PrivateEndpointConnectionProperties
- Added Interface PrivateEndpointConnectionsDeleteAPrivateEndpointConnectionOptionalParams
- Added Interface PrivateEndpointConnectionsGetAPrivateEndpointConnectionOptionalParams
- Added Interface PrivateEndpointConnectionsListPrivateEndpointConnectionsOptionalParams
- Added Interface PrivateLinkResource
- Added Interface PrivateLinkResourceProperties
- Added Interface PrivateLinkServiceConnectionState
- Added Interface ProxyResource
- Added Interface RestorePollerOptions
- Added Interface TargetProperties
- Added Interface TargetTypeProperties
- Added Type Alias ContinuablePage
- Added Type Alias ExperimentActionType
- Added Type Alias ManagedServiceIdentityType
- Added Type Alias PrivateEndpointServiceConnectionStatus
- Added Type Alias PublicNetworkAccessOption
- Interface Capability has a new optional parameter properties
- Interface CapabilityType has a new optional parameter properties
- Interface ExperimentExecution has a new optional parameter properties
- Interface ExperimentExecutionDetails has a new optional parameter properties
- Interface ExperimentExecutionDetailsProperties has a new optional parameter startedAt
- Interface ExperimentExecutionDetailsProperties has a new optional parameter status
- Interface ExperimentExecutionDetailsProperties has a new optional parameter stoppedAt
- Interface Resource has a new optional parameter systemData
- Added Enum KnownExperimentActionType
- Added Enum KnownManagedServiceIdentityType
- Added Enum KnownPrivateEndpointServiceConnectionStatus
- Added Enum KnownPublicNetworkAccessOption
- Added Enum KnownVersions
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Added function restorePoller

### Bugs Fixed

### Other Changes
### Breaking Changes

- Removed operation Experiments.beginCancel
- Removed operation Experiments.beginCancelAndWait
- Removed operation Experiments.beginCreateOrUpdate
- Removed operation Experiments.beginCreateOrUpdateAndWait
- Removed operation Experiments.beginDelete
- Removed operation Experiments.beginDeleteAndWait
- Removed operation Experiments.beginStart
- Removed operation Experiments.beginStartAndWait
- Removed operation Experiments.beginUpdate
- Removed operation Experiments.beginUpdateAndWait
- Removed operation Experiments.executionDetails
- Removed operation Experiments.getExecution
- Removed operation Experiments.listAllExecutions
- Removed operation Operations.listAll
- Class ChaosManagementClient has a new signature
- Interface Capability no longer has parameter description
- Interface Capability no longer has parameter parametersSchema
- Interface Capability no longer has parameter publisher
- Interface Capability no longer has parameter systemData
- Interface Capability no longer has parameter targetType
- Interface Capability no longer has parameter urn
- Interface CapabilityType no longer has parameter azureRbacActions
- Interface CapabilityType no longer has parameter azureRbacDataActions
- Interface CapabilityType no longer has parameter description
- Interface CapabilityType no longer has parameter displayName
- Interface CapabilityType no longer has parameter kind
- Interface CapabilityType no longer has parameter parametersSchema
- Interface CapabilityType no longer has parameter publisher
- Interface CapabilityType no longer has parameter runtimeProperties
- Interface CapabilityType no longer has parameter systemData
- Interface CapabilityType no longer has parameter targetType
- Interface CapabilityType no longer has parameter urn
- Interface ChaosManagementClientOptionalParams no longer has parameter $host
- Interface ChaosManagementClientOptionalParams no longer has parameter endpoint
- Interface Experiment no longer has parameter provisioningState
- Interface Experiment no longer has parameter selectors
- Interface Experiment no longer has parameter steps
- Interface Experiment no longer has parameter systemData
- Interface ExperimentExecution no longer has parameter id
- Interface ExperimentExecution no longer has parameter name
- Interface ExperimentExecution no longer has parameter startedAt
- Interface ExperimentExecution no longer has parameter status
- Interface ExperimentExecution no longer has parameter stoppedAt
- Interface ExperimentExecution no longer has parameter type
- Interface ExperimentExecutionDetails no longer has parameter failureReason
- Interface ExperimentExecutionDetails no longer has parameter lastActionAt
- Interface ExperimentExecutionDetails no longer has parameter runInformation
- Interface ExperimentExecutionDetails no longer has parameter startedAt
- Interface ExperimentExecutionDetails no longer has parameter status
- Interface ExperimentExecutionDetails no longer has parameter stoppedAt
- Interface ExperimentsCancelOptionalParams no longer has parameter resumeFrom
- Interface ExperimentsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface ExperimentsDeleteOptionalParams no longer has parameter resumeFrom
- Interface ExperimentsStartOptionalParams no longer has parameter resumeFrom
- Interface ExperimentsUpdateOptionalParams no longer has parameter resumeFrom
- Interface Target no longer has parameter systemData
- Interface TargetType no longer has parameter description
- Interface TargetType no longer has parameter displayName
- Interface TargetType no longer has parameter propertiesSchema
- Interface TargetType no longer has parameter resourceTypes
- Interface TargetType no longer has parameter systemData
- Interface Experiment has a new required parameter properties
- Interface TargetType has a new required parameter properties
- Type of parameter type of interface ChaosExperimentAction is changed from "delay" | "discrete" | "continuous" to ExperimentActionType
- Type of parameter type of interface ChaosTargetFilter is changed from "Simple" to FilterType
- Type of parameter type of interface ChaosTargetSelector is changed from "List" | "Query" to SelectorType
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
- Type of parameter identity of interface Experiment is changed from ResourceIdentity to ManagedServiceIdentity
- Type of parameter identity of interface ExperimentUpdate is changed from ResourceIdentity to ManagedServiceIdentity
- Type of parameter tags of interface ExperimentUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter properties of interface Target is changed from {
[propertyName: string]: any;
} to TargetProperties
- Type of parameter tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Class ChaosManagementClient no longer has parameter $host
- Class ChaosManagementClient no longer has parameter apiVersion
- Class ChaosManagementClient no longer has parameter subscriptionId
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Removed function getContinuationToken


## 1.1.0 (2024-03-06)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/chaos/arm-chaos/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2024 Microsoft
Copyright (c) 2025 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
33 changes: 13 additions & 20 deletions sdk/chaos/arm-chaos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

Chaos Management Client

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/chaos/arm-chaos) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-chaos) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-chaos) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/chaos/arm-chaos)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-chaos)
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-chaos?view=azure-node-preview)

## Getting started

Expand All @@ -30,7 +31,7 @@ Install the Azure ChaosManagement client library for JavaScript with `npm`:
npm install @azure/arm-chaos
```

### Create and authenticate a `ChaosManagementClient`
### Create and authenticate a `ChaosClient`

To create a client object to access the Azure ChaosManagement API, you will need the `endpoint` of your Azure ChaosManagement resource and a `credential`. The Azure ChaosManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure ChaosManagement resource in the [Azure Portal][azure_portal].
Expand All @@ -44,35 +45,34 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure ChaosManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

```javascript
const { ChaosManagementClient } = require("@azure/arm-chaos");
const { ChaosClient } = require("@azure/arm-chaos");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ChaosManagementClient(new DefaultAzureCredential(), subscriptionId);
const client = new ChaosClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new ChaosManagementClient(credential, subscriptionId);
// const client = new ChaosClient(credential, subscriptionId);
```

### JavaScript Bundle

### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts

### ChaosManagementClient
### ChaosClient

`ChaosManagementClient` is the primary interface for developers using the Azure ChaosManagement client library. Explore the methods on this client object to understand the different features of the Azure ChaosManagement service that you can access.
`ChaosClient` is the primary interface for developers using the Azure ChaosManagement client library. Explore the methods on this client object to understand the different features of the Azure ChaosManagement service that you can access.

## Troubleshooting

Expand All @@ -87,9 +87,6 @@ setLogLevel("info");

For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -99,10 +96,6 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fchaos%2Farm-chaos%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 0 additions & 8 deletions sdk/chaos/arm-chaos/_meta.json

This file was deleted.

6 changes: 3 additions & 3 deletions sdk/chaos/arm-chaos/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-chaos.d.ts"
"publicTrimmedFilePath": "dist/arm-chaos.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
6 changes: 0 additions & 6 deletions sdk/chaos/arm-chaos/assets.json

This file was deleted.

17 changes: 17 additions & 0 deletions sdk/chaos/arm-chaos/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default [
...azsdkEslint.configs.recommended,
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
];
Loading

0 comments on commit b13f955

Please sign in to comment.