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
2 changes: 1 addition & 1 deletion sdk/containerregistry/arm-containerregistry/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
7 changes: 3 additions & 4 deletions sdk/containerregistry/arm-containerregistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { ContainerRegistryManagementClient } from "@azure/arm-containerregistry";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new ContainerRegistryManagementClient(credential, 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
Expand Down Expand Up @@ -107,6 +105,7 @@ 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)


[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-containerregistry.d.ts"
"publicTrimmedFilePath": "./types/arm-containerregistry.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
137 changes: 50 additions & 87 deletions sdk/containerregistry/arm-containerregistry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ContainerRegistryManagementClient.",
"version": "11.0.0-beta.4",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^2.1.2",
"@azure/core-auth": "^1.9.0",
"@azure/core-client": "^1.9.2",
"@azure/core-lro": "^2.5.4",
"@azure/core-paging": "^1.6.2",
"@azure/core-rest-pipeline": "^1.19.0",
"tslib": "^2.8.1"
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
Expand All @@ -24,23 +24,24 @@
"isomorphic"
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/commonjs/index.d.ts",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
"types": "./types/arm-containerregistry.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"typescript": "~5.8.2",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.6.0",
"@azure/identity": "^4.2.1",
"@azure/logger": "^1.1.4",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^11.0.2",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.9",
"@vitest/coverage-istanbul": "^3.0.9",
"dotenv": "^16.0.0",
"playwright": "^1.50.1",
"typescript": "~5.6.2",
"vitest": "^3.0.9"
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand All @@ -50,36 +51,46 @@
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/",
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
"dist-esm/**/*.js",
"dist-esm/**/*.js.map",
"dist-esm/**/*.d.ts",
"dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
"LICENSE",
"review/",
"CHANGELOG.md"
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types/*"
],
"scripts": {
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
"build:browser": "echo skipped",
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
"minify": "dev-tool run vendored 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": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
"build:browser": "echo skipped",
"build:test": "echo skipped",
"build:samples": "echo skipped.",
"check-format": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "dev-tool run extract-api",
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:vitest --esm",
"lint": "echo skipped",
"minify": "echo skipped",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",
"test:browser": "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": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run test:vitest",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"update-snippets": "dev-tool run update-snippets"
},
"sideEffects": false,
Expand All @@ -92,53 +103,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-containerregistry?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
},
"dialects": [
"esm",
"commonjs"
],
"esmDialects": [
"browser",
"react-native"
],
"selfLink": false
},
"browser": "./dist/browser/index.js",
"react-native": "./dist/react-native/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"browser": {
"types": "./dist/browser/index.d.ts",
"default": "./dist/browser/index.js"
},
"react-native": {
"types": "./dist/react-native/index.d.ts",
"default": "./dist/react-native/index.js"
},
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/commonjs/index.d.ts",
"default": "./dist/commonjs/index.js"
}
}
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/arm-containerregistry"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
import {
ArchivesImpl,
ArchiveVersionsImpl,
CacheRulesImpl,
ConnectedRegistriesImpl,
CredentialSetsImpl,
ExportPipelinesImpl,
RegistriesImpl,
ImportPipelinesImpl,
OperationsImpl,
PipelineRunsImpl,
PrivateEndpointConnectionsImpl,
ReplicationsImpl,
ScopeMapsImpl,
Expand All @@ -29,18 +24,13 @@ import {
RunsImpl,
TaskRunsImpl,
TasksImpl,
} from "./operations/index.js";
} from "./operations";
import {
Archives,
ArchiveVersions,
CacheRules,
ConnectedRegistries,
CredentialSets,
ExportPipelines,
Registries,
ImportPipelines,
Operations,
PipelineRuns,
PrivateEndpointConnections,
Replications,
ScopeMaps,
Expand All @@ -50,8 +40,8 @@ import {
Runs,
TaskRuns,
Tasks,
} from "./operationsInterfaces/index.js";
import { ContainerRegistryManagementClientOptionalParams } from "./models/index.js";
} from "./operationsInterfaces";
import { ContainerRegistryManagementClientOptionalParams } from "./models";

export class ContainerRegistryManagementClient extends coreClient.ServiceClient {
$host: string;
Expand Down Expand Up @@ -84,7 +74,7 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
credential: credentials,
};

const packageDetails = `azsdk-js-arm-containerregistry/11.0.0-beta.4`;
const packageDetails = `azsdk-js-arm-containerregistry/1.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -138,16 +128,11 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.archives = new ArchivesImpl(this);
this.archiveVersions = new ArchiveVersionsImpl(this);
this.cacheRules = new CacheRulesImpl(this);
this.connectedRegistries = new ConnectedRegistriesImpl(this);
this.credentialSets = new CredentialSetsImpl(this);
this.exportPipelines = new ExportPipelinesImpl(this);
this.registries = new RegistriesImpl(this);
this.importPipelines = new ImportPipelinesImpl(this);
this.operations = new OperationsImpl(this);
this.pipelineRuns = new PipelineRunsImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
this.replications = new ReplicationsImpl(this);
this.scopeMaps = new ScopeMapsImpl(this);
Expand All @@ -159,16 +144,11 @@ export class ContainerRegistryManagementClient extends coreClient.ServiceClient
this.tasks = new TasksImpl(this);
}

archives: Archives;
archiveVersions: ArchiveVersions;
cacheRules: CacheRules;
connectedRegistries: ConnectedRegistries;
credentialSets: CredentialSets;
exportPipelines: ExportPipelines;
registries: Registries;
importPipelines: ImportPipelines;
operations: Operations;
pipelineRuns: PipelineRuns;
privateEndpointConnections: PrivateEndpointConnections;
replications: Replications;
scopeMaps: ScopeMaps;
Expand Down
8 changes: 4 additions & 4 deletions sdk/containerregistry/arm-containerregistry/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper.js";
export * from "./models/index.js";
export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient.js";
export * from "./operationsInterfaces/index.js";
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { ContainerRegistryManagementClient } from "./containerRegistryManagementClient";
export * from "./operationsInterfaces";
Loading