Skip to content

Commit

Permalink
Generated from faa333905c0d379511f601148294b83a8077d246
Browse files Browse the repository at this point in the history
Update descriptions
  • Loading branch information
SDK Automation committed May 9, 2020
1 parent ab15890 commit 3771546
Show file tree
Hide file tree
Showing 32 changed files with 6,470 additions and 475 deletions.
2 changes: 1 addition & 1 deletion sdk/containerregistry/arm-containerregistry/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 9 additions & 6 deletions sdk/containerregistry/arm-containerregistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ npm install @azure/arm-containerregistry

### How to use

#### nodejs - Authentication, client creation and get registries as an example written in TypeScript.
#### nodejs - Authentication, client creation and get exportPipelines as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
npm install @azure/ms-rest-nodeauth
npm install @azure/ms-rest-nodeauth@"^3.0.0"
```

##### Sample code
Expand All @@ -36,7 +37,8 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new ContainerRegistryManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const registryName = "testregistryName";
client.registries.get(resourceGroupName, registryName).then((result) => {
const exportPipelineName = "testexportPipelineName";
client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -45,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and get registries as an example written in JavaScript.
#### browser - Authentication, client creation and get exportPipelines as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

Expand Down Expand Up @@ -81,7 +83,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
const client = new Azure.ArmContainerregistry.ContainerRegistryManagementClient(res.creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const registryName = "testregistryName";
client.registries.get(resourceGroupName, registryName).then((result) => {
const exportPipelineName = "testexportPipelineName";
client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand All @@ -99,4 +102,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to

- [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%2Fcontainerregistry%2Farm-containerregistry%2FREADME.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/containerregistry/arm-containerregistry/README.png)
14 changes: 7 additions & 7 deletions sdk/containerregistry/arm-containerregistry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.",
"version": "7.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^1.3.2",
"@azure/ms-rest-js": "^1.8.1",
"tslib": "^1.9.3"
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
"tslib": "^1.10.0"
},
"keywords": [
"node",
Expand All @@ -20,11 +20,11 @@
"module": "./esm/containerRegistryManagementClient.js",
"types": "./esm/containerRegistryManagementClient.d.ts",
"devDependencies": {
"typescript": "^3.1.1",
"rollup": "^0.66.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "^3.5.3",
"rollup": "^1.18.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.4.9"
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerregistry/arm-containerregistry",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const config = {
*/`
},
plugins: [
nodeResolve({ module: true }),
nodeResolve({ mainFields: ['module', 'main'] }),
sourcemaps()
]
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@ import { ContainerRegistryManagementClientContext } from "./containerRegistryMan

class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext {
// Operation groups
exportPipelines: operations.ExportPipelines;
registries: operations.Registries;
importPipelines: operations.ImportPipelines;
operations: operations.Operations;
pipelineRuns: operations.PipelineRuns;
privateEndpointConnections: operations.PrivateEndpointConnections;
replications: operations.Replications;
webhooks: operations.Webhooks;
agentPools: operations.AgentPools;
runs: operations.Runs;
taskRuns: operations.TaskRuns;
tasks: operations.Tasks;
scopeMaps: operations.ScopeMaps;
tokens: operations.Tokens;
Expand All @@ -34,11 +40,17 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerRegistryManagementClientOptions) {
super(credentials, subscriptionId, options);
this.exportPipelines = new operations.ExportPipelines(this);
this.registries = new operations.Registries(this);
this.importPipelines = new operations.ImportPipelines(this);
this.operations = new operations.Operations(this);
this.pipelineRuns = new operations.PipelineRuns(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.replications = new operations.Replications(this);
this.webhooks = new operations.Webhooks(this);
this.agentPools = new operations.AgentPools(this);
this.runs = new operations.Runs(this);
this.taskRuns = new operations.TaskRuns(this);
this.tasks = new operations.Tasks(this);
this.scopeMaps = new operations.ScopeMaps(this);
this.tokens = new operations.Tokens(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
ActiveDirectoryObject,
AgentPool,
AgentPoolListResult,
AgentPoolQueueStatus,
AgentPoolUpdateParameters,
AgentProperties,
Argument,
AuthInfo,
BaseImageDependency,
BaseImageTrigger,
BaseResource,
Credentials,
CustomRegistryCredentials,
DockerBuildRequest,
DockerBuildStep,
EncodedTaskRunRequest,
EncodedTaskStep,
EncryptionProperty,
ErrorResponse,
ErrorResponseBody,
ExportPipeline,
ExportPipelineTargetProperties,
FileTaskRunRequest,
FileTaskStep,
IdentityProperties,
ImageDescriptor,
ImageUpdateTrigger,
ImportPipeline,
ImportPipelineSourceProperties,
InnerErrorDescription,
IPRule,
KeyVaultProperties,
NetworkRuleSet,
OverrideTaskStepProperties,
PipelineRun,
PipelineRunRequest,
PipelineRunResponse,
PipelineRunSourceProperties,
PipelineRunTargetProperties,
PipelineSourceTriggerDescriptor,
PipelineSourceTriggerProperties,
PipelineTriggerDescriptor,
PipelineTriggerProperties,
PlatformProperties,
Policies,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
ProgressProperties,
ProxyResource,
QuarantinePolicy,
Registry,
Replication,
Resource,
RetentionPolicy,
Run,
RunRequest,
ScopeMap,
SecretObject,
SetValue,
Sku,
SourceProperties,
SourceRegistryCredentials,
SourceTrigger,
SourceTriggerDescriptor,
Status,
StorageAccountProperties,
Task,
TaskRun,
TaskRunRequest,
TaskStepProperties,
TimerTrigger,
TimerTriggerDescriptor,
Token,
TokenCertificate,
TokenCredentialsProperties,
TokenPassword,
TriggerProperties,
TrustPolicy,
UserIdentityProperties,
VirtualNetworkRule,
Webhook
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
discriminators,
ActiveDirectoryObject,
AgentPool,
AgentProperties,
Argument,
AuthInfo,
BaseImageDependency,
BaseImageTrigger,
BaseResource,
CloudError,
Credentials,
CustomRegistryCredentials,
DockerBuildRequest,
DockerBuildStep,
EncodedTaskRunRequest,
EncodedTaskStep,
EncryptionProperty,
ExportPipeline,
ExportPipelineListResult,
ExportPipelineTargetProperties,
FileTaskRunRequest,
FileTaskStep,
IdentityProperties,
ImageDescriptor,
ImageUpdateTrigger,
ImportPipeline,
ImportPipelineSourceProperties,
IPRule,
KeyVaultProperties,
NetworkRuleSet,
OverrideTaskStepProperties,
PipelineRun,
PipelineRunRequest,
PipelineRunResponse,
PipelineRunSourceProperties,
PipelineRunTargetProperties,
PipelineSourceTriggerDescriptor,
PipelineSourceTriggerProperties,
PipelineTriggerDescriptor,
PipelineTriggerProperties,
PlatformProperties,
Policies,
PrivateEndpoint,
PrivateEndpointConnection,
PrivateLinkServiceConnectionState,
ProgressProperties,
ProxyResource,
QuarantinePolicy,
Registry,
Replication,
Resource,
RetentionPolicy,
Run,
RunRequest,
ScopeMap,
SecretObject,
SetValue,
Sku,
SourceProperties,
SourceRegistryCredentials,
SourceTrigger,
SourceTriggerDescriptor,
Status,
StorageAccountProperties,
Task,
TaskRun,
TaskRunRequest,
TaskStepProperties,
TimerTrigger,
TimerTriggerDescriptor,
Token,
TokenCertificate,
TokenCredentialsProperties,
TokenPassword,
TriggerProperties,
TrustPolicy,
UserIdentityProperties,
VirtualNetworkRule,
Webhook
} from "../models/mappers";
Loading

0 comments on commit 3771546

Please sign in to comment.