Skip to content

Commit

Permalink
CodeGen from PR 3476 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3b1b4d74387434852ae9cee725f5b1e80f7176ff into 7287b054bc3863f8fe7c1e3818243277440694e4
  • Loading branch information
SDKAuto committed Aug 15, 2024
1 parent a020048 commit 31bc06b
Show file tree
Hide file tree
Showing 255 changed files with 17,970 additions and 24,781 deletions.
47 changes: 43 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions sdk/scvmm/arm-scvmm/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"plugins": ["@azure/azure-sdk"],
"extends": ["plugin:@azure/azure-sdk/azure-sdk-base"],
"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",
"tsdoc/syntax": "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"
}
}
200 changes: 192 additions & 8 deletions sdk/scvmm/arm-scvmm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,199 @@
# Release History

## 1.0.1 (Unreleased)

## 1.0.0-beta.1 (2024-08-15)

### Features Added

### Breaking Changes
- Added operation AvailabilitySetsOperations.createOrUpdate
- Added operation AvailabilitySetsOperations.delete
- Added operation AvailabilitySetsOperations.update
- Added operation CloudsOperations.createOrUpdate
- Added operation CloudsOperations.delete
- Added operation CloudsOperations.update
- Added operation GuestAgentsOperations.create
- Added operation VirtualMachineInstancesOperations.createCheckpoint
- Added operation VirtualMachineInstancesOperations.createOrUpdate
- Added operation VirtualMachineInstancesOperations.delete
- Added operation VirtualMachineInstancesOperations.deleteCheckpoint
- Added operation VirtualMachineInstancesOperations.restart
- Added operation VirtualMachineInstancesOperations.restoreCheckpoint
- Added operation VirtualMachineInstancesOperations.start
- Added operation VirtualMachineInstancesOperations.stop
- Added operation VirtualMachineInstancesOperations.update
- Added operation VirtualMachineTemplatesOperations.createOrUpdate
- Added operation VirtualMachineTemplatesOperations.delete
- Added operation VirtualMachineTemplatesOperations.update
- Added operation VirtualNetworksOperations.createOrUpdate
- Added operation VirtualNetworksOperations.delete
- Added operation VirtualNetworksOperations.update
- Added operation VmmServersOperations.createOrUpdate
- Added operation VmmServersOperations.delete
- Added operation VmmServersOperations.update
- Added Interface ExtensionResource
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface RestorePollerOptions
- Added Interface ScVmmClientOptionalParams
- Added Class ScVmmClient
- Added Type Alias ContinuablePage
- Added Type Alias ResourceProvisioningState
- Added Type Alias Versions
- Interface GuestAgentProperties has a new optional parameter privateLinkScopeResourceId
- Interface OsProfileForVmInstance has a new optional parameter domainName
- Interface OsProfileForVmInstance has a new optional parameter domainPassword
- Interface OsProfileForVmInstance has a new optional parameter domainUsername
- Interface OsProfileForVmInstance has a new optional parameter productKey
- Interface OsProfileForVmInstance has a new optional parameter runOnceCommands
- Interface OsProfileForVmInstance has a new optional parameter timezone
- Interface OsProfileForVmInstance has a new optional parameter workgroup
- Added Enum KnownResourceProvisioningState
- Enum KnownCreateDiffDisk has a new value "false"
- Enum KnownCreateDiffDisk has a new value "true"
- Enum KnownDeleteFromHost has a new value "false"
- Enum KnownDeleteFromHost has a new value "true"
- Enum KnownDynamicMemoryEnabled has a new value "false"
- Enum KnownDynamicMemoryEnabled has a new value "true"
- Enum KnownForceDelete has a new value "false"
- Enum KnownForceDelete has a new value "true"
- Enum KnownIsCustomizable has a new value "false"
- Enum KnownIsCustomizable has a new value "true"
- Enum KnownIsHighlyAvailable has a new value "false"
- Enum KnownIsHighlyAvailable has a new value "true"
- Enum KnownLimitCpuForMigration has a new value "false"
- Enum KnownLimitCpuForMigration has a new value "true"
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Enum KnownProvisioningAction has a new value install
- Enum KnownProvisioningAction has a new value repair
- Enum KnownProvisioningAction has a new value uninstall
- Enum KnownSkipShutdown has a new value "false"
- Enum KnownSkipShutdown has a new value "true"
- Added function restorePoller

### Bugs Fixed

### Other Changes
### Breaking Changes

- Removed operation AvailabilitySets.beginCreateOrUpdate
- Removed operation AvailabilitySets.beginCreateOrUpdateAndWait
- Removed operation AvailabilitySets.beginDelete
- Removed operation AvailabilitySets.beginDeleteAndWait
- Removed operation AvailabilitySets.beginUpdate
- Removed operation AvailabilitySets.beginUpdateAndWait
- Removed operation Clouds.beginCreateOrUpdate
- Removed operation Clouds.beginCreateOrUpdateAndWait
- Removed operation Clouds.beginDelete
- Removed operation Clouds.beginDeleteAndWait
- Removed operation Clouds.beginUpdate
- Removed operation Clouds.beginUpdateAndWait
- Removed operation GuestAgents.beginCreate
- Removed operation GuestAgents.beginCreateAndWait
- Removed operation VirtualMachineInstances.beginCreateCheckpoint
- Removed operation VirtualMachineInstances.beginCreateCheckpointAndWait
- Removed operation VirtualMachineInstances.beginCreateOrUpdate
- Removed operation VirtualMachineInstances.beginCreateOrUpdateAndWait
- Removed operation VirtualMachineInstances.beginDelete
- Removed operation VirtualMachineInstances.beginDeleteAndWait
- Removed operation VirtualMachineInstances.beginDeleteCheckpoint
- Removed operation VirtualMachineInstances.beginDeleteCheckpointAndWait
- Removed operation VirtualMachineInstances.beginRestart
- Removed operation VirtualMachineInstances.beginRestartAndWait
- Removed operation VirtualMachineInstances.beginRestoreCheckpoint
- Removed operation VirtualMachineInstances.beginRestoreCheckpointAndWait
- Removed operation VirtualMachineInstances.beginStart
- Removed operation VirtualMachineInstances.beginStartAndWait
- Removed operation VirtualMachineInstances.beginStop
- Removed operation VirtualMachineInstances.beginStopAndWait
- Removed operation VirtualMachineInstances.beginUpdate
- Removed operation VirtualMachineInstances.beginUpdateAndWait
- Removed operation VirtualMachineTemplates.beginCreateOrUpdate
- Removed operation VirtualMachineTemplates.beginCreateOrUpdateAndWait
- Removed operation VirtualMachineTemplates.beginDelete
- Removed operation VirtualMachineTemplates.beginDeleteAndWait
- Removed operation VirtualMachineTemplates.beginUpdate
- Removed operation VirtualMachineTemplates.beginUpdateAndWait
- Removed operation VirtualNetworks.beginCreateOrUpdate
- Removed operation VirtualNetworks.beginCreateOrUpdateAndWait
- Removed operation VirtualNetworks.beginDelete
- Removed operation VirtualNetworks.beginDeleteAndWait
- Removed operation VirtualNetworks.beginUpdate
- Removed operation VirtualNetworks.beginUpdateAndWait
- Removed operation VmmServers.beginCreateOrUpdate
- Removed operation VmmServers.beginCreateOrUpdateAndWait
- Removed operation VmmServers.beginDelete
- Removed operation VmmServers.beginDeleteAndWait
- Removed operation VmmServers.beginUpdate
- Removed operation VmmServers.beginUpdateAndWait
- Deleted Class ScVmm
- Interface AvailabilitySetsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface AvailabilitySetsDeleteOptionalParams no longer has parameter resumeFrom
- Interface AvailabilitySetsUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudsDeleteOptionalParams no longer has parameter resumeFrom
- Interface CloudsUpdateOptionalParams no longer has parameter resumeFrom
- Interface GuestAgentsCreateOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesCreateCheckpointOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesDeleteCheckpointOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesDeleteOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesRestartOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesRestoreCheckpointOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesStartOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesStopOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineInstancesUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineTemplatesCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineTemplatesDeleteOptionalParams no longer has parameter resumeFrom
- Interface VirtualMachineTemplatesUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualNetworksCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualNetworksDeleteOptionalParams no longer has parameter resumeFrom
- Interface VirtualNetworksUpdateOptionalParams no longer has parameter resumeFrom
- Interface VmmServersCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface VmmServersDeleteOptionalParams no longer has parameter resumeFrom
- Interface VmmServersUpdateOptionalParams no longer has parameter resumeFrom
- Type of parameter tags of interface AvailabilitySetTagsUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter tags of interface CloudTagsUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, unknown> to Record<string, any>
- Type of parameter inventoryType of interface InventoryItemProperties is changed from "Cloud" | "VirtualMachine" | "VirtualMachineTemplate" | "VirtualNetwork" to InventoryType
- Type of parameter tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter tags of interface VirtualMachineTemplateTagsUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter tags of interface VirtualNetworkTagsUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter tags of interface VmmServerTagsUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Removed Enum KnownProvisioningState
- Enum KnownCreateDiffDisk no longer has value False
- Enum KnownCreateDiffDisk no longer has value True
- Enum KnownDeleteFromHost no longer has value False
- Enum KnownDeleteFromHost no longer has value True
- Enum KnownDynamicMemoryEnabled no longer has value False
- Enum KnownDynamicMemoryEnabled no longer has value True
- Enum KnownForceDelete no longer has value False
- Enum KnownForceDelete no longer has value True
- Enum KnownIsCustomizable no longer has value False
- Enum KnownIsCustomizable no longer has value True
- Enum KnownIsHighlyAvailable no longer has value False
- Enum KnownIsHighlyAvailable no longer has value True
- Enum KnownLimitCpuForMigration no longer has value False
- Enum KnownLimitCpuForMigration no longer has value True
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Enum KnownProvisioningAction no longer has value Install
- Enum KnownProvisioningAction no longer has value Repair
- Enum KnownProvisioningAction no longer has value Uninstall
- Enum KnownSkipShutdown no longer has value False
- Enum KnownSkipShutdown no longer has value True
- Removed function getContinuationToken

# Release History

## 1.0.0 (2024-06-25)

### Features Added
Expand Down
22 changes: 9 additions & 13 deletions sdk/scvmm/arm-scvmm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ The Microsoft.ScVmm Rest API spec.

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

## Getting started

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

### Create and authenticate a `ScVmm`
### Create and authenticate a `ScVmmClient`

To create a client object to access the Azure ScVmm API, you will need the `endpoint` of your Azure ScVmm resource and a `credential`. The Azure ScVmm client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure ScVmm resource in the [Azure Portal][azure_portal].
Expand All @@ -49,19 +49,19 @@ Set the values of the client ID, tenant ID, and client secret of the AAD applica
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 { ScVmm } = require("@azure/arm-scvmm");
const { ScVmmClient } = require("@azure/arm-scvmm");
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 ScVmm(new DefaultAzureCredential(), subscriptionId);
const client = new ScVmmClient(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 ScVmm(credential, subscriptionId);
// const client = new ScVmmClient(credential, subscriptionId);
```


Expand All @@ -70,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For

## Key concepts

### ScVmm
### ScVmmClient

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

## Troubleshooting

Expand All @@ -89,7 +89,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur

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

## Contributing

Expand All @@ -99,10 +99,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%2Fscvmm%2Farm-scvmm%2FREADME.png)

[azure_cli]: https://docs.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/scvmm/arm-scvmm/_meta.json

This file was deleted.

Loading

0 comments on commit 31bc06b

Please sign in to comment.