Skip to content

Commit 0960537

Browse files
author
SDKAuto
committed
CodeGen from PR 34293 in Azure/azure-rest-api-specs
Merge 30f6e9a94dd3aa28dd6bf47a44c1a051c73353ce into 7fc6689d84858b1c71b786526b04c014c4589968
1 parent 6c15ce4 commit 0960537

File tree

79 files changed

+3484
-3943
lines changed

Some content is hidden

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

79 files changed

+3484
-3943
lines changed

common/config/rush/pnpm-lock.yaml

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/computeschedule/arm-computeschedule/CHANGELOG.md

+69-7
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 (2025-05-13)
4+
55
### Features Added
66

7-
### Breaking Changes
7+
- Added operation ScheduledActions.virtualMachinesExecuteCreate
8+
- Added operation ScheduledActions.virtualMachinesExecuteDelete
9+
- Added Interface CreateResourceOperationResponse
10+
- Added Interface DeleteResourceOperationResponse
11+
- Added Interface ErrorAdditionalInfo
12+
- Added Interface ErrorDetail
13+
- Added Interface ErrorResponse
14+
- Added Interface ExecuteCreateRequest
15+
- Added Interface ExecuteDeleteRequest
16+
- Added Interface MicrosoftComputeScheduleOptionalParams
17+
- Added Interface OperationListResult
18+
- Added Interface OperationsListNextOptionalParams
19+
- Added Interface ResourceProvisionPayload
20+
- Added Interface ScheduledActionsVirtualMachinesExecuteCreateOptionalParams
21+
- Added Interface ScheduledActionsVirtualMachinesExecuteDeleteOptionalParams
22+
- Added Class MicrosoftComputeSchedule
23+
- Added Type Alias OperationsListNextResponse
24+
- Added Type Alias OperationsListResponse
25+
- Added Type Alias ScheduledActionsVirtualMachinesCancelOperationsResponse
26+
- Added Type Alias ScheduledActionsVirtualMachinesExecuteCreateResponse
27+
- Added Type Alias ScheduledActionsVirtualMachinesExecuteDeallocateResponse
28+
- Added Type Alias ScheduledActionsVirtualMachinesExecuteDeleteResponse
29+
- Added Type Alias ScheduledActionsVirtualMachinesExecuteHibernateResponse
30+
- Added Type Alias ScheduledActionsVirtualMachinesExecuteStartResponse
31+
- Added Type Alias ScheduledActionsVirtualMachinesGetOperationErrorsResponse
32+
- Added Type Alias ScheduledActionsVirtualMachinesGetOperationStatusResponse
33+
- Added Type Alias ScheduledActionsVirtualMachinesSubmitDeallocateResponse
34+
- Added Type Alias ScheduledActionsVirtualMachinesSubmitHibernateResponse
35+
- Added Type Alias ScheduledActionsVirtualMachinesSubmitStartResponse
36+
- Interface OperationErrorDetails has a new optional parameter timeStamp
37+
- Interface ResourceOperationDetails has a new optional parameter timeZone
38+
- Interface Schedule has a new optional parameter deadLine
39+
- Interface Schedule has a new optional parameter timeZone
40+
- Added function getContinuationToken
841

9-
### Bugs Fixed
10-
11-
### Other Changes
42+
### Breaking Changes
1243

44+
- Deleted Class ComputeScheduleClient
45+
- Interface CancelOperationsRequest no longer has parameter correlationId
46+
- Interface ExecuteDeallocateRequest no longer has parameter correlationId
47+
- Interface ExecuteHibernateRequest no longer has parameter correlationId
48+
- Interface ExecuteStartRequest no longer has parameter correlationId
49+
- Interface GetOperationStatusRequest no longer has parameter correlationId
50+
- Interface OperationErrorDetails no longer has parameter errorDetailsTimestamp
51+
- Interface ResourceOperationDetails no longer has parameter operationTimezone
52+
- Interface Schedule no longer has parameter userRequestDeadline
53+
- Interface Schedule no longer has parameter userRequestTimezone
54+
- Interface SubmitDeallocateRequest no longer has parameter correlationId
55+
- Interface SubmitHibernateRequest no longer has parameter correlationId
56+
- Interface SubmitStartRequest no longer has parameter correlationId
57+
- Interface CancelOperationsRequest has a new required parameter correlationid
58+
- Interface ExecuteDeallocateRequest has a new required parameter correlationid
59+
- Interface ExecuteHibernateRequest has a new required parameter correlationid
60+
- Interface ExecuteStartRequest has a new required parameter correlationid
61+
- Interface GetOperationStatusRequest has a new required parameter correlationid
62+
- Interface SubmitDeallocateRequest has a new required parameter correlationid
63+
- Interface SubmitHibernateRequest has a new required parameter correlationid
64+
- Interface SubmitStartRequest has a new required parameter correlationid
65+
- Type of parameter timestamp of interface OperationErrorDetails is changed from string to Date
66+
- Type of parameter activationTime of interface OperationErrorsResult is changed from string to Date
67+
- Type of parameter completedAt of interface OperationErrorsResult is changed from string to Date
68+
- Type of parameter creationTime of interface OperationErrorsResult is changed from string to Date
69+
- Type of parameter completedAt of interface ResourceOperationDetails is changed from string to Date
70+
- Type of parameter deadline of interface ResourceOperationDetails is changed from string to Date
71+
- Type of parameter deadline of interface Schedule is changed from string to Date
72+
- Removed Enum KnownVersions
73+
74+
1375
## 1.0.0 (2025-01-24)
1476

1577
### Features Added

sdk/computeschedule/arm-computeschedule/LICENSE

+1-1
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/computeschedule/arm-computeschedule/README.md

+24-25
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
# Azure ComputeSchedule client library for JavaScript
1+
# Azure MicrosoftComputeSchedule client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure ComputeSchedule client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftComputeSchedule client.
44

55
Microsoft.ComputeSchedule Resource Provider management API.
66

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

1412
## Getting started
1513

@@ -26,16 +24,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2624

2725
### Install the `@azure/arm-computeschedule` package
2826

29-
Install the Azure ComputeSchedule client library for JavaScript with `npm`:
27+
Install the Azure MicrosoftComputeSchedule client library for JavaScript with `npm`:
3028

3129
```bash
3230
npm install @azure/arm-computeschedule
3331
```
3432

35-
### Create and authenticate a `ComputeScheduleClient`
33+
### Create and authenticate a `MicrosoftComputeSchedule`
3634

37-
To create a client object to access the Azure ComputeSchedule API, you will need the `endpoint` of your Azure ComputeSchedule resource and a `credential`. The Azure ComputeSchedule client can use Azure Active Directory credentials to authenticate.
38-
You can find the endpoint for your Azure ComputeSchedule resource in the [Azure Portal][azure_portal].
35+
To create a client object to access the Azure MicrosoftComputeSchedule API, you will need the `endpoint` of your Azure MicrosoftComputeSchedule resource and a `credential`. The Azure MicrosoftComputeSchedule client can use Azure Active Directory credentials to authenticate.
36+
You can find the endpoint for your Azure MicrosoftComputeSchedule resource in the [Azure Portal][azure_portal].
3937

4038
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
4139

@@ -45,43 +43,41 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4543
npm install @azure/identity
4644
```
4745

48-
You will also need to **register a new AAD application and grant access to Azure ComputeSchedule** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46+
You will also need to **register a new AAD application and grant access to Azure MicrosoftComputeSchedule** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4947

5048
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).
5149

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

5452
```ts snippet:ReadmeSampleCreateClient_Node
55-
import { ComputeScheduleClient } from "@azure/arm-computeschedule";
53+
import { MicrosoftComputeSchedule } from "@azure/arm-computeschedule";
5654
import { DefaultAzureCredential } from "@azure/identity";
5755

5856
const subscriptionId = "00000000-0000-0000-0000-000000000000";
59-
const client = new ComputeScheduleClient(new DefaultAzureCredential(), subscriptionId);
57+
const client = new MicrosoftComputeSchedule(new DefaultAzureCredential(), subscriptionId);
6058
```
6159

62-
or browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
60+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
6361

6462
```ts snippet:ReadmeSampleCreateClient_Browser
6563
import { InteractiveBrowserCredential } from "@azure/identity";
66-
import { ComputeScheduleClient } from "@azure/arm-computeschedule";
64+
import { MicrosoftComputeSchedule } from "@azure/arm-computeschedule";
6765

68-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6966
const credential = new InteractiveBrowserCredential({
7067
tenantId: "<YOUR_TENANT_ID>",
71-
clientId: "<YOUR_CLIENT_ID>",
72-
});
73-
const client = new ComputeScheduleClient(credential, subscriptionId);
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
70+
const client = new MicrosoftComputeSchedule(credential, subscriptionId);
7471
```
7572

7673
### JavaScript Bundle
77-
7874
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).
7975

8076
## Key concepts
8177

82-
### ComputeScheduleClient
78+
### MicrosoftComputeSchedule
8379

84-
`ComputeScheduleClient` is the primary interface for developers using the Azure ComputeSchedule client library. Explore the methods on this client object to understand the different features of the Azure ComputeSchedule service that you can access.
80+
`MicrosoftComputeSchedule` is the primary interface for developers using the Azure MicrosoftComputeSchedule client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftComputeSchedule service that you can access.
8581

8682
## Troubleshooting
8783

@@ -99,7 +95,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9995

10096
## Next steps
10197

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

104100
## Contributing
105101

@@ -109,6 +105,9 @@ If you'd like to contribute to this library, please read the [contributing guide
109105

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

108+
109+
[azure_cli]: https://learn.microsoft.com/cli/azure
110+
[azure_sub]: https://azure.microsoft.com/free/
112111
[azure_sub]: https://azure.microsoft.com/free/
113112
[azure_portal]: https://portal.azure.com
114113
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"commit": "88d4bd5b8ba24d0a1ea4c1fdd0e19820201d242a",
3+
"readme": "specification/computeschedule/resource-manager/readme.md",
4+
"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/computeschedule/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}

sdk/computeschedule/arm-computeschedule/api-extractor.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/computeschedule/arm-computeschedule/assets.json

-6
This file was deleted.

sdk/computeschedule/arm-computeschedule/eslint.config.mjs

-14
This file was deleted.

0 commit comments

Comments
 (0)