Skip to content

Commit 371747f

Browse files
author
SDKAuto
committed
CodeGen from PR 33891 in Azure/azure-rest-api-specs
Merge 468d60eff0df2425f091ce69ce73749122c7a4bf into 2321956e04edaf9fab5440d8889475d9790d2ebc
1 parent 38ce289 commit 371747f

File tree

118 files changed

+4264
-5732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+4264
-5732
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,77 @@
11
# Release History
2-
3-
## 1.0.1 (Unreleased)
4-
2+
3+
## 2.0.0-beta.1 (2025-04-29)
4+
Compared with version 1.0.0
5+
56
### Features Added
67

7-
### Breaking Changes
8+
- Added Interface CheckAvailabilityQuotaOptionalParams
9+
- Added Interface CheckQuotaAvailabilityResponseProperties
10+
- Added Interface CreateOrUpdateLoadtestOptionalParams
11+
- Added Interface DeleteLoadtestOptionalParams
12+
- Added Interface GetLoadtestOptionalParams
13+
- Added Interface GetQuotaOptionalParams
14+
- Added Interface ListByResourceGroupOptionalParams
15+
- Added Interface ListBySubscriptionOptionalParams
16+
- Added Interface ListQuotaOptionalParams
17+
- Added Interface LoadTestMgmtClientOptionalParams
18+
- Added Interface LoadTestProperties
19+
- Added Interface LoadTestResourceUpdate
20+
- Added Interface LoadTestResourceUpdateProperties
21+
- Added Interface OutboundNetworkDependenciesEndpointsOptionalParams
22+
- Added Interface PagedAsyncIterableIterator
23+
- Added Interface PageSettings
24+
- Added Interface ProxyResource
25+
- Added Interface QuotaBucketRequestProperties
26+
- Added Interface QuotaResourceProperties
27+
- Added Interface RestorePollerOptions
28+
- Added Interface UpdateLoadtestOptionalParams
29+
- Added Class LoadTestMgmtClient
30+
- Added Type Alias ContinuablePage
31+
- Interface CheckQuotaAvailabilityResponse has a new optional parameter name
32+
- Interface CheckQuotaAvailabilityResponse has a new optional parameter properties
33+
- Interface CheckQuotaAvailabilityResponse has a new optional parameter systemData
34+
- Interface LoadTestResource has a new optional parameter properties
35+
- Interface QuotaBucketRequest has a new optional parameter properties
36+
- Interface QuotaResource has a new optional parameter properties
37+
- Type of parameter resourceId of interface EncryptionPropertiesIdentity is changed from string to string | null
38+
- Added Enum KnownAPIVersions
39+
- Added function restorePoller
840

9-
### Bugs Fixed
10-
11-
### Other Changes
41+
### Breaking Changes
1242

43+
- Removed operation group LoadTests
44+
- Removed operation group Operations
45+
- Removed operation group Quotas
46+
- Deleted Class LoadTestClient
47+
- Interface CheckQuotaAvailabilityResponse no longer has parameter availabilityStatus
48+
- Interface CheckQuotaAvailabilityResponse no longer has parameter isAvailable
49+
- Interface LoadTestResource no longer has parameter dataPlaneURI
50+
- Interface LoadTestResource no longer has parameter description
51+
- Interface LoadTestResource no longer has parameter encryption
52+
- Interface LoadTestResource no longer has parameter provisioningState
53+
- Interface QuotaBucketRequest no longer has parameter currentQuota
54+
- Interface QuotaBucketRequest no longer has parameter currentUsage
55+
- Interface QuotaBucketRequest no longer has parameter dimensions
56+
- Interface QuotaBucketRequest no longer has parameter newQuota
57+
- Interface QuotaResource no longer has parameter limit
58+
- Interface QuotaResource no longer has parameter provisioningState
59+
- Interface QuotaResource no longer has parameter usage
60+
- Interface CheckQuotaAvailabilityResponse has a new required parameter id
61+
- Interface CheckQuotaAvailabilityResponse has a new required parameter type
62+
- Parameter domainName of interface EndpointDependency is now required
63+
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
64+
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
65+
[propertyName: string]: UserAssignedIdentity | null;
66+
} to Record<string, UserAssignedIdentity | null>
67+
- Type of parameter tags of interface TrackedResource is changed from {
68+
[propertyName: string]: string;
69+
} to Record<string, string>
70+
- Removed Enum KnownActionType
71+
- Removed Enum KnownOrigin
72+
- Removed function getContinuationToken
73+
74+
1375
## 1.0.0 (2023-01-28)
1476

15-
The package of @azure/arm-loadtesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
77+
The package of @azure/arm-loadtesting is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/loadtesting/arm-loadtesting/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/loadtesting/arm-loadtesting/README.md

Lines changed: 16 additions & 143 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
44

55
LoadTest client provides access to LoadTest Resource and it's status operations.
66

7-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/arm-loadtesting) |
8-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-loadtesting) |
9-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-loadtesting) |
10-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/arm-loadtesting)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-loadtesting)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-loadtesting?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/arm-loadtesting/samples)
1113

1214
## Getting started
1315

@@ -30,7 +32,7 @@ Install the Azure LoadTest client library for JavaScript with `npm`:
3032
npm install @azure/arm-loadtesting
3133
```
3234

33-
### Create and authenticate a `LoadTestClient`
35+
### Create and authenticate a `LoadTestServiceClient`
3436

3537
To create a client object to access the Azure LoadTest API, you will need the `endpoint` of your Azure LoadTest resource and a `credential`. The Azure LoadTest client can use Azure Active Directory credentials to authenticate.
3638
You can find the endpoint for your Azure LoadTest resource in the [Azure Portal][azure_portal].
@@ -44,168 +46,41 @@ npm install @azure/identity
4446
```
4547

4648
You will also need to **register a new AAD application and grant access to Azure LoadTest** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
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`.
4849

4950
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).
5051

5152
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
5253

5354
```ts snippet:ReadmeSampleCreateClient_Node
54-
import { LoadTestClient } from "@azure/arm-loadtesting";
55+
import { LoadTestServiceClient } from "@azure/arm-loadtesting";
5556
import { DefaultAzureCredential } from "@azure/identity";
5657

5758
const subscriptionId = "00000000-0000-0000-0000-000000000000";
58-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
59+
const client = new LoadTestServiceClient(new DefaultAzureCredential(), subscriptionId);
5960
```
6061

6162
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
6263

6364
```ts snippet:ReadmeSampleCreateClient_Browser
6465
import { InteractiveBrowserCredential } from "@azure/identity";
65-
import { LoadTestClient } from "@azure/arm-loadtesting";
66+
import { LoadTestServiceClient } from "@azure/arm-loadtesting";
6667

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6868
const credential = new InteractiveBrowserCredential({
6969
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
72-
const client = new LoadTestClient(credential, subscriptionId);
73-
```
74-
75-
### Create an Azure Load Testing resource
76-
77-
Create a new Azure Load Testing resource.
78-
79-
```ts snippet:ReadmeSampleCreateLoadTestResource
80-
import { LoadTestClient } from "@azure/arm-loadtesting";
81-
import { DefaultAzureCredential } from "@azure/identity";
82-
83-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
84-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
85-
86-
const loadTestResourceCreatePayload = {
87-
location: "westus2",
88-
};
89-
90-
const resource = await client.loadTests.beginCreateOrUpdateAndWait(
91-
"sample-rg",
92-
"sample-loadtesting-resource",
93-
loadTestResourceCreatePayload,
94-
);
95-
```
96-
97-
Create a new Azure Load Testing resource with managed identity and customer managed key encryption.
98-
99-
```ts snippet:ReadmeSampleCreateLoadTestResourceWithManagedIdentityAndCMKEncryption
100-
import { LoadTestClient } from "@azure/arm-loadtesting";
101-
import { DefaultAzureCredential } from "@azure/identity";
102-
103-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
104-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
105-
106-
const loadTestResourceCreatePayload = {
107-
location: "westus2",
108-
tags: { team: "testing" },
109-
identity: {
110-
type: "SystemAssigned, UserAssigned",
111-
userAssignedIdentities: {
112-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1":
113-
{},
114-
},
115-
},
116-
encryption: {
117-
identity: {
118-
type: "UserAssigned",
119-
resourceId:
120-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1",
121-
},
122-
keyUrl: "https://sample-kv.vault.azure.net/keys/cmkkey/2d1ccd5c50234ea2a0858fe148b69cde",
123-
},
124-
};
125-
126-
const resource = await client.loadTests.beginCreateOrUpdateAndWait(
127-
"sample-rg",
128-
"sample-loadtesting-resource",
129-
loadTestResourceCreatePayload,
130-
);
131-
```
132-
133-
### Get an Azure Load Testing resource
134-
135-
```ts snippet:ReadmeSampleGetLoadTestResource
136-
import { LoadTestClient } from "@azure/arm-loadtesting";
137-
import { DefaultAzureCredential } from "@azure/identity";
138-
139-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
140-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
141-
142-
const resourceName = "sample-loadtesting-resource";
143-
const resourceGroupName = "sample-rg";
144-
145-
const resource = await client.loadTests.get(resourceGroupName, resourceName);
146-
```
147-
148-
### Update an Azure Load Testing resource
149-
150-
```ts snippet:ReadmeSampleUpdateLoadTestResource
151-
import { LoadTestClient } from "@azure/arm-loadtesting";
152-
import { DefaultAzureCredential } from "@azure/identity";
153-
154-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
155-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
156-
157-
const loadTestResourcePatchPayload = {
158-
tags: { team: "testing-dev" },
159-
identity: {
160-
type: "SystemAssigned, UserAssigned",
161-
userAssignedIdentities: {
162-
// removing a user-assigned managed identity by assigning the value in the payload as null
163-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity1":
164-
null,
165-
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sample-rg/providers/microsoft.managedidentity/userassignedidentities/identity2":
166-
{},
167-
},
168-
},
169-
encryption: {
170-
// use system-assigned managed identity for CMK encryption
171-
identity: {
172-
type: "SystemAssigned",
173-
resourceId: null,
174-
},
175-
keyUrl: "https://sample-kv.vault.azure.net/keys/cmkkey/2d1ccd5c50234ea2a0858fe148b69cde",
176-
},
177-
};
178-
const resource = await client.loadTests.beginUpdateAndWait(
179-
"sample-rg",
180-
"sample-loadtesting-resource",
181-
loadTestResourcePatchPayload,
182-
);
70+
clientId: "<YOUR_CLIENT_ID>"
71+
});
72+
const client = new LoadTestServiceClient(credential, subscriptionId);
18373
```
18474

185-
### Delete an Azure Load Testing resource
186-
187-
```ts snippet:ReadmeSampleDeleteLoadTestResource
188-
import { LoadTestClient } from "@azure/arm-loadtesting";
189-
import { DefaultAzureCredential } from "@azure/identity";
190-
191-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
192-
const client = new LoadTestClient(new DefaultAzureCredential(), subscriptionId);
193-
194-
const resourceName = "sample-loadtesting-resource";
195-
const resourceGroupName = "sample-rg";
196-
197-
const result = await client.loadTests.beginDeleteAndWait(resourceGroupName, resourceName);
198-
```
19975

20076
### JavaScript Bundle
201-
20277
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).
20378

20479
## Key concepts
20580

206-
### LoadTestClient
81+
### LoadTestServiceClient
20782

208-
`LoadTestClient` is the primary interface for developers using the Azure LoadTest client library. Explore the methods on this client object to understand the different features of the Azure LoadTest service that you can access.
83+
`LoadTestServiceClient` is the primary interface for developers using the Azure LoadTest client library. Explore the methods on this client object to understand the different features of the Azure LoadTest service that you can access.
20984

21085
## Troubleshooting
21186

@@ -223,7 +98,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
22398

22499
## Next steps
225100

226-
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.
101+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/loadtesting/arm-loadtesting/samples) directory for detailed examples on how to use this library.
227102

228103
## Contributing
229104

@@ -233,8 +108,6 @@ If you'd like to contribute to this library, please read the [contributing guide
233108

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

236-
[azure_cli]: https://learn.microsoft.com/cli/azure
237-
[azure_sub]: https://azure.microsoft.com/free/
238111
[azure_sub]: https://azure.microsoft.com/free/
239112
[azure_portal]: https://portal.azure.com
240113
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/loadtesting/arm-loadtesting/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

sdk/loadtesting/arm-loadtesting/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)