Skip to content
Open
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
9 changes: 4 additions & 5 deletions sdk/containerregistry/arm-containerregistry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-containerregistry

### How to use

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

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

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ContainerRegistryManagementClient, ContainerRegistryManagementModels, ContainerRegistryManagementMappers } from "@azure/arm-containerregistry";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ContainerRegistryManagementClient } = require("@azure/arm-containerregistry");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
83 changes: 78 additions & 5 deletions sdk/containerregistry/arm-containerregistry/src/models/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down Expand Up @@ -97,6 +97,10 @@ export interface ProxyResource extends BaseResource {
* An object that represents an export pipeline for a container registry.
*/
export interface ExportPipeline extends ProxyResource {
/**
* The location of the export pipeline.
*/
location?: string;
/**
* The identity of the export pipeline.
*/
Expand Down Expand Up @@ -227,6 +231,10 @@ export interface PipelineTriggerProperties {
* An object that represents an import pipeline for a container registry.
*/
export interface ImportPipeline extends ProxyResource {
/**
* The location of the import pipeline.
*/
location?: string;
/**
* The identity of the import pipeline.
*/
Expand Down Expand Up @@ -1456,6 +1464,10 @@ export interface RunRequest {
* The dedicated agent pool for the run.
*/
agentPoolName?: string;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
}

/**
Expand Down Expand Up @@ -1658,6 +1670,11 @@ export interface Run extends ProxyResource {
* The update trigger token passed for the Run.
*/
updateTriggerToken?: string;
/**
* The image description for the log artifact.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly logArtifact?: ImageDescriptor;
/**
* The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting',
* 'Succeeded', 'Failed', 'Canceled'
Expand Down Expand Up @@ -1746,13 +1763,17 @@ export interface RunGetLogResult {
* The link to logs for a run on a azure container registry.
*/
logLink?: string;
/**
* The link to logs in registry for a run on a azure container registry.
*/
logArtifactLink?: string;
}

/**
* The task run that has the ARM resource and properties.
* The task run will have the information of request and result of a run.
*/
export interface TaskRun extends Resource {
export interface TaskRun extends ProxyResource {
/**
* Identity for the resource.
*/
Expand All @@ -1776,6 +1797,10 @@ export interface TaskRun extends Resource {
* How the run should be forced to rerun even if the run request configuration has not changed
*/
forceUpdateTag?: string;
/**
* The location of the resource
*/
location?: string;
}

/**
Expand All @@ -1794,6 +1819,10 @@ export interface TaskRunUpdateParameters {
* How the run should be forced to rerun even if the run request configuration has not changed
*/
forceUpdateTag?: string;
/**
* The location of the resource
*/
location?: string;
/**
* The ARM resource tags.
*/
Expand Down Expand Up @@ -2091,7 +2120,7 @@ export interface Task extends Resource {
/**
* The platform properties against which the run has to happen.
*/
platform: PlatformProperties;
platform?: PlatformProperties;
/**
* The machine configuration of the run agent.
*/
Expand All @@ -2107,7 +2136,7 @@ export interface Task extends Resource {
/**
* The properties of a task step.
*/
step: TaskStepPropertiesUnion;
step?: TaskStepPropertiesUnion;
/**
* The properties that describe all triggers for the task.
*/
Expand All @@ -2116,6 +2145,15 @@ export interface Task extends Resource {
* The properties that describes a set of credentials that will be used when this run is invoked.
*/
credentials?: Credentials;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* The value of this property indicates whether the task resource is system task or not. Default
* value: false.
*/
isSystemTask?: boolean;
}

/**
Expand Down Expand Up @@ -2339,6 +2377,10 @@ export interface TaskUpdateParameters {
* The parameters that describes a set of credentials that will be used when this run is invoked.
*/
credentials?: Credentials;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* The ARM resource tags.
*/
Expand Down Expand Up @@ -2431,6 +2473,10 @@ export interface DockerBuildRequest {
* The dedicated agent pool for the run.
*/
agentPoolName?: string;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* The fully qualified image names including the repository and tag.
*/
Expand Down Expand Up @@ -2517,6 +2563,10 @@ export interface FileTaskRunRequest {
* The dedicated agent pool for the run.
*/
agentPoolName?: string;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* The template/definition file path relative to the source.
*/
Expand Down Expand Up @@ -2602,6 +2652,10 @@ export interface TaskRunRequest {
* The dedicated agent pool for the run.
*/
agentPoolName?: string;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* The resource ID of task against which run has to be queued.
*/
Expand Down Expand Up @@ -2629,6 +2683,10 @@ export interface EncodedTaskRunRequest {
* The dedicated agent pool for the run.
*/
agentPoolName?: string;
/**
* The template that describes the repository and tag information for run log artifact.
*/
logTemplate?: string;
/**
* Base64 encoded value of the template/definition file content.
*/
Expand Down Expand Up @@ -3113,6 +3171,21 @@ export interface RunsListOptionalParams extends msRest.RequestOptionsBase {
top?: number;
}

/**
* Optional Parameters.
*/
export interface RunsListNextOptionalParams extends msRest.RequestOptionsBase {
/**
* The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed
* string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed.
*/
filter?: string;
/**
* $top is supported for get list of runs, which limits the maximum number of runs to return.
*/
top?: number;
}

/**
* An interface representing ContainerRegistryManagementClientOptions.
*/
Expand Down
Loading