Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-oracledatabase] support sample gen for ts emitter #12875

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 25 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

182 changes: 175 additions & 7 deletions sdk/oracledatabase/arm-oracledatabase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,183 @@
# Release History

## 1.0.1 (Unreleased)

## 2.0.0 (2024-11-14)
### Features Added

### Breaking Changes
- Added operation AutonomousDatabaseBackupsOperations.createOrUpdate
- Added operation AutonomousDatabaseBackupsOperations.delete
- Added operation AutonomousDatabaseBackupsOperations.update
- Added operation AutonomousDatabasesOperations.createOrUpdate
- Added operation AutonomousDatabasesOperations.delete
- Added operation AutonomousDatabasesOperations.failover
- Added operation AutonomousDatabasesOperations.restore
- Added operation AutonomousDatabasesOperations.shrink
- Added operation AutonomousDatabasesOperations.switchover
- Added operation AutonomousDatabasesOperations.update
- Added operation CloudExadataInfrastructuresOperations.addStorageCapacity
- Added operation CloudExadataInfrastructuresOperations.createOrUpdate
- Added operation CloudExadataInfrastructuresOperations.delete
- Added operation CloudExadataInfrastructuresOperations.update
- Added operation CloudVmClustersOperations.addVms
- Added operation CloudVmClustersOperations.createOrUpdate
- Added operation CloudVmClustersOperations.delete
- Added operation CloudVmClustersOperations.removeVms
- Added operation CloudVmClustersOperations.update
- Added operation DbNodesOperations.action
- Added operation OracleSubscriptionsOperations.addAzureSubscriptions
- Added operation OracleSubscriptionsOperations.createOrUpdate
- Added operation OracleSubscriptionsOperations.delete
- Added operation OracleSubscriptionsOperations.listActivationLinks
- Added operation OracleSubscriptionsOperations.listCloudAccountDetails
- Added operation OracleSubscriptionsOperations.listSaasSubscriptionDetails
- Added operation OracleSubscriptionsOperations.update
- Added operation VirtualNetworkAddressesOperations.createOrUpdate
- Added operation VirtualNetworkAddressesOperations.delete
- Added Interface AzureSubscriptions
- Added Interface DatabaseClientOptionalParams
- Added Interface OracleSubscriptionsAddAzureSubscriptionsOptionalParams
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface RestorePollerOptions
- Added Class DatabaseClient
- Added Type Alias AddSubscriptionOperationState
- Added Type Alias ContinuablePage
- Interface OracleSubscriptionProperties has a new optional parameter addSubscriptionOperationState
- Interface OracleSubscriptionProperties has a new optional parameter azureSubscriptionIds
- Interface OracleSubscriptionProperties has a new optional parameter lastOperationStatusDetail
- Added Enum KnownAddSubscriptionOperationState
- Added Enum KnownVersions
- Enum KnownComputeModel has a new value ECPU
- Enum KnownComputeModel has a new value OCPU
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Enum KnownProtocolType has a new value TCPS
- Enum KnownWorkloadType has a new value APEX
- Enum KnownWorkloadType has a new value OLTP
- Added function restorePoller

### Bugs Fixed

### Other Changes
### Breaking Changes

- Removed operation AutonomousDatabaseBackups.beginCreateOrUpdate
- Removed operation AutonomousDatabaseBackups.beginCreateOrUpdateAndWait
- Removed operation AutonomousDatabaseBackups.beginDelete
- Removed operation AutonomousDatabaseBackups.beginDeleteAndWait
- Removed operation AutonomousDatabaseBackups.beginUpdate
- Removed operation AutonomousDatabaseBackups.beginUpdateAndWait
- Removed operation AutonomousDatabases.beginCreateOrUpdate
- Removed operation AutonomousDatabases.beginCreateOrUpdateAndWait
- Removed operation AutonomousDatabases.beginDelete
- Removed operation AutonomousDatabases.beginDeleteAndWait
- Removed operation AutonomousDatabases.beginFailover
- Removed operation AutonomousDatabases.beginFailoverAndWait
- Removed operation AutonomousDatabases.beginRestore
- Removed operation AutonomousDatabases.beginRestoreAndWait
- Removed operation AutonomousDatabases.beginShrink
- Removed operation AutonomousDatabases.beginShrinkAndWait
- Removed operation AutonomousDatabases.beginSwitchover
- Removed operation AutonomousDatabases.beginSwitchoverAndWait
- Removed operation AutonomousDatabases.beginUpdate
- Removed operation AutonomousDatabases.beginUpdateAndWait
- Removed operation CloudExadataInfrastructures.beginAddStorageCapacity
- Removed operation CloudExadataInfrastructures.beginAddStorageCapacityAndWait
- Removed operation CloudExadataInfrastructures.beginCreateOrUpdate
- Removed operation CloudExadataInfrastructures.beginCreateOrUpdateAndWait
- Removed operation CloudExadataInfrastructures.beginDelete
- Removed operation CloudExadataInfrastructures.beginDeleteAndWait
- Removed operation CloudExadataInfrastructures.beginUpdate
- Removed operation CloudExadataInfrastructures.beginUpdateAndWait
- Removed operation CloudVmClusters.beginAddVms
- Removed operation CloudVmClusters.beginAddVmsAndWait
- Removed operation CloudVmClusters.beginCreateOrUpdate
- Removed operation CloudVmClusters.beginCreateOrUpdateAndWait
- Removed operation CloudVmClusters.beginDelete
- Removed operation CloudVmClusters.beginDeleteAndWait
- Removed operation CloudVmClusters.beginRemoveVms
- Removed operation CloudVmClusters.beginRemoveVmsAndWait
- Removed operation CloudVmClusters.beginUpdate
- Removed operation CloudVmClusters.beginUpdateAndWait
- Removed operation DbNodes.beginAction
- Removed operation DbNodes.beginActionAndWait
- Removed operation OracleSubscriptions.beginCreateOrUpdate
- Removed operation OracleSubscriptions.beginCreateOrUpdateAndWait
- Removed operation OracleSubscriptions.beginDelete
- Removed operation OracleSubscriptions.beginDeleteAndWait
- Removed operation OracleSubscriptions.beginListActivationLinks
- Removed operation OracleSubscriptions.beginListActivationLinksAndWait
- Removed operation OracleSubscriptions.beginListCloudAccountDetails
- Removed operation OracleSubscriptions.beginListCloudAccountDetailsAndWait
- Removed operation OracleSubscriptions.beginListSaasSubscriptionDetails
- Removed operation OracleSubscriptions.beginListSaasSubscriptionDetailsAndWait
- Removed operation OracleSubscriptions.beginUpdate
- Removed operation OracleSubscriptions.beginUpdateAndWait
- Removed operation VirtualNetworkAddresses.beginCreateOrUpdate
- Removed operation VirtualNetworkAddresses.beginCreateOrUpdateAndWait
- Removed operation VirtualNetworkAddresses.beginDelete
- Removed operation VirtualNetworkAddresses.beginDeleteAndWait
- Deleted Class OracleDatabaseManagementClient
- Interface AutonomousDatabaseBackupsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabaseBackupsDeleteOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabaseBackupsUpdateOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesDeleteOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesFailoverOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesRestoreOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesShrinkOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesSwitchoverOptionalParams no longer has parameter resumeFrom
- Interface AutonomousDatabasesUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudExadataInfrastructuresAddStorageCapacityOptionalParams no longer has parameter resumeFrom
- Interface CloudExadataInfrastructuresCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudExadataInfrastructuresDeleteOptionalParams no longer has parameter resumeFrom
- Interface CloudExadataInfrastructuresUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudVmClustersAddVmsOptionalParams no longer has parameter resumeFrom
- Interface CloudVmClustersCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface CloudVmClustersDeleteOptionalParams no longer has parameter resumeFrom
- Interface CloudVmClustersRemoveVmsOptionalParams no longer has parameter resumeFrom
- Interface CloudVmClustersUpdateOptionalParams no longer has parameter resumeFrom
- Interface DbNodesActionOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsDeleteOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsListActivationLinksOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsListCloudAccountDetailsOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsListSaasSubscriptionDetailsOptionalParams no longer has parameter resumeFrom
- Interface OracleSubscriptionsUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualNetworkAddressesCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface VirtualNetworkAddressesDeleteOptionalParams no longer has parameter resumeFrom
- Parameter lifecycleState of interface DbNodeProperties is now required
- Parameter timeCreated of interface DbNodeProperties is now required
- Parameter vnicId of interface DbNodeProperties is now required
- Parameter displayName of interface DnsPrivateViewProperties is now required
- Parameter lifecycleState of interface DnsPrivateViewProperties is now required
- Parameter lifecycleState of interface DnsPrivateZoneProperties is now required
- Type of parameter dataBaseType of interface AutonomousDatabaseBaseProperties is changed from "Clone" | "Regular" to DataBaseType
- Type of parameter tags of interface AutonomousDatabaseUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter scheduledOperations of interface AutonomousDatabaseUpdateProperties is changed from ScheduledOperationsTypeUpdate to ScheduledOperationsType
- Type of parameter tags of interface CloudExadataInfrastructureUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter tags of interface CloudVmClusterUpdate 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 tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Removed Enum KnownUpdateAction
- Removed Enum KnownValidationStatus
- Enum KnownComputeModel no longer has value Ecpu
- Enum KnownComputeModel no longer has value Ocpu
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Enum KnownProtocolType no longer has value Tcps
- Enum KnownWorkloadType no longer has value Apex
- Enum KnownWorkloadType no longer has value Oltp
- Removed function getContinuationToken


## 1.0.0 (2024-06-25)

### Features Added
Expand Down
39 changes: 16 additions & 23 deletions sdk/oracledatabase/arm-oracledatabase/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Azure OracleDatabaseManagement client library for JavaScript
# Azure Database client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure OracleDatabaseManagement client.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Database client.



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

- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-oracledatabase)
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-oracledatabase?view=azure-node-preview)

## Getting started

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

### Install the `@azure/arm-oracledatabase` package

Install the Azure OracleDatabaseManagement client library for JavaScript with `npm`:
Install the Azure Database client library for JavaScript with `npm`:

```bash
npm install @azure/arm-oracledatabase
```

### Create and authenticate a `OracleDatabaseManagementClient`
### Create and authenticate a `DatabaseClient`

To create a client object to access the Azure OracleDatabaseManagement API, you will need the `endpoint` of your Azure OracleDatabaseManagement resource and a `credential`. The Azure OracleDatabaseManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure OracleDatabaseManagement resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure Database API, you will need the `endpoint` of your Azure Database resource and a `credential`. The Azure Database client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Database resource in the [Azure Portal][azure_portal].

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

Expand All @@ -43,25 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure OracleDatabaseManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
You will also need to **register a new AAD application and grant access to Azure Database** 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://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

```javascript
const { OracleDatabaseManagementClient } = require("@azure/arm-oracledatabase");
const { DatabaseClient } = require("@azure/arm-oracledatabase");
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 OracleDatabaseManagementClient(new DefaultAzureCredential(), subscriptionId);
const client = new DatabaseClient(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 OracleDatabaseManagementClient(credential, subscriptionId);
// const client = new DatabaseClient(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

### OracleDatabaseManagementClient
### DatabaseClient

`OracleDatabaseManagementClient` is the primary interface for developers using the Azure OracleDatabaseManagement client library. Explore the methods on this client object to understand the different features of the Azure OracleDatabaseManagement service that you can access.
`DatabaseClient` is the primary interface for developers using the Azure Database client library. Explore the methods on this client object to understand the different features of the Azure Database 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%2Foracledatabase%2Farm-oracledatabase%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/oracledatabase/arm-oracledatabase/_meta.json

This file was deleted.

Loading