Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 82 additions & 81 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

33 changes: 20 additions & 13 deletions sdk/videoanalyzer/arm-videoanalyzer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
## Release History

### 1.0.0-beta.2 (Unreleased)

#### Features Added

#### Breaking Changes

#### Bugs Fixed

#### Other Changes

### 1.0.0-beta.1 (2021-10-27)
# Release History

## 1.0.0-beta.2 (2021-12-14)

**Features**

- Added Interface VideoAnalyzerManagementClientOptionalParams
- Added Class VideoAnalyzerManagementClient
- Added Type Alias VideoAnalyzer
- Add parameters of VideoAnalyzer to TypeAlias VideoAnalyzersUpdateResponse

**Breaking Changes**

- Operation VideoAnalyzers.beginCreateOrUpdate has a new signature
- Operation VideoAnalyzers.beginCreateOrUpdateAndWait has a new signature
- Deleted Class VideoAnalyzer
- Deleted Class VideoAnalyzerContext
- Delete parameters of VideoAnalyzer_2 in TypeAlias VideoAnalyzersUpdateResponse

## 1.0.0-beta.1 (2021-10-27)

This is the first preview for the new version of the `@azure/arm-videoanalyzer` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.

Expand Down
26 changes: 15 additions & 11 deletions sdk/videoanalyzer/arm-videoanalyzer/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Service client library for JavaScript
# Azure VideoAnalyzerManagement client library for JavaScript

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

Azure Video Analyzer provides a platform for you to build intelligent video applications that span the edge and the cloud

Expand All @@ -22,16 +22,16 @@ Azure Video Analyzer provides a platform for you to build intelligent video appl

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

Install the Azure Service client library for JavaScript with `npm`:
Install the Azure VideoAnalyzerManagement client library for JavaScript with `npm`:

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

### Create and authenticate a `VideoAnalyzer`
### Create and authenticate a `VideoAnalyzerManagementClient`

To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure VideoAnalyzerManagement API, you will need the `endpoint` of your Azure VideoAnalyzerManagement resource and a `credential`. The Azure VideoAnalyzerManagement client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure VideoAnalyzerManagement 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 @@ -41,23 +41,27 @@ 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 Service** 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 VideoAnalyzerManagement** 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 { VideoAnalyzer } = require("@azure/arm-videoanalyzer");
const { VideoAnalyzerManagementClient } = require("@azure/arm-videoanalyzer");
const { DefaultAzureCredential } = require("@azure/identity");
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new VideoAnalyzer(new DefaultAzureCredential(), subscriptionId);
const client = new VideoAnalyzerManagementClient(new DefaultAzureCredential(), subscriptionId);
```


### JavaScript Bundle
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).

## Key concepts

### VideoAnalyzer
### VideoAnalyzerManagementClient

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

## Troubleshooting

Expand Down
6 changes: 3 additions & 3 deletions sdk/videoanalyzer/arm-videoanalyzer/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "f6a8a2ef54e892943b8c32358b2d731e01441d00",
"commit": "09657a35cb2887c341297b4068247da3aed96704",
"readme": "specification/videoanalyzer/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/videoanalyzer/resource-manager/readme.md --use=@autorest/[email protected]beta.13",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/videoanalyzer/resource-manager/readme.md --use=@autorest/[email protected]alpha.16.20211130.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]beta.13"
"use": "@autorest/[email protected]alpha.16.20211130.1"
}
28 changes: 9 additions & 19 deletions sdk/videoanalyzer/arm-videoanalyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,19 @@
"name": "@azure/arm-videoanalyzer",
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for VideoAnalyzer.",
"description": "A generated SDK for VideoAnalyzerManagementClient.",
"version": "1.0.0-beta.2",
"engines": {
"node": ">=12.0.0"
},
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.1.1",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -38,6 +30,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"mocha": "^7.1.1",
Expand All @@ -48,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand All @@ -70,14 +61,14 @@
"types/*"
],
"scripts": {
"build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand All @@ -86,14 +77,13 @@
"execute:samples": "echo skipped",
"format": "echo skipped",
"test": "npm run integration-test",
"prebuild": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1246,12 +1246,45 @@ export type UsernamePasswordCredentials = CredentialsBase & {
password: string;
};

// @public
export type VideoAnalyzer = TrackedResource & {
identity?: VideoAnalyzerIdentity;
storageAccounts?: StorageAccount[];
readonly endpoints?: Endpoint[];
encryption?: AccountEncryption;
iotHubs?: IotHub[];
publicNetworkAccess?: PublicNetworkAccess;
networkAccessControl?: NetworkAccessControl;
readonly provisioningState?: ProvisioningState;
readonly privateEndpointConnections?: PrivateEndpointConnection[];
};

// @public
export interface VideoAnalyzerCollection {
value?: VideoAnalyzer[];
}

// @public
export type VideoAnalyzerEndpointType = string;

// @public
export interface VideoAnalyzerIdentity {
type: string;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedManagedIdentity;
};
}

// @public (undocumented)
export class VideoAnalyzer extends VideoAnalyzerContext {
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VideoAnalyzerOptionalParams);
export class VideoAnalyzerManagementClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VideoAnalyzerManagementClientOptionalParams);
// (undocumented)
accessPolicies: AccessPolicies;
// (undocumented)
apiVersion: string;
// (undocumented)
edgeModules: EdgeModules;
// (undocumented)
livePipelineOperationStatuses: LivePipelineOperationStatuses;
Expand All @@ -1276,6 +1309,8 @@ export class VideoAnalyzer extends VideoAnalyzerContext {
// (undocumented)
privateLinkResources: PrivateLinkResources;
// (undocumented)
subscriptionId: string;
// (undocumented)
videoAnalyzerOperationResults: VideoAnalyzerOperationResults;
// (undocumented)
videoAnalyzerOperationStatuses: VideoAnalyzerOperationStatuses;
Expand All @@ -1286,31 +1321,10 @@ export class VideoAnalyzer extends VideoAnalyzerContext {
}

// @public
export interface VideoAnalyzerCollection {
// Warning: (ae-forgotten-export) The symbol "VideoAnalyzer" needs to be exported by the entry point index.d.ts
value?: VideoAnalyzer_2[];
}

// @public (undocumented)
export class VideoAnalyzerContext extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: VideoAnalyzerOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
subscriptionId: string;
}

// @public
export type VideoAnalyzerEndpointType = string;

// @public
export interface VideoAnalyzerIdentity {
type: string;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedManagedIdentity;
};
export interface VideoAnalyzerManagementClientOptionalParams extends coreClient.ServiceClientOptions {
$host?: string;
apiVersion?: string;
endpoint?: string;
}

// @public
Expand All @@ -1323,7 +1337,7 @@ export interface VideoAnalyzerOperationResultsGetOptionalParams extends coreClie
}

// @public
export type VideoAnalyzerOperationResultsGetResponse = VideoAnalyzer_2;
export type VideoAnalyzerOperationResultsGetResponse = VideoAnalyzer;

// @public
export interface VideoAnalyzerOperationStatus {
Expand All @@ -1347,13 +1361,6 @@ export interface VideoAnalyzerOperationStatusesGetOptionalParams extends coreCli
// @public
export type VideoAnalyzerOperationStatusesGetResponse = VideoAnalyzerOperationStatus;

// @public
export interface VideoAnalyzerOptionalParams extends coreClient.ServiceClientOptions {
$host?: string;
apiVersion?: string;
endpoint?: string;
}

// @public
export interface VideoAnalyzerPrivateEndpointConnectionOperationStatus {
endTime?: string;
Expand All @@ -1366,8 +1373,8 @@ export interface VideoAnalyzerPrivateEndpointConnectionOperationStatus {

// @public
export interface VideoAnalyzers {
beginCreateOrUpdate(resourceGroupName: string, accountName: string, parameters: VideoAnalyzer_2, options?: VideoAnalyzersCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VideoAnalyzersCreateOrUpdateResponse>, VideoAnalyzersCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, parameters: VideoAnalyzer_2, options?: VideoAnalyzersCreateOrUpdateOptionalParams): Promise<VideoAnalyzersCreateOrUpdateResponse>;
beginCreateOrUpdate(resourceGroupName: string, accountName: string, parameters: VideoAnalyzer, options?: VideoAnalyzersCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VideoAnalyzersCreateOrUpdateResponse>, VideoAnalyzersCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, parameters: VideoAnalyzer, options?: VideoAnalyzersCreateOrUpdateOptionalParams): Promise<VideoAnalyzersCreateOrUpdateResponse>;
beginUpdate(resourceGroupName: string, accountName: string, parameters: VideoAnalyzerUpdate, options?: VideoAnalyzersUpdateOptionalParams): Promise<PollerLike<PollOperationState<VideoAnalyzersUpdateResponse>, VideoAnalyzersUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, accountName: string, parameters: VideoAnalyzerUpdate, options?: VideoAnalyzersUpdateOptionalParams): Promise<VideoAnalyzersUpdateResponse>;
delete(resourceGroupName: string, accountName: string, options?: VideoAnalyzersDeleteOptionalParams): Promise<void>;
Expand All @@ -1390,7 +1397,7 @@ export interface VideoAnalyzersCreateOrUpdateOptionalParams extends coreClient.O
}

// @public
export type VideoAnalyzersCreateOrUpdateResponse = VideoAnalyzer_2;
export type VideoAnalyzersCreateOrUpdateResponse = VideoAnalyzer;

// @public
export interface VideoAnalyzersDeleteOptionalParams extends coreClient.OperationOptions {
Expand All @@ -1401,7 +1408,7 @@ export interface VideoAnalyzersGetOptionalParams extends coreClient.OperationOpt
}

// @public
export type VideoAnalyzersGetResponse = VideoAnalyzer_2;
export type VideoAnalyzersGetResponse = VideoAnalyzer;

// @public
export interface VideoAnalyzersListBySubscriptionOptionalParams extends coreClient.OperationOptions {
Expand Down Expand Up @@ -1431,7 +1438,7 @@ export interface VideoAnalyzersUpdateOptionalParams extends coreClient.Operation
}

// @public
export type VideoAnalyzersUpdateResponse = VideoAnalyzersUpdateHeaders & VideoAnalyzer_2;
export type VideoAnalyzersUpdateResponse = VideoAnalyzersUpdateHeaders & VideoAnalyzer;

// @public
export interface VideoAnalyzerUpdate {
Expand Down Expand Up @@ -1626,7 +1633,6 @@ export type VideosUpdateResponse = VideoEntity;
// @public
export type VideoType = string;


// (No @packageDocumentation comment for this package)

```
3 changes: 1 addition & 2 deletions sdk/videoanalyzer/arm-videoanalyzer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@

/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { VideoAnalyzer } from "./videoAnalyzer";
export { VideoAnalyzerContext } from "./videoAnalyzerContext";
export { VideoAnalyzerManagementClient } from "./videoAnalyzerManagementClient";
export * from "./operationsInterfaces";
Loading