Skip to content

Commit

Permalink
[Synapse] Land the initial generated code (#12713)
Browse files Browse the repository at this point in the history
* WIP

* WIP

* WIP

* WIP

* Add last two to workspace

* Add basic READMEs and test builds

* Add basic READMEs and test builds

* Fix package versions

* Skip tests

* Address feedback

* Address feedback

* Rerun swagger codegen

* Rerun swagger codegen

* Add rolled up type files

* WIP

* WIP

* New regeneration with tracing

* New regeneration with tracing

* Remove prepack

* Add sdk-type

* Add lint

* Skip lint for now

* Add copyright and improve generation

* Add copyright and improve generation

* Fix keyvault lint

* Export fixes

* Export fixes

* Fix release dates
  • Loading branch information
Jonathan Turner authored Dec 9, 2020
1 parent 90166f0 commit 7907744
Show file tree
Hide file tree
Showing 110 changed files with 60,994 additions and 2 deletions.
106 changes: 105 additions & 1 deletion common/config/rush/pnpm-lock.yaml

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

20 changes: 20 additions & 0 deletions dataplane.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,26 @@
"name": "storage-queue",
"path": "sdk/storage/storage-queue"
},
{
"name": "synapse-access-control",
"path": "sdk/synapse/synapse-access-control"
},
{
"name": "synapse-artifacts",
"path": "sdk/synapse/synapse-artifacts"
},
{
"name": "synapse-managed-private-endpoints",
"path": "sdk/synapse/synapse-managed-private-endpoints"
},
{
"name": "synapse-monitoring",
"path": "sdk/synapse/synapse-monitoring"
},
{
"name": "synapse-spark",
"path": "sdk/synapse/synapse-spark"
},
{
"name": "tables",
"path": "sdk/tables/data-tables"
Expand Down
25 changes: 25 additions & 0 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,31 @@
"projectFolder": "sdk/storage/storage-queue",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-access-control",
"projectFolder": "sdk/synapse/synapse-access-control",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-artifacts",
"projectFolder": "sdk/synapse/synapse-artifacts",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-managed-private-endpoints",
"projectFolder": "sdk/synapse/synapse-managed-private-endpoints",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-monitoring",
"projectFolder": "sdk/synapse/synapse-monitoring",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-spark",
"projectFolder": "sdk/synapse/synapse-spark",
"versionPolicyName": "client"
},
{
"packageName": "@azure/data-tables",
"projectFolder": "sdk/tables/data-tables",
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-secrets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"keywords": [
"node",
"azure",
"cloud",
"typescript",
"browser",
"cloud",
"isomorphic",
"keyvault"
],
Expand Down
38 changes: 38 additions & 0 deletions sdk/synapse/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.

trigger:
branches:
include:
- master
- release/*
- hotfix/*
paths:
include:
- sdk/synapse/

pr:
branches:
include:
- master
- feature/*
- release/*
- hotfix/*
paths:
include:
- sdk/synapse/

extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
ServiceDirectory: synapse
Artifacts:
- name: azure-synapse-access-control
safeName: azuresynapseaccesscontrol
- name: azure-synapse-artifacts
safeName: azuresynapseartifacts
- name: azure-synapse-managed-private-endpoints
safeName: azuresynapsemanagedprivateendpoints
- name: azure-synapse-monitoring
safeName: azuresynapsemonitoring
- name: azure-synapse-spark
safeName: azuresynapsespark
5 changes: 5 additions & 0 deletions sdk/synapse/synapse-access-control/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release History

## 1.0.0-beta.1 (2020-12-09)

- Initial release
64 changes: 64 additions & 0 deletions sdk/synapse/synapse-access-control/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
## Azure Synapse Access Control client library for JavaScript

This package contains an isomorphic SDK for Access Control.

## Getting started

### Install the package

```bash
npm install @azure/synapse-access-control
```

### Currently supported environments

- Node.js version 8.x.x or higher
- Browser JavaScript

## Key concepts

## Examples

```ts
import { AccessControlClient } from "@azure/synapse-access-control";
import { DefaultAzureCredential } from "@azure/identity";

export async function main(): Promise<void> {
const credential = new DefaultAzureCredential();

let client = new AccessControlClient(
credential,
"https://joturnersynapsetest.dev.azuresynapse.net"
);
let list = await client.listRoleDefinitions();
for await (let item of list) {
console.log("item:", item);
}
}
```

## Related projects

- [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%2Fcdn%2Farm-cdn%2FREADME.png)

## Troubleshooting

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:

```javascript
import { setLogLevel } from "@azure/logger";

setLogLevel("info");
```

## Next steps

In the future, you'll find additional code samples here.

## Contributing

If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fkeyvault%2Fkeyvault-keys%2FREADME.png)
18 changes: 18 additions & 0 deletions sdk/synapse/synapse-access-control/api-extractor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/synapse-access-control.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
}
}
}
Loading

0 comments on commit 7907744

Please sign in to comment.