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

[Synapse] Land the initial generated code #12713

Merged
merged 35 commits into from
Dec 9, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,171 changes: 1,319 additions & 1,852 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions dataplane.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,26 @@
"name": "storage-queue",
"path": "sdk/storage/storage-queue"
},
{
"name": "synapse-accesscontrol",
"path": "sdk/synapse/synapse-accesscontrol"
},
{
"name": "synapse-artifacts",
"path": "sdk/synapse/synapse-artifacts"
},
{
"name": "synapse-managed-endpoints",
"path": "sdk/synapse/synapse-managed-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 @@ -552,6 +552,31 @@
"projectFolder": "sdk/storage/storage-queue",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-accesscontrol",
"projectFolder": "sdk/synapse/synapse-accesscontrol",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-artifacts",
"projectFolder": "sdk/synapse/synapse-artifacts",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-managed-endpoints",
"projectFolder": "sdk/synapse/synapse-managed-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
1 change: 1 addition & 0 deletions sdk/identity/identity/review/identity.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface AuthenticationRecord {
authority?: string;
environment: string;
homeAccountId: string;
localAccountId: string;
tenantId: string;
username: string;
}
Expand Down
5 changes: 5 additions & 0 deletions sdk/identity/identity/src/client/msalClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ export interface AuthenticationRecord {
*/
tenantId: string;

/**
* Local, tenant-specific account identifer for this account object, usually used in legacy cases
*/
localAccountId: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is required for synapse?


/**
* The username of the logged in account
*/
Expand Down
48 changes: 48 additions & 0 deletions sdk/synapse/synapse-accesscontrol/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Azure Synapse Access Control client library for JavaScript

This package contains an isomorphic SDK for SparkClient.

## Getting started

### Install the package

```bash
npm install @azure/synapse-accesscontrol
```

### Currently supported environments

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

sophiajt marked this conversation as resolved.
Show resolved Hide resolved
## Key concepts

## Examples

In the future, we will share samples here.

## 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-accesscontrol/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": "./esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./esm/index.d.ts"
sophiajt marked this conversation as resolved.
Show resolved Hide resolved
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
}
}
}
64 changes: 64 additions & 0 deletions sdk/synapse/synapse-accesscontrol/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"name": "@azure/synapse-accesscontrol",
"author": "Microsoft Corporation",
"description": "A generated SDK for AccessControlClient.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it worth putting better description text here?

"version": "1.0.0-beta.1",
"dependencies": {
"@azure/core-paging": "^1.1.1",
"@azure/core-http": "^1.2.0",
"tslib": "^2.0.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",
"main": "./dist/synapse-accesscontrol.js",
"module": "./esm/index.js",
"types": "./esm/index.d.ts",
"devDependencies": {
"typescript": "~3.9.3",
"rollup": "^1.16.3",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9",
"@microsoft/api-extractor": "7.7.11"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"esm/**/*.js",
"esm/**/*.js.map",
"esm/**/*.d.ts",
"esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"rollup.config.js",
"tsconfig.json"
],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/synapse-accesscontrol.js.map'\" -o ./dist/synapse-accesscontrol.min.js ./dist/synapse-accesscontrol.js",
"prepack": "npm install && npm run build",
"build:test": "echo skip",
"unit-test:browser": "echo skipped",
"unit-test:node": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"extract-api": "api-extractor run --local"
},
"sideEffects": false,
"autoPublish": true
}
163 changes: 163 additions & 0 deletions sdk/synapse/synapse-accesscontrol/review/synapse-accesscontrol.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
## API Report File for "@azure/synapse-accesscontrol"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import * as coreHttp from '@azure/core-http';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

// @public (undocumented)
export class AccessControlClient extends AccessControlClientContext {
constructor(credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, endpoint: string, options?: AccessControlClientOptionalParams);
createRoleAssignment(createRoleAssignmentOptions: RoleAssignmentOptions, options?: coreHttp.OperationOptions): Promise<AccessControlClientCreateRoleAssignmentResponse>;
deleteRoleAssignmentById(roleAssignmentId: string, options?: coreHttp.OperationOptions): Promise<coreHttp.RestResponse>;
getCallerRoleAssignments(options?: coreHttp.OperationOptions): Promise<AccessControlClientGetCallerRoleAssignmentsResponse>;
getRoleAssignmentById(roleAssignmentId: string, options?: coreHttp.OperationOptions): Promise<AccessControlClientGetRoleAssignmentByIdResponse>;
getRoleAssignments(options?: AccessControlClientGetRoleAssignmentsOptionalParams): Promise<AccessControlClientGetRoleAssignmentsResponse>;
getRoleDefinitionById(roleId: string, options?: coreHttp.OperationOptions): Promise<AccessControlClientGetRoleDefinitionByIdResponse>;
listRoleDefinitions(options?: coreHttp.OperationOptions): PagedAsyncIterableIterator<SynapseRole>;
}

// @public (undocumented)
export class AccessControlClientContext extends coreHttp.ServiceClient {
constructor(credentials: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials, endpoint: string, options?: AccessControlClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
endpoint: string;
}

// @public
export type AccessControlClientCreateRoleAssignmentResponse = RoleAssignmentDetails & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: RoleAssignmentDetails;
};
};

// @public
export type AccessControlClientGetCallerRoleAssignmentsResponse = {
body: string[];
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: string[];
};
};

// @public
export type AccessControlClientGetRoleAssignmentByIdResponse = RoleAssignmentDetails & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: RoleAssignmentDetails;
};
};

// @public
export interface AccessControlClientGetRoleAssignmentsHeaders {
xMsContinuation?: string;
}

// @public
export interface AccessControlClientGetRoleAssignmentsOptionalParams extends coreHttp.OperationOptions {
continuationToken?: string;
principalId?: string;
roleId?: string;
}

// @public
export type AccessControlClientGetRoleAssignmentsResponse = AccessControlClientGetRoleAssignmentsHeaders & RoleAssignmentDetails[] & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: RoleAssignmentDetails[];
parsedHeaders: AccessControlClientGetRoleAssignmentsHeaders;
};
};

// @public
export type AccessControlClientGetRoleDefinitionByIdResponse = SynapseRole & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: SynapseRole;
};
};

// @public
export type AccessControlClientGetRoleDefinitionsNextResponse = RolesListResponse & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: RolesListResponse;
};
};

// @public
export type AccessControlClientGetRoleDefinitionsResponse = RolesListResponse & {
_response: coreHttp.HttpResponse & {
bodyAsText: string;
parsedBody: RolesListResponse;
};
};

// @public
export interface AccessControlClientOptionalParams extends coreHttp.ServiceClientOptions {
apiVersion?: string;
endpoint?: string;
}

// @public
export interface ErrorContract {
error?: ErrorResponse;
}

// @public (undocumented)
export interface ErrorDetail {
// (undocumented)
code: string;
// (undocumented)
message: string;
// (undocumented)
target?: string;
}

// @public (undocumented)
export interface ErrorResponse {
// (undocumented)
code: string;
// (undocumented)
details?: ErrorDetail[];
// (undocumented)
message: string;
// (undocumented)
target?: string;
}

// @public
export interface RoleAssignmentDetails {
id?: string;
principalId?: string;
roleId?: string;
}

// @public
export interface RoleAssignmentOptions {
principalId: string;
roleId: string;
}

// @public
export interface RolesListResponse {
nextLink?: string;
value: SynapseRole[];
}

// @public
export interface SynapseRole {
id?: string;
isBuiltIn: boolean;
name?: string;
}


// (No @packageDocumentation comment for this package)

```
Loading