Skip to content

Commit b7641f3

Browse files
author
SDKAuto
committed
CodeGen from PR 16317 in Azure/azure-rest-api-specs
Merge 792b4c2a5db2857bb9ba1f1b78a1eb55e774fc99 into 49526d1a30dc4ba2f77e172c54c4ef7d8f53a8d1
1 parent bedb5a1 commit b7641f3

40 files changed

+5266
-3189
lines changed

sdk/containerregistry/arm-containerregistry/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/containerregistry/arm-containerregistry/README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure ContainerRegistryManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ContainerRegistryManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for ContainerRegistryManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-containerregistry @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
41-
#### nodejs - Authentication, client creation, and get exportPipelines as an example written in JavaScript.
39+
#### nodejs - Authentication, client creation, and get connectedRegistries as an example written in JavaScript.
4240

4341
##### Sample code
4442

@@ -53,8 +51,8 @@ const creds = new DefaultAzureCredential();
5351
const client = new ContainerRegistryManagementClient(creds, subscriptionId);
5452
const resourceGroupName = "testresourceGroupName";
5553
const registryName = "testregistryName";
56-
const exportPipelineName = "testexportPipelineName";
57-
client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => {
54+
const connectedRegistryName = "testconnectedRegistryName";
55+
client.connectedRegistries.get(resourceGroupName, registryName, connectedRegistryName).then((result) => {
5856
console.log("The result is:");
5957
console.log(result);
6058
}).catch((err) => {
@@ -63,7 +61,7 @@ client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).
6361
});
6462
```
6563

66-
#### browser - Authentication, client creation, and get exportPipelines as an example written in JavaScript.
64+
#### browser - Authentication, client creation, and get connectedRegistries as an example written in JavaScript.
6765

6866
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
6967
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
@@ -88,13 +86,13 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8886
const credential = new InteractiveBrowserCredential(
8987
{
9088
clientId: "<client id for your Azure AD app>",
91-
tenantId: "<optional tenant for your organization>"
89+
tenant: "<optional tenant for your organization>"
9290
});
9391
const client = new Azure.ArmContainerregistry.ContainerRegistryManagementClient(creds, subscriptionId);
9492
const resourceGroupName = "testresourceGroupName";
9593
const registryName = "testregistryName";
96-
const exportPipelineName = "testexportPipelineName";
97-
client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => {
94+
const connectedRegistryName = "testconnectedRegistryName";
95+
client.connectedRegistries.get(resourceGroupName, registryName, connectedRegistryName).then((result) => {
9896
console.log("The result is:");
9997
console.log(result);
10098
}).catch((err) => {

sdk/containerregistry/arm-containerregistry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/containerregistry/arm-containerregistry",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerregistry/arm-containerregistry",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/containerregistry/arm-containerregistry/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -18,20 +17,21 @@ import { ContainerRegistryManagementClientContext } from "./containerRegistryMan
1817

1918
class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext {
2019
// Operation groups
20+
connectedRegistries: operations.ConnectedRegistries;
2121
exportPipelines: operations.ExportPipelines;
2222
registries: operations.Registries;
2323
importPipelines: operations.ImportPipelines;
2424
operations: operations.Operations;
2525
pipelineRuns: operations.PipelineRuns;
2626
privateEndpointConnections: operations.PrivateEndpointConnections;
2727
replications: operations.Replications;
28+
scopeMaps: operations.ScopeMaps;
29+
tokens: operations.Tokens;
2830
webhooks: operations.Webhooks;
2931
agentPools: operations.AgentPools;
3032
runs: operations.Runs;
3133
taskRuns: operations.TaskRuns;
3234
tasks: operations.Tasks;
33-
scopeMaps: operations.ScopeMaps;
34-
tokens: operations.Tokens;
3535

3636
/**
3737
* Initializes a new instance of the ContainerRegistryManagementClient class.
@@ -46,20 +46,21 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien
4646
*/
4747
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.ContainerRegistryManagementClientOptions) {
4848
super(credentials, subscriptionId, options);
49+
this.connectedRegistries = new operations.ConnectedRegistries(this);
4950
this.exportPipelines = new operations.ExportPipelines(this);
5051
this.registries = new operations.Registries(this);
5152
this.importPipelines = new operations.ImportPipelines(this);
5253
this.operations = new operations.Operations(this);
5354
this.pipelineRuns = new operations.PipelineRuns(this);
5455
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
5556
this.replications = new operations.Replications(this);
57+
this.scopeMaps = new operations.ScopeMaps(this);
58+
this.tokens = new operations.Tokens(this);
5659
this.webhooks = new operations.Webhooks(this);
5760
this.agentPools = new operations.AgentPools(this);
5861
this.runs = new operations.Runs(this);
5962
this.taskRuns = new operations.TaskRuns(this);
6063
this.tasks = new operations.Tasks(this);
61-
this.scopeMaps = new operations.ScopeMaps(this);
62-
this.tokens = new operations.Tokens(this);
6364
}
6465
}
6566

sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClientContext.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -10,8 +9,8 @@
109

1110
import * as Models from "./models";
1211
import * as msRest from "@azure/ms-rest-js";
13-
import { TokenCredential } from "@azure/core-auth";
1412
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1514

1615
const packageName = "@azure/arm-containerregistry";
1716
const packageVersion = "8.1.1";

sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
1010
discriminators,
11-
ActiveDirectoryObject,
11+
ActivationProperties,
1212
AgentPool,
1313
AgentPoolListResult,
1414
AgentPoolQueueStatus,
@@ -19,6 +19,7 @@ export {
1919
BaseImageDependency,
2020
BaseImageTrigger,
2121
BaseResource,
22+
ConnectedRegistry,
2223
Credentials,
2324
CustomRegistryCredentials,
2425
DockerBuildRequest,
@@ -30,6 +31,7 @@ export {
3031
ErrorResponseBody,
3132
ExportPipeline,
3233
ExportPipelineTargetProperties,
34+
ExportPolicy,
3335
FileTaskRunRequest,
3436
FileTaskStep,
3537
IdentityProperties,
@@ -40,8 +42,11 @@ export {
4042
InnerErrorDescription,
4143
IPRule,
4244
KeyVaultProperties,
45+
LoggingProperties,
46+
LoginServerProperties,
4347
NetworkRuleSet,
4448
OverrideTaskStepProperties,
49+
ParentProperties,
4550
PipelineRun,
4651
PipelineRunRequest,
4752
PipelineRunResponse,
@@ -74,13 +79,17 @@ export {
7479
SourceTrigger,
7580
SourceTriggerDescriptor,
7681
Status,
77-
StorageAccountProperties,
82+
StatusDetailProperties,
83+
SyncProperties,
84+
SystemData,
7885
Task,
7986
TaskRun,
8087
TaskRunRequest,
8188
TaskStepProperties,
8289
TimerTrigger,
8390
TimerTriggerDescriptor,
91+
TlsCertificateProperties,
92+
TlsProperties,
8493
Token,
8594
TokenCertificate,
8695
TokenCredentialsProperties,
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
4+
*
5+
* Code generated by Microsoft (R) AutoRest Code Generator.
6+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
*/
8+
9+
export {
10+
discriminators,
11+
ActivationProperties,
12+
AgentPool,
13+
AgentProperties,
14+
Argument,
15+
AuthInfo,
16+
BaseImageDependency,
17+
BaseImageTrigger,
18+
BaseResource,
19+
ConnectedRegistry,
20+
ConnectedRegistryListResult,
21+
ConnectedRegistryUpdateParameters,
22+
Credentials,
23+
CustomRegistryCredentials,
24+
DockerBuildRequest,
25+
DockerBuildStep,
26+
EncodedTaskRunRequest,
27+
EncodedTaskStep,
28+
EncryptionProperty,
29+
ErrorResponse,
30+
ErrorResponseBody,
31+
ExportPipeline,
32+
ExportPipelineTargetProperties,
33+
ExportPolicy,
34+
FileTaskRunRequest,
35+
FileTaskStep,
36+
IdentityProperties,
37+
ImageDescriptor,
38+
ImageUpdateTrigger,
39+
ImportPipeline,
40+
ImportPipelineSourceProperties,
41+
InnerErrorDescription,
42+
IPRule,
43+
KeyVaultProperties,
44+
LoggingProperties,
45+
LoginServerProperties,
46+
NetworkRuleSet,
47+
OverrideTaskStepProperties,
48+
ParentProperties,
49+
PipelineRun,
50+
PipelineRunRequest,
51+
PipelineRunResponse,
52+
PipelineRunSourceProperties,
53+
PipelineRunTargetProperties,
54+
PipelineSourceTriggerDescriptor,
55+
PipelineSourceTriggerProperties,
56+
PipelineTriggerDescriptor,
57+
PipelineTriggerProperties,
58+
PlatformProperties,
59+
Policies,
60+
PrivateEndpoint,
61+
PrivateEndpointConnection,
62+
PrivateLinkServiceConnectionState,
63+
ProgressProperties,
64+
ProxyResource,
65+
QuarantinePolicy,
66+
Registry,
67+
Replication,
68+
Resource,
69+
RetentionPolicy,
70+
Run,
71+
RunRequest,
72+
ScopeMap,
73+
SecretObject,
74+
SetValue,
75+
Sku,
76+
SourceProperties,
77+
SourceRegistryCredentials,
78+
SourceTrigger,
79+
SourceTriggerDescriptor,
80+
Status,
81+
StatusDetailProperties,
82+
SyncProperties,
83+
SyncUpdateProperties,
84+
SystemData,
85+
Task,
86+
TaskRun,
87+
TaskRunRequest,
88+
TaskStepProperties,
89+
TimerTrigger,
90+
TimerTriggerDescriptor,
91+
TlsCertificateProperties,
92+
TlsProperties,
93+
Token,
94+
TokenCertificate,
95+
TokenCredentialsProperties,
96+
TokenPassword,
97+
TriggerProperties,
98+
TrustPolicy,
99+
UserIdentityProperties,
100+
VirtualNetworkRule,
101+
Webhook
102+
} from "../models/mappers";

0 commit comments

Comments
 (0)