diff --git a/sdk/containerregistry/arm-containerregistry/LICENSE.txt b/sdk/containerregistry/arm-containerregistry/LICENSE.txt
new file mode 100644
index 000000000000..8f3d856145c5
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2019 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
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+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.
diff --git a/sdk/containerregistry/arm-containerregistry/README.md b/sdk/containerregistry/arm-containerregistry/README.md
new file mode 100644
index 000000000000..dff1335b95c4
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/README.md
@@ -0,0 +1,100 @@
+## Azure ContainerRegistryManagementClient SDK for JavaScript
+
+This package contains an isomorphic SDK for ContainerRegistryManagementClient.
+
+### Currently supported environments
+
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+### How to Install
+
+```bash
+npm install @azure/arm-containerregistry
+```
+
+### How to use
+
+#### nodejs - Authentication, client creation and get registries as an example written in TypeScript.
+
+##### Install @azure/ms-rest-nodeauth
+
+```bash
+npm install @azure/ms-rest-nodeauth
+```
+
+##### Sample code
+
+```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 subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new ContainerRegistryManagementClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ const registryName = "testregistryName";
+ client.registries.get(resourceGroupName, registryName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+#### browser - Authentication, client creation and get registries as an example written in JavaScript.
+
+##### Install @azure/ms-rest-browserauth
+
+```bash
+npm install @azure/ms-rest-browserauth
+```
+
+##### Sample code
+
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-containerregistry sample
+
+
+
+
+
+
+
+
+```
+
+## Related projects
+
+- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClient.ts
new file mode 100644
index 000000000000..fec95885a3b7
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClient.ts
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "./models";
+import * as Mappers from "./models/mappers";
+import * as operations from "./operations";
+import { ContainerRegistryManagementClientContext } from "./containerRegistryManagementClientContext";
+
+
+class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext {
+ // Operation groups
+ registries: operations.Registries;
+ operations: operations.Operations;
+ replications: operations.Replications;
+ webhooks: operations.Webhooks;
+ runs: operations.Runs;
+ tasks: operations.Tasks;
+
+ /**
+ * Initializes a new instance of the ContainerRegistryManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The Microsoft Azure subscription ID.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerRegistryManagementClientOptions) {
+ super(credentials, subscriptionId, options);
+ this.registries = new operations.Registries(this);
+ this.operations = new operations.Operations(this);
+ this.replications = new operations.Replications(this);
+ this.webhooks = new operations.Webhooks(this);
+ this.runs = new operations.Runs(this);
+ this.tasks = new operations.Tasks(this);
+ }
+}
+
+// Operation Specifications
+
+export {
+ ContainerRegistryManagementClient,
+ ContainerRegistryManagementClientContext,
+ Models as ContainerRegistryManagementModels,
+ Mappers as ContainerRegistryManagementMappers
+};
+export * from "./operations";
diff --git a/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClientContext.ts b/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClientContext.ts
new file mode 100644
index 000000000000..72d4e551aaaf
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/containerRegistryManagementClientContext.ts
@@ -0,0 +1,60 @@
+/*
+ * 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.
+ */
+
+import * as Models from "./models";
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+
+const packageName = "@azure/arm-containerregistry";
+const packageVersion = "5.0.1";
+
+export class ContainerRegistryManagementClientContext extends msRestAzure.AzureServiceClient {
+ credentials: msRest.ServiceClientCredentials;
+ subscriptionId: string;
+
+ /**
+ * Initializes a new instance of the ContainerRegistryManagementClient class.
+ * @param credentials Credentials needed for the client to connect to Azure.
+ * @param subscriptionId The Microsoft Azure subscription ID.
+ * @param [options] The parameter options
+ */
+ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerRegistryManagementClientOptions) {
+ if (credentials == undefined) {
+ throw new Error('\'credentials\' cannot be null.');
+ }
+ if (subscriptionId == undefined) {
+ throw new Error('\'subscriptionId\' cannot be null.');
+ }
+
+ if (!options) {
+ options = {};
+ }
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
+ super(credentials, options);
+
+ this.acceptLanguage = 'en-US';
+ this.longRunningOperationRetryTimeout = 30;
+ this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
+ this.requestContentType = "application/json; charset=utf-8";
+ this.credentials = credentials;
+ this.subscriptionId = subscriptionId;
+
+ if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
+ this.acceptLanguage = options.acceptLanguage;
+ }
+ if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
+ this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
+ }
+ }
+}
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/index.ts b/sdk/containerregistry/arm-containerregistry/lib/models/index.ts
new file mode 100644
index 000000000000..f493260efe38
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/index.ts
@@ -0,0 +1,4023 @@
+/*
+ * 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.
+ */
+
+import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export { BaseResource, CloudError };
+
+
+/**
+ * @interface
+ * An interface representing ImportSourceCredentials.
+ */
+export interface ImportSourceCredentials {
+ /**
+ * @member {string} [username] The username to authenticate with the source
+ * registry.
+ */
+ username?: string;
+ /**
+ * @member {string} password The password used to authenticate with the
+ * source registry.
+ */
+ password: string;
+}
+
+/**
+ * @interface
+ * An interface representing ImportSource.
+ */
+export interface ImportSource {
+ /**
+ * @member {string} [resourceId] The resource identifier of the source Azure
+ * Container Registry.
+ */
+ resourceId?: string;
+ /**
+ * @member {string} [registryUri] The address of the source registry (e.g.
+ * 'mcr.microsoft.com').
+ */
+ registryUri?: string;
+ /**
+ * @member {ImportSourceCredentials} [credentials] Credentials used when
+ * importing from a registry uri.
+ */
+ credentials?: ImportSourceCredentials;
+ /**
+ * @member {string} sourceImage Repository name of the source image.
+ * Specify an image by repository ('hello-world'). This will use the 'latest'
+ * tag.
+ * Specify an image by tag ('hello-world:latest').
+ * Specify an image by sha256-based manifest digest
+ * ('hello-world@sha256:abc123').
+ */
+ sourceImage: string;
+}
+
+/**
+ * @interface
+ * An interface representing ImportImageParameters.
+ */
+export interface ImportImageParameters {
+ /**
+ * @member {ImportSource} source The source of the image.
+ */
+ source: ImportSource;
+ /**
+ * @member {string[]} [targetTags] List of strings of the form repo[:tag].
+ * When tag is omitted the source will be used (or 'latest' if source tag is
+ * also omitted).
+ */
+ targetTags?: string[];
+ /**
+ * @member {string[]} [untaggedTargetRepositories] List of strings of
+ * repository names to do a manifest only copy. No tag will be created.
+ */
+ untaggedTargetRepositories?: string[];
+ /**
+ * @member {ImportMode} [mode] When Force, any existing target tags will be
+ * overwritten. When NoForce, any existing target tags will fail the
+ * operation before any copying begins. Possible values include: 'NoForce',
+ * 'Force'. Default value: 'NoForce' .
+ */
+ mode?: ImportMode;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryNameCheckRequest.
+ * A request to check whether a container registry name is available.
+ *
+ */
+export interface RegistryNameCheckRequest {
+ /**
+ * @member {string} name The name of the container registry.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryNameStatus.
+ * The result of a request to check the availability of a container registry
+ * name.
+ *
+ */
+export interface RegistryNameStatus {
+ /**
+ * @member {boolean} [nameAvailable] The value that indicates whether the
+ * name is available.
+ */
+ nameAvailable?: boolean;
+ /**
+ * @member {string} [reason] If any, the reason that the name is not
+ * available.
+ */
+ reason?: string;
+ /**
+ * @member {string} [message] If any, the error message that provides more
+ * detail for the reason that the name is not available.
+ */
+ message?: string;
+}
+
+/**
+ * @interface
+ * An interface representing OperationDisplayDefinition.
+ * The display information for a container registry operation.
+ *
+ */
+export interface OperationDisplayDefinition {
+ /**
+ * @member {string} [provider] The resource provider name:
+ * Microsoft.ContainerRegistry.
+ */
+ provider?: string;
+ /**
+ * @member {string} [resource] The resource on which the operation is
+ * performed.
+ */
+ resource?: string;
+ /**
+ * @member {string} [operation] The operation that users can perform.
+ */
+ operation?: string;
+ /**
+ * @member {string} [description] The description for the operation.
+ */
+ description?: string;
+}
+
+/**
+ * @interface
+ * An interface representing OperationMetricSpecificationDefinition.
+ * The definition of Azure Monitoring metric.
+ *
+ */
+export interface OperationMetricSpecificationDefinition {
+ /**
+ * @member {string} [name] Metric name.
+ */
+ name?: string;
+ /**
+ * @member {string} [displayName] Metric display name.
+ */
+ displayName?: string;
+ /**
+ * @member {string} [displayDescription] Metric description.
+ */
+ displayDescription?: string;
+ /**
+ * @member {string} [unit] Metric unit.
+ */
+ unit?: string;
+ /**
+ * @member {string} [aggregationType] Metric aggregation type.
+ */
+ aggregationType?: string;
+ /**
+ * @member {string} [internalMetricName] Internal metric name.
+ */
+ internalMetricName?: string;
+}
+
+/**
+ * @interface
+ * An interface representing OperationServiceSpecificationDefinition.
+ * The definition of Azure Monitoring metrics list.
+ *
+ */
+export interface OperationServiceSpecificationDefinition {
+ /**
+ * @member {OperationMetricSpecificationDefinition[]} [metricSpecifications]
+ * A list of Azure Monitoring metrics definition.
+ */
+ metricSpecifications?: OperationMetricSpecificationDefinition[];
+}
+
+/**
+ * @interface
+ * An interface representing OperationDefinition.
+ * The definition of a container registry operation.
+ *
+ */
+export interface OperationDefinition {
+ /**
+ * @member {string} [origin] The origin information of the container registry
+ * operation.
+ */
+ origin?: string;
+ /**
+ * @member {string} [name] Operation name: {provider}/{resource}/{operation}.
+ */
+ name?: string;
+ /**
+ * @member {OperationDisplayDefinition} [display] The display information for
+ * the container registry operation.
+ */
+ display?: OperationDisplayDefinition;
+ /**
+ * @member {OperationServiceSpecificationDefinition} [serviceSpecification]
+ * The definition of Azure Monitoring service.
+ */
+ serviceSpecification?: OperationServiceSpecificationDefinition;
+}
+
+/**
+ * @interface
+ * An interface representing Sku.
+ * The SKU of a container registry.
+ *
+ */
+export interface Sku {
+ /**
+ * @member {SkuName} name The SKU name of the container registry. Required
+ * for registry creation. Possible values include: 'Classic', 'Basic',
+ * 'Standard', 'Premium'
+ */
+ name: SkuName;
+ /**
+ * @member {SkuTier} [tier] The SKU tier based on the SKU name. Possible
+ * values include: 'Classic', 'Basic', 'Standard', 'Premium'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly tier?: SkuTier;
+}
+
+/**
+ * @interface
+ * An interface representing Status.
+ * The status of an Azure resource at the time the operation was called.
+ *
+ */
+export interface Status {
+ /**
+ * @member {string} [displayStatus] The short label for the status.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly displayStatus?: string;
+ /**
+ * @member {string} [message] The detailed message for the status, including
+ * alerts and error messages.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly message?: string;
+ /**
+ * @member {Date} [timestamp] The timestamp when the status was changed to
+ * the current value.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly timestamp?: Date;
+}
+
+/**
+ * @interface
+ * An interface representing StorageAccountProperties.
+ * The properties of a storage account for a container registry. Only
+ * applicable to Classic SKU.
+ *
+ */
+export interface StorageAccountProperties {
+ /**
+ * @member {string} id The resource ID of the storage account.
+ */
+ id: string;
+}
+
+/**
+ * @interface
+ * An interface representing VirtualNetworkRule.
+ * Virtual network rule.
+ *
+ */
+export interface VirtualNetworkRule {
+ /**
+ * @member {Action} [action] The action of virtual network rule. Possible
+ * values include: 'Allow'. Default value: 'Allow' .
+ */
+ action?: Action;
+ /**
+ * @member {string} virtualNetworkResourceId Resource ID of a subnet, for
+ * example:
+ * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
+ */
+ virtualNetworkResourceId: string;
+}
+
+/**
+ * @interface
+ * An interface representing IPRule.
+ * IP rule with specific IP or IP range in CIDR format.
+ *
+ */
+export interface IPRule {
+ /**
+ * @member {Action} [action] The action of IP ACL rule. Possible values
+ * include: 'Allow'. Default value: 'Allow' .
+ */
+ action?: Action;
+ /**
+ * @member {string} iPAddressOrRange Specifies the IP or IP range in CIDR
+ * format. Only IPV4 address is allowed.
+ */
+ iPAddressOrRange: string;
+}
+
+/**
+ * @interface
+ * An interface representing NetworkRuleSet.
+ * The network rule set for a container registry.
+ *
+ */
+export interface NetworkRuleSet {
+ /**
+ * @member {DefaultAction} defaultAction The default action of allow or deny
+ * when no other rules match. Possible values include: 'Allow', 'Deny'.
+ * Default value: 'Allow' .
+ */
+ defaultAction: DefaultAction;
+ /**
+ * @member {VirtualNetworkRule[]} [virtualNetworkRules] The virtual network
+ * rules.
+ */
+ virtualNetworkRules?: VirtualNetworkRule[];
+ /**
+ * @member {IPRule[]} [ipRules] The IP ACL rules.
+ */
+ ipRules?: IPRule[];
+}
+
+/**
+ * @interface
+ * An interface representing Resource.
+ * An Azure resource.
+ *
+ * @extends BaseResource
+ */
+export interface Resource extends BaseResource {
+ /**
+ * @member {string} [id] The resource ID.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [name] The name of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [type] The type of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+ /**
+ * @member {string} location The location of the resource. This cannot be
+ * changed after the resource is created.
+ */
+ location: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The tags of the
+ * resource.
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * @interface
+ * An interface representing Registry.
+ * An object that represents a container registry.
+ *
+ * @extends Resource
+ */
+export interface Registry extends Resource {
+ /**
+ * @member {Sku} sku The SKU of the container registry.
+ */
+ sku: Sku;
+ /**
+ * @member {string} [loginServer] The URL that can be used to log into the
+ * container registry.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly loginServer?: string;
+ /**
+ * @member {Date} [creationDate] The creation date of the container registry
+ * in ISO8601 format.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly creationDate?: Date;
+ /**
+ * @member {ProvisioningState} [provisioningState] The provisioning state of
+ * the container registry at the time the operation was called. Possible
+ * values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed',
+ * 'Canceled'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+ /**
+ * @member {Status} [status] The status of the container registry at the time
+ * the operation was called.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly status?: Status;
+ /**
+ * @member {boolean} [adminUserEnabled] The value that indicates whether the
+ * admin user is enabled. Default value: false .
+ */
+ adminUserEnabled?: boolean;
+ /**
+ * @member {StorageAccountProperties} [storageAccount] The properties of the
+ * storage account for the container registry. Only applicable to Classic
+ * SKU.
+ */
+ storageAccount?: StorageAccountProperties;
+ /**
+ * @member {NetworkRuleSet} [networkRuleSet] The network rule set for a
+ * container registry.
+ */
+ networkRuleSet?: NetworkRuleSet;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryUpdateParameters.
+ * The parameters for updating a container registry.
+ *
+ */
+export interface RegistryUpdateParameters {
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The tags for the
+ * container registry.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * @member {Sku} [sku] The SKU of the container registry.
+ */
+ sku?: Sku;
+ /**
+ * @member {boolean} [adminUserEnabled] The value that indicates whether the
+ * admin user is enabled.
+ */
+ adminUserEnabled?: boolean;
+ /**
+ * @member {StorageAccountProperties} [storageAccount] The parameters of a
+ * storage account for the container registry. Only applicable to Classic
+ * SKU. If specified, the storage account must be in the same physical
+ * location as the container registry.
+ */
+ storageAccount?: StorageAccountProperties;
+ /**
+ * @member {NetworkRuleSet} [networkRuleSet] The network rule set for a
+ * container registry.
+ */
+ networkRuleSet?: NetworkRuleSet;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryPassword.
+ * The login password for the container registry.
+ *
+ */
+export interface RegistryPassword {
+ /**
+ * @member {PasswordName} [name] The password name. Possible values include:
+ * 'password', 'password2'
+ */
+ name?: PasswordName;
+ /**
+ * @member {string} [value] The password value.
+ */
+ value?: string;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryListCredentialsResult.
+ * The response from the ListCredentials operation.
+ *
+ */
+export interface RegistryListCredentialsResult {
+ /**
+ * @member {string} [username] The username for a container registry.
+ */
+ username?: string;
+ /**
+ * @member {RegistryPassword[]} [passwords] The list of passwords for a
+ * container registry.
+ */
+ passwords?: RegistryPassword[];
+}
+
+/**
+ * @interface
+ * An interface representing RegenerateCredentialParameters.
+ * The parameters used to regenerate the login credential.
+ *
+ */
+export interface RegenerateCredentialParameters {
+ /**
+ * @member {PasswordName} name Specifies name of the password which should be
+ * regenerated -- password or password2. Possible values include: 'password',
+ * 'password2'
+ */
+ name: PasswordName;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryUsage.
+ * The quota usage for a container registry.
+ *
+ */
+export interface RegistryUsage {
+ /**
+ * @member {string} [name] The name of the usage.
+ */
+ name?: string;
+ /**
+ * @member {number} [limit] The limit of the usage.
+ */
+ limit?: number;
+ /**
+ * @member {number} [currentValue] The current value of the usage.
+ */
+ currentValue?: number;
+ /**
+ * @member {RegistryUsageUnit} [unit] The unit of measurement. Possible
+ * values include: 'Count', 'Bytes'
+ */
+ unit?: RegistryUsageUnit;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryUsageListResult.
+ * The result of a request to get container registry quota usages.
+ *
+ */
+export interface RegistryUsageListResult {
+ /**
+ * @member {RegistryUsage[]} [value] The list of container registry quota
+ * usages.
+ */
+ value?: RegistryUsage[];
+}
+
+/**
+ * @interface
+ * An interface representing QuarantinePolicy.
+ * An object that represents quarantine policy for a container registry.
+ *
+ */
+export interface QuarantinePolicy {
+ /**
+ * @member {PolicyStatus} [status] The value that indicates whether the
+ * policy is enabled or not. Possible values include: 'enabled', 'disabled'
+ */
+ status?: PolicyStatus;
+}
+
+/**
+ * @interface
+ * An interface representing TrustPolicy.
+ * An object that represents content trust policy for a container registry.
+ *
+ */
+export interface TrustPolicy {
+ /**
+ * @member {TrustPolicyType} [type] The type of trust policy. Possible values
+ * include: 'Notary'
+ */
+ type?: TrustPolicyType;
+ /**
+ * @member {PolicyStatus} [status] The value that indicates whether the
+ * policy is enabled or not. Possible values include: 'enabled', 'disabled'
+ */
+ status?: PolicyStatus;
+}
+
+/**
+ * @interface
+ * An interface representing RegistryPolicies.
+ * An object that represents policies for a container registry.
+ *
+ */
+export interface RegistryPolicies {
+ /**
+ * @member {QuarantinePolicy} [quarantinePolicy] An object that represents
+ * quarantine policy for a container registry.
+ */
+ quarantinePolicy?: QuarantinePolicy;
+ /**
+ * @member {TrustPolicy} [trustPolicy] An object that represents content
+ * trust policy for a container registry.
+ */
+ trustPolicy?: TrustPolicy;
+}
+
+/**
+ * @interface
+ * An interface representing Replication.
+ * An object that represents a replication for a container registry.
+ *
+ * @extends Resource
+ */
+export interface Replication extends Resource {
+ /**
+ * @member {ProvisioningState} [provisioningState] The provisioning state of
+ * the replication at the time the operation was called. Possible values
+ * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed',
+ * 'Canceled'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+ /**
+ * @member {Status} [status] The status of the replication at the time the
+ * operation was called.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly status?: Status;
+}
+
+/**
+ * @interface
+ * An interface representing ReplicationUpdateParameters.
+ * The parameters for updating a replication.
+ *
+ */
+export interface ReplicationUpdateParameters {
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The tags for the
+ * replication.
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * @interface
+ * An interface representing Webhook.
+ * An object that represents a webhook for a container registry.
+ *
+ * @extends Resource
+ */
+export interface Webhook extends Resource {
+ /**
+ * @member {WebhookStatus} [status] The status of the webhook at the time the
+ * operation was called. Possible values include: 'enabled', 'disabled'
+ */
+ status?: WebhookStatus;
+ /**
+ * @member {string} [scope] The scope of repositories where the event can be
+ * triggered. For example, 'foo:*' means events for all tags under repository
+ * 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to
+ * 'foo:latest'. Empty means all events.
+ */
+ scope?: string;
+ /**
+ * @member {WebhookAction[]} actions The list of actions that trigger the
+ * webhook to post notifications.
+ */
+ actions: WebhookAction[];
+ /**
+ * @member {ProvisioningState} [provisioningState] The provisioning state of
+ * the webhook at the time the operation was called. Possible values include:
+ * 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+}
+
+/**
+ * @interface
+ * An interface representing WebhookCreateParameters.
+ * The parameters for creating a webhook.
+ *
+ */
+export interface WebhookCreateParameters {
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The tags for the
+ * webhook.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * @member {string} location The location of the webhook. This cannot be
+ * changed after the resource is created.
+ */
+ location: string;
+ /**
+ * @member {string} serviceUri The service URI for the webhook to post
+ * notifications.
+ */
+ serviceUri: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [customHeaders] Custom
+ * headers that will be added to the webhook notifications.
+ */
+ customHeaders?: { [propertyName: string]: string };
+ /**
+ * @member {WebhookStatus} [status] The status of the webhook at the time the
+ * operation was called. Possible values include: 'enabled', 'disabled'
+ */
+ status?: WebhookStatus;
+ /**
+ * @member {string} [scope] The scope of repositories where the event can be
+ * triggered. For example, 'foo:*' means events for all tags under repository
+ * 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to
+ * 'foo:latest'. Empty means all events.
+ */
+ scope?: string;
+ /**
+ * @member {WebhookAction[]} actions The list of actions that trigger the
+ * webhook to post notifications.
+ */
+ actions: WebhookAction[];
+}
+
+/**
+ * @interface
+ * An interface representing WebhookUpdateParameters.
+ * The parameters for updating a webhook.
+ *
+ */
+export interface WebhookUpdateParameters {
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The tags for the
+ * webhook.
+ */
+ tags?: { [propertyName: string]: string };
+ /**
+ * @member {string} [serviceUri] The service URI for the webhook to post
+ * notifications.
+ */
+ serviceUri?: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [customHeaders] Custom
+ * headers that will be added to the webhook notifications.
+ */
+ customHeaders?: { [propertyName: string]: string };
+ /**
+ * @member {WebhookStatus} [status] The status of the webhook at the time the
+ * operation was called. Possible values include: 'enabled', 'disabled'
+ */
+ status?: WebhookStatus;
+ /**
+ * @member {string} [scope] The scope of repositories where the event can be
+ * triggered. For example, 'foo:*' means events for all tags under repository
+ * 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is equivalent to
+ * 'foo:latest'. Empty means all events.
+ */
+ scope?: string;
+ /**
+ * @member {WebhookAction[]} [actions] The list of actions that trigger the
+ * webhook to post notifications.
+ */
+ actions?: WebhookAction[];
+}
+
+/**
+ * @interface
+ * An interface representing EventInfo.
+ * The basic information of an event.
+ *
+ */
+export interface EventInfo {
+ /**
+ * @member {string} [id] The event ID.
+ */
+ id?: string;
+}
+
+/**
+ * @interface
+ * An interface representing CallbackConfig.
+ * The configuration of service URI and custom headers for the webhook.
+ *
+ */
+export interface CallbackConfig {
+ /**
+ * @member {string} serviceUri The service URI for the webhook to post
+ * notifications.
+ */
+ serviceUri: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [customHeaders] Custom
+ * headers that will be added to the webhook notifications.
+ */
+ customHeaders?: { [propertyName: string]: string };
+}
+
+/**
+ * @interface
+ * An interface representing Target.
+ * The target of the event.
+ *
+ */
+export interface Target {
+ /**
+ * @member {string} [mediaType] The MIME type of the referenced object.
+ */
+ mediaType?: string;
+ /**
+ * @member {number} [size] The number of bytes of the content. Same as Length
+ * field.
+ */
+ size?: number;
+ /**
+ * @member {string} [digest] The digest of the content, as defined by the
+ * Registry V2 HTTP API Specification.
+ */
+ digest?: string;
+ /**
+ * @member {number} [length] The number of bytes of the content. Same as Size
+ * field.
+ */
+ length?: number;
+ /**
+ * @member {string} [repository] The repository name.
+ */
+ repository?: string;
+ /**
+ * @member {string} [url] The direct URL to the content.
+ */
+ url?: string;
+ /**
+ * @member {string} [tag] The tag name.
+ */
+ tag?: string;
+ /**
+ * @member {string} [name] The name of the artifact.
+ */
+ name?: string;
+ /**
+ * @member {string} [version] The version of the artifact.
+ */
+ version?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Request.
+ * The request that generated the event.
+ *
+ */
+export interface Request {
+ /**
+ * @member {string} [id] The ID of the request that initiated the event.
+ */
+ id?: string;
+ /**
+ * @member {string} [addr] The IP or hostname and possibly port of the client
+ * connection that initiated the event. This is the RemoteAddr from the
+ * standard http request.
+ */
+ addr?: string;
+ /**
+ * @member {string} [host] The externally accessible hostname of the registry
+ * instance, as specified by the http host header on incoming requests.
+ */
+ host?: string;
+ /**
+ * @member {string} [method] The request method that generated the event.
+ */
+ method?: string;
+ /**
+ * @member {string} [useragent] The user agent header of the request.
+ */
+ useragent?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Actor.
+ * The agent that initiated the event. For most situations, this could be from
+ * the authorization context of the request.
+ *
+ */
+export interface Actor {
+ /**
+ * @member {string} [name] The subject or username associated with the
+ * request context that generated the event.
+ */
+ name?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Source.
+ * The registry node that generated the event. Put differently, while the actor
+ * initiates the event, the source generates it.
+ *
+ */
+export interface Source {
+ /**
+ * @member {string} [addr] The IP or hostname and the port of the registry
+ * node that generated the event. Generally, this will be resolved by
+ * os.Hostname() along with the running port.
+ */
+ addr?: string;
+ /**
+ * @member {string} [instanceID] The running instance of an application.
+ * Changes after each restart.
+ */
+ instanceID?: string;
+}
+
+/**
+ * @interface
+ * An interface representing EventContent.
+ * The content of the event request message.
+ *
+ */
+export interface EventContent {
+ /**
+ * @member {string} [id] The event ID.
+ */
+ id?: string;
+ /**
+ * @member {Date} [timestamp] The time at which the event occurred.
+ */
+ timestamp?: Date;
+ /**
+ * @member {string} [action] The action that encompasses the provided event.
+ */
+ action?: string;
+ /**
+ * @member {Target} [target] The target of the event.
+ */
+ target?: Target;
+ /**
+ * @member {Request} [request] The request that generated the event.
+ */
+ request?: Request;
+ /**
+ * @member {Actor} [actor] The agent that initiated the event. For most
+ * situations, this could be from the authorization context of the request.
+ */
+ actor?: Actor;
+ /**
+ * @member {Source} [source] The registry node that generated the event. Put
+ * differently, while the actor initiates the event, the source generates it.
+ */
+ source?: Source;
+}
+
+/**
+ * @interface
+ * An interface representing EventRequestMessage.
+ * The event request message sent to the service URI.
+ *
+ */
+export interface EventRequestMessage {
+ /**
+ * @member {EventContent} [content] The content of the event request message.
+ */
+ content?: EventContent;
+ /**
+ * @member {{ [propertyName: string]: string }} [headers] The headers of the
+ * event request message.
+ */
+ headers?: { [propertyName: string]: string };
+ /**
+ * @member {string} [method] The HTTP method used to send the event request
+ * message.
+ */
+ method?: string;
+ /**
+ * @member {string} [requestUri] The URI used to send the event request
+ * message.
+ */
+ requestUri?: string;
+ /**
+ * @member {string} [version] The HTTP message version.
+ */
+ version?: string;
+}
+
+/**
+ * @interface
+ * An interface representing EventResponseMessage.
+ * The event response message received from the service URI.
+ *
+ */
+export interface EventResponseMessage {
+ /**
+ * @member {string} [content] The content of the event response message.
+ */
+ content?: string;
+ /**
+ * @member {{ [propertyName: string]: string }} [headers] The headers of the
+ * event response message.
+ */
+ headers?: { [propertyName: string]: string };
+ /**
+ * @member {string} [reasonPhrase] The reason phrase of the event response
+ * message.
+ */
+ reasonPhrase?: string;
+ /**
+ * @member {string} [statusCode] The status code of the event response
+ * message.
+ */
+ statusCode?: string;
+ /**
+ * @member {string} [version] The HTTP message version.
+ */
+ version?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Event.
+ * The event for a webhook.
+ *
+ * @extends EventInfo
+ */
+export interface Event extends EventInfo {
+ /**
+ * @member {EventRequestMessage} [eventRequestMessage] The event request
+ * message sent to the service URI.
+ */
+ eventRequestMessage?: EventRequestMessage;
+ /**
+ * @member {EventResponseMessage} [eventResponseMessage] The event response
+ * message received from the service URI.
+ */
+ eventResponseMessage?: EventResponseMessage;
+}
+
+/**
+ * Contains the possible cases for RunRequest.
+ */
+export type RunRequestUnion = RunRequest | DockerBuildRequest | FileTaskRunRequest | TaskRunRequest | EncodedTaskRunRequest;
+
+/**
+ * @interface
+ * An interface representing RunRequest.
+ * The request parameters for scheduling a run.
+ *
+ */
+export interface RunRequest {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "RunRequest";
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled for the run or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+}
+
+/**
+ * @interface
+ * An interface representing ImageDescriptor.
+ * Properties for a registry image.
+ *
+ */
+export interface ImageDescriptor {
+ /**
+ * @member {string} [registry] The registry login server.
+ */
+ registry?: string;
+ /**
+ * @member {string} [repository] The repository name.
+ */
+ repository?: string;
+ /**
+ * @member {string} [tag] The tag name.
+ */
+ tag?: string;
+ /**
+ * @member {string} [digest] The sha256-based digest of the image manifest.
+ */
+ digest?: string;
+}
+
+/**
+ * @interface
+ * An interface representing ImageUpdateTrigger.
+ * The image update trigger that caused a build.
+ *
+ */
+export interface ImageUpdateTrigger {
+ /**
+ * @member {string} [id] The unique ID of the trigger.
+ */
+ id?: string;
+ /**
+ * @member {Date} [timestamp] The timestamp when the image update happened.
+ */
+ timestamp?: Date;
+ /**
+ * @member {ImageDescriptor[]} [images] The list of image updates that caused
+ * the build.
+ */
+ images?: ImageDescriptor[];
+}
+
+/**
+ * @interface
+ * An interface representing SourceTriggerDescriptor.
+ * The source trigger that caused a run.
+ *
+ */
+export interface SourceTriggerDescriptor {
+ /**
+ * @member {string} [id] The unique ID of the trigger.
+ */
+ id?: string;
+ /**
+ * @member {string} [eventType] The event type of the trigger.
+ */
+ eventType?: string;
+ /**
+ * @member {string} [commitId] The unique ID that identifies a commit.
+ */
+ commitId?: string;
+ /**
+ * @member {string} [pullRequestId] The unique ID that identifies pull
+ * request.
+ */
+ pullRequestId?: string;
+ /**
+ * @member {string} [repositoryUrl] The repository URL.
+ */
+ repositoryUrl?: string;
+ /**
+ * @member {string} [branchName] The branch name in the repository.
+ */
+ branchName?: string;
+ /**
+ * @member {string} [providerType] The source control provider type.
+ */
+ providerType?: string;
+}
+
+/**
+ * @interface
+ * An interface representing PlatformProperties.
+ * The platform properties against which the run has to happen.
+ *
+ */
+export interface PlatformProperties {
+ /**
+ * @member {OS} os The operating system type required for the run. Possible
+ * values include: 'Windows', 'Linux'
+ */
+ os: OS;
+ /**
+ * @member {Architecture} [architecture] The OS architecture. Possible values
+ * include: 'amd64', 'x86', 'arm'
+ */
+ architecture?: Architecture;
+ /**
+ * @member {Variant} [variant] Variant of the CPU. Possible values include:
+ * 'v6', 'v7', 'v8'
+ */
+ variant?: Variant;
+}
+
+/**
+ * @interface
+ * An interface representing AgentProperties.
+ * The properties that determine the run agent configuration.
+ *
+ */
+export interface AgentProperties {
+ /**
+ * @member {number} [cpu] The CPU configuration in terms of number of cores
+ * required for the run.
+ */
+ cpu?: number;
+}
+
+/**
+ * @interface
+ * An interface representing ProxyResource.
+ * The resource model definition for a ARM proxy resource. It will have
+ * everything other than required location and tags.
+ *
+ * @extends BaseResource
+ */
+export interface ProxyResource extends BaseResource {
+ /**
+ * @member {string} [id] The resource ID.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly id?: string;
+ /**
+ * @member {string} [name] The name of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly name?: string;
+ /**
+ * @member {string} [type] The type of the resource.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly type?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Run.
+ * Run resource properties
+ *
+ * @extends ProxyResource
+ */
+export interface Run extends ProxyResource {
+ /**
+ * @member {string} [runId] The unique identifier for the run.
+ */
+ runId?: string;
+ /**
+ * @member {RunStatus} [status] The current status of the run. Possible
+ * values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed',
+ * 'Canceled', 'Error', 'Timeout'
+ */
+ status?: RunStatus;
+ /**
+ * @member {Date} [lastUpdatedTime] The last updated time for the run.
+ */
+ lastUpdatedTime?: Date;
+ /**
+ * @member {RunType} [runType] The type of run. Possible values include:
+ * 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
+ */
+ runType?: RunType;
+ /**
+ * @member {Date} [createTime] The time the run was scheduled.
+ */
+ createTime?: Date;
+ /**
+ * @member {Date} [startTime] The time the run started.
+ */
+ startTime?: Date;
+ /**
+ * @member {Date} [finishTime] The time the run finished.
+ */
+ finishTime?: Date;
+ /**
+ * @member {ImageDescriptor[]} [outputImages] The list of all images that
+ * were generated from the run. This is applicable if the run generates base
+ * image dependencies.
+ */
+ outputImages?: ImageDescriptor[];
+ /**
+ * @member {string} [task] The task against which run was scheduled.
+ */
+ task?: string;
+ /**
+ * @member {ImageUpdateTrigger} [imageUpdateTrigger] The image update trigger
+ * that caused the run. This is applicable if the task has base image trigger
+ * configured.
+ */
+ imageUpdateTrigger?: ImageUpdateTrigger;
+ /**
+ * @member {SourceTriggerDescriptor} [sourceTrigger] The source trigger that
+ * caused the run.
+ */
+ sourceTrigger?: SourceTriggerDescriptor;
+ /**
+ * @member {PlatformProperties} [platform] The platform properties against
+ * which the run will happen.
+ */
+ platform?: PlatformProperties;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {string} [sourceRegistryAuth] The scope of the credentials that
+ * were used to login to the source registry during this run.
+ */
+ sourceRegistryAuth?: string;
+ /**
+ * @member {string[]} [customRegistries] The list of custom registries that
+ * were logged in during this run.
+ */
+ customRegistries?: string[];
+ /**
+ * @member {string} [runErrorMessage] The error message received from backend
+ * systems after the run is scheduled.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly runErrorMessage?: string;
+ /**
+ * @member {ProvisioningState} [provisioningState] The provisioning state of
+ * a run. Possible values include: 'Creating', 'Updating', 'Deleting',
+ * 'Succeeded', 'Failed', 'Canceled'
+ */
+ provisioningState?: ProvisioningState;
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+}
+
+/**
+ * @interface
+ * An interface representing SourceUploadDefinition.
+ * The properties of a response to source upload request.
+ *
+ */
+export interface SourceUploadDefinition {
+ /**
+ * @member {string} [uploadUrl] The URL where the client can upload the
+ * source.
+ */
+ uploadUrl?: string;
+ /**
+ * @member {string} [relativePath] The relative path to the source. This is
+ * used to submit the subsequent queue build request.
+ */
+ relativePath?: string;
+}
+
+/**
+ * @interface
+ * An interface representing RunFilter.
+ * Properties that are enabled for Odata querying on runs.
+ *
+ */
+export interface RunFilter {
+ /**
+ * @member {string} [runId] The unique identifier for the run.
+ */
+ runId?: string;
+ /**
+ * @member {RunType} [runType] The type of run. Possible values include:
+ * 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
+ */
+ runType?: RunType;
+ /**
+ * @member {RunStatus} [status] The current status of the run. Possible
+ * values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed',
+ * 'Canceled', 'Error', 'Timeout'
+ */
+ status?: RunStatus;
+ /**
+ * @member {Date} [createTime] The create time for a run.
+ */
+ createTime?: Date;
+ /**
+ * @member {Date} [finishTime] The time the run finished.
+ */
+ finishTime?: Date;
+ /**
+ * @member {string} [outputImageManifests] The list of comma-separated image
+ * manifests that were generated from the run. This is applicable if the run
+ * is of
+ * build type.
+ */
+ outputImageManifests?: string;
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled or not.
+ */
+ isArchiveEnabled?: boolean;
+ /**
+ * @member {string} [taskName] The name of the task that the run corresponds
+ * to.
+ */
+ taskName?: string;
+}
+
+/**
+ * @interface
+ * An interface representing RunUpdateParameters.
+ * The set of run properties that can be updated.
+ *
+ */
+export interface RunUpdateParameters {
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled or not.
+ */
+ isArchiveEnabled?: boolean;
+}
+
+/**
+ * @interface
+ * An interface representing RunGetLogResult.
+ * The result of get log link operation.
+ *
+ */
+export interface RunGetLogResult {
+ /**
+ * @member {string} [logLink] The link to logs for a run on a azure container
+ * registry.
+ */
+ logLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing UserIdentityProperties.
+ */
+export interface UserIdentityProperties {
+ /**
+ * @member {string} [principalId] The principal id of user assigned identity.
+ */
+ principalId?: string;
+ /**
+ * @member {string} [clientId] The client id of user assigned identity.
+ */
+ clientId?: string;
+}
+
+/**
+ * @interface
+ * An interface representing IdentityProperties.
+ * Managed identity for the resource.
+ *
+ */
+export interface IdentityProperties {
+ /**
+ * @member {string} [principalId] The principal ID of resource identity.
+ */
+ principalId?: string;
+ /**
+ * @member {string} [tenantId] The tenant ID of resource.
+ */
+ tenantId?: string;
+ /**
+ * @member {ResourceIdentityType} [type] The identity type. Possible values
+ * include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned',
+ * 'None'
+ */
+ type?: ResourceIdentityType;
+ /**
+ * @member {{ [propertyName: string]: UserIdentityProperties }}
+ * [userAssignedIdentities] The list of user identities associated with the
+ * resource. The user identity
+ * dictionary key references will be ARM resource ids in the form:
+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/
+ * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+ */
+ userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties };
+}
+
+/**
+ * @interface
+ * An interface representing BaseImageDependency.
+ * Properties that describe a base image dependency.
+ *
+ */
+export interface BaseImageDependency {
+ /**
+ * @member {BaseImageDependencyType} [type] The type of the base image
+ * dependency. Possible values include: 'BuildTime', 'RunTime'
+ */
+ type?: BaseImageDependencyType;
+ /**
+ * @member {string} [registry] The registry login server.
+ */
+ registry?: string;
+ /**
+ * @member {string} [repository] The repository name.
+ */
+ repository?: string;
+ /**
+ * @member {string} [tag] The tag name.
+ */
+ tag?: string;
+ /**
+ * @member {string} [digest] The sha256-based digest of the image manifest.
+ */
+ digest?: string;
+}
+
+/**
+ * Contains the possible cases for TaskStepProperties.
+ */
+export type TaskStepPropertiesUnion = TaskStepProperties | DockerBuildStep | FileTaskStep | EncodedTaskStep;
+
+/**
+ * @interface
+ * An interface representing TaskStepProperties.
+ * Base properties for any task step.
+ *
+ */
+export interface TaskStepProperties {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "TaskStepProperties";
+ /**
+ * @member {BaseImageDependency[]} [baseImageDependencies] List of base image
+ * dependencies for a step.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly baseImageDependencies?: BaseImageDependency[];
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+}
+
+/**
+ * @interface
+ * An interface representing SchedulerTrigger.
+ * The properties of a scheduler trigger.
+ *
+ */
+export interface SchedulerTrigger {
+ /**
+ * @member {string} schedule The CRON expression for the task schedule
+ */
+ schedule: string;
+ /**
+ * @member {TriggerStatus} [status] The current status of trigger. Possible
+ * values include: 'Disabled', 'Enabled'
+ */
+ status?: TriggerStatus;
+ /**
+ * @member {string} name The name of the trigger.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing AuthInfo.
+ * The authorization properties for accessing the source code repository.
+ *
+ */
+export interface AuthInfo {
+ /**
+ * @member {TokenType} tokenType The type of Auth token. Possible values
+ * include: 'PAT', 'OAuth'
+ */
+ tokenType: TokenType;
+ /**
+ * @member {string} token The access token used to access the source control
+ * provider.
+ */
+ token: string;
+ /**
+ * @member {string} [refreshToken] The refresh token used to refresh the
+ * access token.
+ */
+ refreshToken?: string;
+ /**
+ * @member {string} [scope] The scope of the access token.
+ */
+ scope?: string;
+ /**
+ * @member {number} [expiresIn] Time in seconds that the token remains valid
+ */
+ expiresIn?: number;
+}
+
+/**
+ * @interface
+ * An interface representing SourceProperties.
+ * The properties of the source code repository.
+ *
+ */
+export interface SourceProperties {
+ /**
+ * @member {SourceControlType} sourceControlType The type of source control
+ * service. Possible values include: 'Github', 'VisualStudioTeamService'
+ */
+ sourceControlType: SourceControlType;
+ /**
+ * @member {string} repositoryUrl The full URL to the source code repository
+ */
+ repositoryUrl: string;
+ /**
+ * @member {string} [branch] The branch name of the source code.
+ */
+ branch?: string;
+ /**
+ * @member {AuthInfo} [sourceControlAuthProperties] The authorization
+ * properties for accessing the source code repository and to set up
+ * webhooks for notifications.
+ */
+ sourceControlAuthProperties?: AuthInfo;
+}
+
+/**
+ * @interface
+ * An interface representing SourceTrigger.
+ * The properties of a source based trigger.
+ *
+ */
+export interface SourceTrigger {
+ /**
+ * @member {SourceProperties} sourceRepository The properties that describes
+ * the source(code) for the task.
+ */
+ sourceRepository: SourceProperties;
+ /**
+ * @member {SourceTriggerEvent[]} sourceTriggerEvents The source event
+ * corresponding to the trigger.
+ */
+ sourceTriggerEvents: SourceTriggerEvent[];
+ /**
+ * @member {TriggerStatus} [status] The current status of trigger. Possible
+ * values include: 'Disabled', 'Enabled'
+ */
+ status?: TriggerStatus;
+ /**
+ * @member {string} name The name of the trigger.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing BaseImageTrigger.
+ * The trigger based on base image dependency.
+ *
+ */
+export interface BaseImageTrigger {
+ /**
+ * @member {BaseImageTriggerType} baseImageTriggerType The type of the auto
+ * trigger for base image dependency updates. Possible values include: 'All',
+ * 'Runtime'
+ */
+ baseImageTriggerType: BaseImageTriggerType;
+ /**
+ * @member {TriggerStatus} [status] The current status of trigger. Possible
+ * values include: 'Disabled', 'Enabled'
+ */
+ status?: TriggerStatus;
+ /**
+ * @member {string} name The name of the trigger.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing TriggerProperties.
+ * The properties of a trigger.
+ *
+ */
+export interface TriggerProperties {
+ /**
+ * @member {SchedulerTrigger[]} [schedulerTriggers] The collection of
+ * scheduler triggers.
+ */
+ schedulerTriggers?: SchedulerTrigger[];
+ /**
+ * @member {SourceTrigger[]} [sourceTriggers] The collection of triggers
+ * based on source code repository.
+ */
+ sourceTriggers?: SourceTrigger[];
+ /**
+ * @member {BaseImageTrigger} [baseImageTrigger] The trigger based on base
+ * image dependencies.
+ */
+ baseImageTrigger?: BaseImageTrigger;
+}
+
+/**
+ * @interface
+ * An interface representing SourceRegistryCredentials.
+ * Describes the credential parameters for accessing the source registry.
+ *
+ */
+export interface SourceRegistryCredentials {
+ /**
+ * @member {SourceRegistryLoginMode} [loginMode] The authentication mode
+ * which determines the source registry login scope. The credentials for the
+ * source registry
+ * will be generated using the given scope. These credentials will be used to
+ * login to
+ * the source registry during the run. Possible values include: 'None',
+ * 'Default'
+ */
+ loginMode?: SourceRegistryLoginMode;
+}
+
+/**
+ * @interface
+ * An interface representing SecretObject.
+ * Describes the properties of a secret object value.
+ *
+ */
+export interface SecretObject {
+ /**
+ * @member {string} [value] The value of the secret. The format of this value
+ * will be determined
+ * based on the type of the secret object. If the type is Opaque, the value
+ * will be
+ * used as is without any modification.
+ */
+ value?: string;
+ /**
+ * @member {SecretObjectType} [type] The type of the secret object which
+ * determines how the value of the secret object has to be
+ * interpreted. Possible values include: 'Opaque', 'Vaultsecret'
+ */
+ type?: SecretObjectType;
+}
+
+/**
+ * @interface
+ * An interface representing CustomRegistryCredentials.
+ * Describes the credentials that will be used to access a custom registry
+ * during a run.
+ *
+ */
+export interface CustomRegistryCredentials {
+ /**
+ * @member {SecretObject} [userName] The username for logging into the custom
+ * registry.
+ */
+ userName?: SecretObject;
+ /**
+ * @member {SecretObject} [password] The password for logging into the custom
+ * registry. The password is a secret
+ * object that allows multiple ways of providing the value for it.
+ */
+ password?: SecretObject;
+ /**
+ * @member {string} [identity] Indicates the managed identity assigned to the
+ * custom credential. If a user-assigned identity
+ * this value is the Client ID. If a system-assigned identity, the value will
+ * be `system`. In
+ * the case of a system-assigned identity, the Client ID will be determined
+ * by the runner. This
+ * identity may be used to authenticate to key vault to retrieve credentials
+ * or it may be the only
+ * source of authentication used for accessing the registry.
+ */
+ identity?: string;
+}
+
+/**
+ * @interface
+ * An interface representing Credentials.
+ * The parameters that describes a set of credentials that will be used when a
+ * run is invoked.
+ *
+ */
+export interface Credentials {
+ /**
+ * @member {SourceRegistryCredentials} [sourceRegistry] Describes the
+ * credential parameters for accessing the source registry.
+ */
+ sourceRegistry?: SourceRegistryCredentials;
+ /**
+ * @member {{ [propertyName: string]: CustomRegistryCredentials }}
+ * [customRegistries] Describes the credential parameters for accessing other
+ * custom registries. The key
+ * for the dictionary item will be the registry login server
+ * (myregistry.azurecr.io) and
+ * the value of the item will be the registry credentials for accessing the
+ * registry.
+ */
+ customRegistries?: { [propertyName: string]: CustomRegistryCredentials };
+}
+
+/**
+ * @interface
+ * An interface representing Task.
+ * The task that has the ARM resource and task properties.
+ * The task will have all information to schedule a run against it.
+ *
+ * @extends Resource
+ */
+export interface Task extends Resource {
+ /**
+ * @member {IdentityProperties} [identity] Identity for the resource.
+ */
+ identity?: IdentityProperties;
+ /**
+ * @member {ProvisioningState} [provisioningState] The provisioning state of
+ * the task. Possible values include: 'Creating', 'Updating', 'Deleting',
+ * 'Succeeded', 'Failed', 'Canceled'
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly provisioningState?: ProvisioningState;
+ /**
+ * @member {Date} [creationDate] The creation date of task.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly creationDate?: Date;
+ /**
+ * @member {TaskStatus} [status] The current status of task. Possible values
+ * include: 'Disabled', 'Enabled'
+ */
+ status?: TaskStatus;
+ /**
+ * @member {PlatformProperties} platform The platform properties against
+ * which the run has to happen.
+ */
+ platform: PlatformProperties;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {number} [timeout] Run timeout in seconds. Default value: 3600 .
+ */
+ timeout?: number;
+ /**
+ * @member {TaskStepPropertiesUnion} step The properties of a task step.
+ */
+ step: TaskStepPropertiesUnion;
+ /**
+ * @member {TriggerProperties} [trigger] The properties that describe all
+ * triggers for the task.
+ */
+ trigger?: TriggerProperties;
+ /**
+ * @member {Credentials} [credentials] The properties that describes a set of
+ * credentials that will be used when this run is invoked.
+ */
+ credentials?: Credentials;
+}
+
+/**
+ * @interface
+ * An interface representing PlatformUpdateParameters.
+ * The properties for updating the platform configuration.
+ *
+ */
+export interface PlatformUpdateParameters {
+ /**
+ * @member {OS} [os] The operating system type required for the run. Possible
+ * values include: 'Windows', 'Linux'
+ */
+ os?: OS;
+ /**
+ * @member {Architecture} [architecture] The OS architecture. Possible values
+ * include: 'amd64', 'x86', 'arm'
+ */
+ architecture?: Architecture;
+ /**
+ * @member {Variant} [variant] Variant of the CPU. Possible values include:
+ * 'v6', 'v7', 'v8'
+ */
+ variant?: Variant;
+}
+
+/**
+ * Contains the possible cases for TaskStepUpdateParameters.
+ */
+export type TaskStepUpdateParametersUnion = TaskStepUpdateParameters | DockerBuildStepUpdateParameters | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters;
+
+/**
+ * @interface
+ * An interface representing TaskStepUpdateParameters.
+ * Base properties for updating any task step.
+ *
+ */
+export interface TaskStepUpdateParameters {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "TaskStepUpdateParameters";
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+}
+
+/**
+ * @interface
+ * An interface representing AuthInfoUpdateParameters.
+ * The authorization properties for accessing the source code repository.
+ *
+ */
+export interface AuthInfoUpdateParameters {
+ /**
+ * @member {TokenType} [tokenType] The type of Auth token. Possible values
+ * include: 'PAT', 'OAuth'
+ */
+ tokenType?: TokenType;
+ /**
+ * @member {string} [token] The access token used to access the source
+ * control provider.
+ */
+ token?: string;
+ /**
+ * @member {string} [refreshToken] The refresh token used to refresh the
+ * access token.
+ */
+ refreshToken?: string;
+ /**
+ * @member {string} [scope] The scope of the access token.
+ */
+ scope?: string;
+ /**
+ * @member {number} [expiresIn] Time in seconds that the token remains valid
+ */
+ expiresIn?: number;
+}
+
+/**
+ * @interface
+ * An interface representing SourceUpdateParameters.
+ * The properties for updating the source code repository.
+ *
+ */
+export interface SourceUpdateParameters {
+ /**
+ * @member {SourceControlType} [sourceControlType] The type of source control
+ * service. Possible values include: 'Github', 'VisualStudioTeamService'
+ */
+ sourceControlType?: SourceControlType;
+ /**
+ * @member {string} [repositoryUrl] The full URL to the source code
+ * repository
+ */
+ repositoryUrl?: string;
+ /**
+ * @member {string} [branch] The branch name of the source code.
+ */
+ branch?: string;
+ /**
+ * @member {AuthInfoUpdateParameters} [sourceControlAuthProperties] The
+ * authorization properties for accessing the source code repository and to
+ * set up
+ * webhooks for notifications.
+ */
+ sourceControlAuthProperties?: AuthInfoUpdateParameters;
+}
+
+/**
+ * @interface
+ * An interface representing SourceTriggerUpdateParameters.
+ * The properties for updating a source based trigger.
+ *
+ */
+export interface SourceTriggerUpdateParameters {
+ /**
+ * @member {SourceUpdateParameters} [sourceRepository] The properties that
+ * describes the source(code) for the task.
+ */
+ sourceRepository?: SourceUpdateParameters;
+ /**
+ * @member {SourceTriggerEvent[]} [sourceTriggerEvents] The source event
+ * corresponding to the trigger.
+ */
+ sourceTriggerEvents?: SourceTriggerEvent[];
+ /**
+ * @member {TriggerStatus} [status] The current status of trigger. Possible
+ * values include: 'Disabled', 'Enabled'
+ */
+ status?: TriggerStatus;
+ /**
+ * @member {string} name The name of the trigger.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing BaseImageTriggerUpdateParameters.
+ * The properties for updating base image dependency trigger.
+ *
+ */
+export interface BaseImageTriggerUpdateParameters {
+ /**
+ * @member {BaseImageTriggerType} [baseImageTriggerType] The type of the auto
+ * trigger for base image dependency updates. Possible values include: 'All',
+ * 'Runtime'
+ */
+ baseImageTriggerType?: BaseImageTriggerType;
+ /**
+ * @member {TriggerStatus} [status] The current status of trigger. Possible
+ * values include: 'Disabled', 'Enabled'
+ */
+ status?: TriggerStatus;
+ /**
+ * @member {string} name The name of the trigger.
+ */
+ name: string;
+}
+
+/**
+ * @interface
+ * An interface representing TriggerUpdateParameters.
+ * The properties for updating triggers.
+ *
+ */
+export interface TriggerUpdateParameters {
+ /**
+ * @member {SchedulerTrigger[]} [schedulerTriggers] The collection of
+ * scheduler triggers.
+ */
+ schedulerTriggers?: SchedulerTrigger[];
+ /**
+ * @member {SourceTriggerUpdateParameters[]} [sourceTriggers] The collection
+ * of triggers based on source code repository.
+ */
+ sourceTriggers?: SourceTriggerUpdateParameters[];
+ /**
+ * @member {BaseImageTriggerUpdateParameters} [baseImageTrigger] The trigger
+ * based on base image dependencies.
+ */
+ baseImageTrigger?: BaseImageTriggerUpdateParameters;
+}
+
+/**
+ * @interface
+ * An interface representing TaskUpdateParameters.
+ * The parameters for updating a task.
+ *
+ */
+export interface TaskUpdateParameters {
+ /**
+ * @member {IdentityProperties} [identity] Identity for the resource.
+ */
+ identity?: IdentityProperties;
+ /**
+ * @member {TaskStatus} [status] The current status of task. Possible values
+ * include: 'Disabled', 'Enabled'
+ */
+ status?: TaskStatus;
+ /**
+ * @member {PlatformUpdateParameters} [platform] The platform properties
+ * against which the run has to happen.
+ */
+ platform?: PlatformUpdateParameters;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {number} [timeout] Run timeout in seconds.
+ */
+ timeout?: number;
+ /**
+ * @member {TaskStepUpdateParametersUnion} [step] The properties for updating
+ * a task step.
+ */
+ step?: TaskStepUpdateParametersUnion;
+ /**
+ * @member {TriggerUpdateParameters} [trigger] The properties for updating
+ * trigger properties.
+ */
+ trigger?: TriggerUpdateParameters;
+ /**
+ * @member {Credentials} [credentials] The parameters that describes a set of
+ * credentials that will be used when this run is invoked.
+ */
+ credentials?: Credentials;
+ /**
+ * @member {{ [propertyName: string]: string }} [tags] The ARM resource tags.
+ */
+ tags?: { [propertyName: string]: string };
+}
+
+/**
+ * @interface
+ * An interface representing Argument.
+ * The properties of a run argument.
+ *
+ */
+export interface Argument {
+ /**
+ * @member {string} name The name of the argument.
+ */
+ name: string;
+ /**
+ * @member {string} value The value of the argument.
+ */
+ value: string;
+ /**
+ * @member {boolean} [isSecret] Flag to indicate whether the argument
+ * represents a secret and want to be removed from build logs. Default value:
+ * false .
+ */
+ isSecret?: boolean;
+}
+
+/**
+ * @interface
+ * An interface representing DockerBuildRequest.
+ * The parameters for a docker quick build.
+ *
+ */
+export interface DockerBuildRequest {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "DockerBuildRequest";
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled for the run or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+ /**
+ * @member {string[]} [imageNames] The fully qualified image names including
+ * the repository and tag.
+ */
+ imageNames?: string[];
+ /**
+ * @member {boolean} [isPushEnabled] The value of this property indicates
+ * whether the image built should be pushed to the registry or not. Default
+ * value: true .
+ */
+ isPushEnabled?: boolean;
+ /**
+ * @member {boolean} [noCache] The value of this property indicates whether
+ * the image cache is enabled or not. Default value: false .
+ */
+ noCache?: boolean;
+ /**
+ * @member {string} dockerFilePath The Docker file path relative to the
+ * source location.
+ */
+ dockerFilePath: string;
+ /**
+ * @member {string} [target] The name of the target build stage for the
+ * docker build.
+ */
+ target?: string;
+ /**
+ * @member {Argument[]} [argumentsProperty] The collection of override
+ * arguments to be used when executing the run.
+ */
+ argumentsProperty?: Argument[];
+ /**
+ * @member {number} [timeout] Run timeout in seconds. Default value: 3600 .
+ */
+ timeout?: number;
+ /**
+ * @member {PlatformProperties} platform The platform properties against
+ * which the run has to happen.
+ */
+ platform: PlatformProperties;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {string} [sourceLocation] The URL(absolute or relative) of the
+ * source context. It can be an URL to a tar or git repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ sourceLocation?: string;
+ /**
+ * @member {Credentials} [credentials] The properties that describes a set of
+ * credentials that will be used when this run is invoked.
+ */
+ credentials?: Credentials;
+}
+
+/**
+ * @interface
+ * An interface representing SetValue.
+ * The properties of a overridable value that can be passed to a task template.
+ *
+ */
+export interface SetValue {
+ /**
+ * @member {string} name The name of the overridable value.
+ */
+ name: string;
+ /**
+ * @member {string} value The overridable value.
+ */
+ value: string;
+ /**
+ * @member {boolean} [isSecret] Flag to indicate whether the value represents
+ * a secret or not. Default value: false .
+ */
+ isSecret?: boolean;
+}
+
+/**
+ * @interface
+ * An interface representing FileTaskRunRequest.
+ * The request parameters for a scheduling run against a task file.
+ *
+ */
+export interface FileTaskRunRequest {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "FileTaskRunRequest";
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled for the run or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+ /**
+ * @member {string} taskFilePath The template/definition file path relative
+ * to the source.
+ */
+ taskFilePath: string;
+ /**
+ * @member {string} [valuesFilePath] The values/parameters file path relative
+ * to the source.
+ */
+ valuesFilePath?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+ /**
+ * @member {number} [timeout] Run timeout in seconds. Default value: 3600 .
+ */
+ timeout?: number;
+ /**
+ * @member {PlatformProperties} platform The platform properties against
+ * which the run has to happen.
+ */
+ platform: PlatformProperties;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {string} [sourceLocation] The URL(absolute or relative) of the
+ * source context. It can be an URL to a tar or git repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ sourceLocation?: string;
+ /**
+ * @member {Credentials} [credentials] The properties that describes a set of
+ * credentials that will be used when this run is invoked.
+ */
+ credentials?: Credentials;
+}
+
+/**
+ * @interface
+ * An interface representing TaskRunRequest.
+ * The parameters for a task run request.
+ *
+ */
+export interface TaskRunRequest {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "TaskRunRequest";
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled for the run or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+ /**
+ * @member {string} taskName The name of task against which run has to be
+ * queued.
+ */
+ taskName: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+}
+
+/**
+ * @interface
+ * An interface representing EncodedTaskRunRequest.
+ * The parameters for a quick task run request.
+ *
+ */
+export interface EncodedTaskRunRequest {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "EncodedTaskRunRequest";
+ /**
+ * @member {boolean} [isArchiveEnabled] The value that indicates whether
+ * archiving is enabled for the run or not. Default value: false .
+ */
+ isArchiveEnabled?: boolean;
+ /**
+ * @member {string} encodedTaskContent Base64 encoded value of the
+ * template/definition file content.
+ */
+ encodedTaskContent: string;
+ /**
+ * @member {string} [encodedValuesContent] Base64 encoded value of the
+ * parameters/values file content.
+ */
+ encodedValuesContent?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+ /**
+ * @member {number} [timeout] Run timeout in seconds. Default value: 3600 .
+ */
+ timeout?: number;
+ /**
+ * @member {PlatformProperties} platform The platform properties against
+ * which the run has to happen.
+ */
+ platform: PlatformProperties;
+ /**
+ * @member {AgentProperties} [agentConfiguration] The machine configuration
+ * of the run agent.
+ */
+ agentConfiguration?: AgentProperties;
+ /**
+ * @member {string} [sourceLocation] The URL(absolute or relative) of the
+ * source context. It can be an URL to a tar or git repository.
+ * If it is relative URL, the relative path should be obtained from calling
+ * listBuildSourceUploadUrl API.
+ */
+ sourceLocation?: string;
+ /**
+ * @member {Credentials} [credentials] The properties that describes a set of
+ * credentials that will be used when this run is invoked.
+ */
+ credentials?: Credentials;
+}
+
+/**
+ * @interface
+ * An interface representing DockerBuildStep.
+ * The Docker build step.
+ *
+ */
+export interface DockerBuildStep {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "Docker";
+ /**
+ * @member {BaseImageDependency[]} [baseImageDependencies] List of base image
+ * dependencies for a step.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly baseImageDependencies?: BaseImageDependency[];
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string[]} [imageNames] The fully qualified image names including
+ * the repository and tag.
+ */
+ imageNames?: string[];
+ /**
+ * @member {boolean} [isPushEnabled] The value of this property indicates
+ * whether the image built should be pushed to the registry or not. Default
+ * value: true .
+ */
+ isPushEnabled?: boolean;
+ /**
+ * @member {boolean} [noCache] The value of this property indicates whether
+ * the image cache is enabled or not. Default value: false .
+ */
+ noCache?: boolean;
+ /**
+ * @member {string} dockerFilePath The Docker file path relative to the
+ * source context.
+ */
+ dockerFilePath: string;
+ /**
+ * @member {string} [target] The name of the target build stage for the
+ * docker build.
+ */
+ target?: string;
+ /**
+ * @member {Argument[]} [argumentsProperty] The collection of override
+ * arguments to be used when executing this build step.
+ */
+ argumentsProperty?: Argument[];
+}
+
+/**
+ * @interface
+ * An interface representing FileTaskStep.
+ * The properties of a task step.
+ *
+ */
+export interface FileTaskStep {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "FileTask";
+ /**
+ * @member {BaseImageDependency[]} [baseImageDependencies] List of base image
+ * dependencies for a step.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly baseImageDependencies?: BaseImageDependency[];
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string} taskFilePath The task template/definition file path
+ * relative to the source context.
+ */
+ taskFilePath: string;
+ /**
+ * @member {string} [valuesFilePath] The task values/parameters file path
+ * relative to the source context.
+ */
+ valuesFilePath?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+}
+
+/**
+ * @interface
+ * An interface representing EncodedTaskStep.
+ * The properties of a encoded task step.
+ *
+ */
+export interface EncodedTaskStep {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "EncodedTask";
+ /**
+ * @member {BaseImageDependency[]} [baseImageDependencies] List of base image
+ * dependencies for a step.
+ * **NOTE: This property will not be serialized. It can only be populated by
+ * the server.**
+ */
+ readonly baseImageDependencies?: BaseImageDependency[];
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string} encodedTaskContent Base64 encoded value of the
+ * template/definition file content.
+ */
+ encodedTaskContent: string;
+ /**
+ * @member {string} [encodedValuesContent] Base64 encoded value of the
+ * parameters/values file content.
+ */
+ encodedValuesContent?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+}
+
+/**
+ * @interface
+ * An interface representing DockerBuildStepUpdateParameters.
+ * The properties for updating a docker build step.
+ *
+ */
+export interface DockerBuildStepUpdateParameters {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "Docker";
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string[]} [imageNames] The fully qualified image names including
+ * the repository and tag.
+ */
+ imageNames?: string[];
+ /**
+ * @member {boolean} [isPushEnabled] The value of this property indicates
+ * whether the image built should be pushed to the registry or not.
+ */
+ isPushEnabled?: boolean;
+ /**
+ * @member {boolean} [noCache] The value of this property indicates whether
+ * the image cache is enabled or not.
+ */
+ noCache?: boolean;
+ /**
+ * @member {string} [dockerFilePath] The Docker file path relative to the
+ * source context.
+ */
+ dockerFilePath?: string;
+ /**
+ * @member {Argument[]} [argumentsProperty] The collection of override
+ * arguments to be used when executing this build step.
+ */
+ argumentsProperty?: Argument[];
+ /**
+ * @member {string} [target] The name of the target build stage for the
+ * docker build.
+ */
+ target?: string;
+}
+
+/**
+ * @interface
+ * An interface representing FileTaskStepUpdateParameters.
+ * The properties of updating a task step.
+ *
+ */
+export interface FileTaskStepUpdateParameters {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "FileTask";
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string} [taskFilePath] The task template/definition file path
+ * relative to the source context.
+ */
+ taskFilePath?: string;
+ /**
+ * @member {string} [valuesFilePath] The values/parameters file path relative
+ * to the source context.
+ */
+ valuesFilePath?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+}
+
+/**
+ * @interface
+ * An interface representing EncodedTaskStepUpdateParameters.
+ * The properties for updating encoded task step.
+ *
+ */
+export interface EncodedTaskStepUpdateParameters {
+ /**
+ * @member {string} type Polymorphic Discriminator
+ */
+ type: "EncodedTask";
+ /**
+ * @member {string} [contextPath] The URL(absolute or relative) of the source
+ * context for the task step.
+ */
+ contextPath?: string;
+ /**
+ * @member {string} [contextAccessToken] The token (git PAT or SAS token of
+ * storage account blob) associated with the context for a step.
+ */
+ contextAccessToken?: string;
+ /**
+ * @member {string} [encodedTaskContent] Base64 encoded value of the
+ * template/definition file content.
+ */
+ encodedTaskContent?: string;
+ /**
+ * @member {string} [encodedValuesContent] Base64 encoded value of the
+ * parameters/values file content.
+ */
+ encodedValuesContent?: string;
+ /**
+ * @member {SetValue[]} [values] The collection of overridable values that
+ * can be passed when running a task.
+ */
+ values?: SetValue[];
+}
+
+/**
+ * @interface
+ * An interface representing RunsListOptionalParams.
+ * Optional Parameters.
+ *
+ * @extends RequestOptionsBase
+ */
+export interface RunsListOptionalParams extends msRest.RequestOptionsBase {
+ /**
+ * @member {string} [filter] 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;
+ /**
+ * @member {number} [top] $top is supported for get list of runs, which
+ * limits the maximum number of runs to return.
+ */
+ top?: number;
+}
+
+/**
+ * @interface
+ * An interface representing ContainerRegistryManagementClientOptions.
+ * @extends AzureServiceClientOptions
+ */
+export interface ContainerRegistryManagementClientOptions extends AzureServiceClientOptions {
+ /**
+ * @member {string} [baseUri]
+ */
+ baseUri?: string;
+}
+
+
+/**
+ * @interface
+ * An interface representing the RegistryListResult.
+ * The result of a request to list container registries.
+ *
+ * @extends Array
+ */
+export interface RegistryListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * list of container registries.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the OperationListResult.
+ * The result of a request to list container registry operations.
+ *
+ * @extends Array
+ */
+export interface OperationListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * list of container registry operations.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the ReplicationListResult.
+ * The result of a request to list replications for a container registry.
+ *
+ * @extends Array
+ */
+export interface ReplicationListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * list of replications.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the WebhookListResult.
+ * The result of a request to list webhooks for a container registry.
+ *
+ * @extends Array
+ */
+export interface WebhookListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * list of webhooks.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the EventListResult.
+ * The result of a request to list events for a webhook.
+ *
+ * @extends Array
+ */
+export interface EventListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * list of events.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the RunListResult.
+ * Collection of runs.
+ *
+ * @extends Array
+ */
+export interface RunListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * set of paged results.
+ */
+ nextLink?: string;
+}
+
+/**
+ * @interface
+ * An interface representing the TaskListResult.
+ * The collection of tasks.
+ *
+ * @extends Array
+ */
+export interface TaskListResult extends Array {
+ /**
+ * @member {string} [nextLink] The URI that can be used to request the next
+ * set of paged results.
+ */
+ nextLink?: string;
+}
+
+/**
+ * Defines values for ImportMode.
+ * Possible values include: 'NoForce', 'Force'
+ * @readonly
+ * @enum {string}
+ */
+export type ImportMode = 'NoForce' | 'Force';
+
+/**
+ * Defines values for SkuName.
+ * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium'
+ * @readonly
+ * @enum {string}
+ */
+export type SkuName = 'Classic' | 'Basic' | 'Standard' | 'Premium';
+
+/**
+ * Defines values for SkuTier.
+ * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium'
+ * @readonly
+ * @enum {string}
+ */
+export type SkuTier = 'Classic' | 'Basic' | 'Standard' | 'Premium';
+
+/**
+ * Defines values for ProvisioningState.
+ * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ * @readonly
+ * @enum {string}
+ */
+export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled';
+
+/**
+ * Defines values for DefaultAction.
+ * Possible values include: 'Allow', 'Deny'
+ * @readonly
+ * @enum {string}
+ */
+export type DefaultAction = 'Allow' | 'Deny';
+
+/**
+ * Defines values for Action.
+ * Possible values include: 'Allow'
+ * @readonly
+ * @enum {string}
+ */
+export type Action = 'Allow';
+
+/**
+ * Defines values for PasswordName.
+ * Possible values include: 'password', 'password2'
+ * @readonly
+ * @enum {string}
+ */
+export type PasswordName = 'password' | 'password2';
+
+/**
+ * Defines values for RegistryUsageUnit.
+ * Possible values include: 'Count', 'Bytes'
+ * @readonly
+ * @enum {string}
+ */
+export type RegistryUsageUnit = 'Count' | 'Bytes';
+
+/**
+ * Defines values for PolicyStatus.
+ * Possible values include: 'enabled', 'disabled'
+ * @readonly
+ * @enum {string}
+ */
+export type PolicyStatus = 'enabled' | 'disabled';
+
+/**
+ * Defines values for TrustPolicyType.
+ * Possible values include: 'Notary'
+ * @readonly
+ * @enum {string}
+ */
+export type TrustPolicyType = 'Notary';
+
+/**
+ * Defines values for WebhookStatus.
+ * Possible values include: 'enabled', 'disabled'
+ * @readonly
+ * @enum {string}
+ */
+export type WebhookStatus = 'enabled' | 'disabled';
+
+/**
+ * Defines values for WebhookAction.
+ * Possible values include: 'push', 'delete', 'quarantine', 'chart_push', 'chart_delete'
+ * @readonly
+ * @enum {string}
+ */
+export type WebhookAction = 'push' | 'delete' | 'quarantine' | 'chart_push' | 'chart_delete';
+
+/**
+ * Defines values for RunStatus.
+ * Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled',
+ * 'Error', 'Timeout'
+ * @readonly
+ * @enum {string}
+ */
+export type RunStatus = 'Queued' | 'Started' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled' | 'Error' | 'Timeout';
+
+/**
+ * Defines values for RunType.
+ * Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun'
+ * @readonly
+ * @enum {string}
+ */
+export type RunType = 'QuickBuild' | 'QuickRun' | 'AutoBuild' | 'AutoRun';
+
+/**
+ * Defines values for OS.
+ * Possible values include: 'Windows', 'Linux'
+ * @readonly
+ * @enum {string}
+ */
+export type OS = 'Windows' | 'Linux';
+
+/**
+ * Defines values for Architecture.
+ * Possible values include: 'amd64', 'x86', 'arm'
+ * @readonly
+ * @enum {string}
+ */
+export type Architecture = 'amd64' | 'x86' | 'arm';
+
+/**
+ * Defines values for Variant.
+ * Possible values include: 'v6', 'v7', 'v8'
+ * @readonly
+ * @enum {string}
+ */
+export type Variant = 'v6' | 'v7' | 'v8';
+
+/**
+ * Defines values for ResourceIdentityType.
+ * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned',
+ * 'None'
+ * @readonly
+ * @enum {string}
+ */
+export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None';
+
+/**
+ * Defines values for TaskStatus.
+ * Possible values include: 'Disabled', 'Enabled'
+ * @readonly
+ * @enum {string}
+ */
+export type TaskStatus = 'Disabled' | 'Enabled';
+
+/**
+ * Defines values for BaseImageDependencyType.
+ * Possible values include: 'BuildTime', 'RunTime'
+ * @readonly
+ * @enum {string}
+ */
+export type BaseImageDependencyType = 'BuildTime' | 'RunTime';
+
+/**
+ * Defines values for TriggerStatus.
+ * Possible values include: 'Disabled', 'Enabled'
+ * @readonly
+ * @enum {string}
+ */
+export type TriggerStatus = 'Disabled' | 'Enabled';
+
+/**
+ * Defines values for SourceControlType.
+ * Possible values include: 'Github', 'VisualStudioTeamService'
+ * @readonly
+ * @enum {string}
+ */
+export type SourceControlType = 'Github' | 'VisualStudioTeamService';
+
+/**
+ * Defines values for TokenType.
+ * Possible values include: 'PAT', 'OAuth'
+ * @readonly
+ * @enum {string}
+ */
+export type TokenType = 'PAT' | 'OAuth';
+
+/**
+ * Defines values for SourceTriggerEvent.
+ * Possible values include: 'commit', 'pullrequest'
+ * @readonly
+ * @enum {string}
+ */
+export type SourceTriggerEvent = 'commit' | 'pullrequest';
+
+/**
+ * Defines values for BaseImageTriggerType.
+ * Possible values include: 'All', 'Runtime'
+ * @readonly
+ * @enum {string}
+ */
+export type BaseImageTriggerType = 'All' | 'Runtime';
+
+/**
+ * Defines values for SourceRegistryLoginMode.
+ * Possible values include: 'None', 'Default'
+ * @readonly
+ * @enum {string}
+ */
+export type SourceRegistryLoginMode = 'None' | 'Default';
+
+/**
+ * Defines values for SecretObjectType.
+ * Possible values include: 'Opaque', 'Vaultsecret'
+ * @readonly
+ * @enum {string}
+ */
+export type SecretObjectType = 'Opaque' | 'Vaultsecret';
+
+/**
+ * Contains response data for the checkNameAvailability operation.
+ */
+export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryNameStatus;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type RegistriesGetResponse = Registry & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Registry;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type RegistriesCreateResponse = Registry & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Registry;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type RegistriesUpdateResponse = Registry & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Registry;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroup operation.
+ */
+export type RegistriesListByResourceGroupResponse = RegistryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type RegistriesListResponse = RegistryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListResult;
+ };
+};
+
+/**
+ * Contains response data for the listCredentials operation.
+ */
+export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListCredentialsResult;
+ };
+};
+
+/**
+ * Contains response data for the regenerateCredential operation.
+ */
+export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListCredentialsResult;
+ };
+};
+
+/**
+ * Contains response data for the listUsages operation.
+ */
+export type RegistriesListUsagesResponse = RegistryUsageListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryUsageListResult;
+ };
+};
+
+/**
+ * Contains response data for the listPolicies operation.
+ */
+export type RegistriesListPoliciesResponse = RegistryPolicies & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryPolicies;
+ };
+};
+
+/**
+ * Contains response data for the updatePolicies operation.
+ */
+export type RegistriesUpdatePoliciesResponse = RegistryPolicies & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryPolicies;
+ };
+};
+
+/**
+ * Contains response data for the scheduleRun operation.
+ */
+export type RegistriesScheduleRunResponse = Run & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Run;
+ };
+};
+
+/**
+ * Contains response data for the getBuildSourceUploadUrl operation.
+ */
+export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: SourceUploadDefinition;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type RegistriesBeginCreateResponse = Registry & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Registry;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type RegistriesBeginUpdateResponse = Registry & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Registry;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdatePolicies operation.
+ */
+export type RegistriesBeginUpdatePoliciesResponse = RegistryPolicies & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryPolicies;
+ };
+};
+
+/**
+ * Contains response data for the beginScheduleRun operation.
+ */
+export type RegistriesBeginScheduleRunResponse = Run & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Run;
+ };
+};
+
+/**
+ * Contains response data for the listByResourceGroupNext operation.
+ */
+export type RegistriesListByResourceGroupNextResponse = RegistryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type RegistriesListNextResponse = RegistryListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RegistryListResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type OperationsListResponse = OperationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type OperationsListNextResponse = OperationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: OperationListResult;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type ReplicationsGetResponse = Replication & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Replication;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type ReplicationsCreateResponse = Replication & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Replication;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type ReplicationsUpdateResponse = Replication & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Replication;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type ReplicationsListResponse = ReplicationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ReplicationListResult;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type ReplicationsBeginCreateResponse = Replication & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Replication;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type ReplicationsBeginUpdateResponse = Replication & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Replication;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type ReplicationsListNextResponse = ReplicationListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: ReplicationListResult;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type WebhooksGetResponse = Webhook & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Webhook;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type WebhooksCreateResponse = Webhook & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Webhook;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type WebhooksUpdateResponse = Webhook & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Webhook;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type WebhooksListResponse = WebhookListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: WebhookListResult;
+ };
+};
+
+/**
+ * Contains response data for the ping operation.
+ */
+export type WebhooksPingResponse = EventInfo & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventInfo;
+ };
+};
+
+/**
+ * Contains response data for the getCallbackConfig operation.
+ */
+export type WebhooksGetCallbackConfigResponse = CallbackConfig & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: CallbackConfig;
+ };
+};
+
+/**
+ * Contains response data for the listEvents operation.
+ */
+export type WebhooksListEventsResponse = EventListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventListResult;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type WebhooksBeginCreateResponse = Webhook & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Webhook;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type WebhooksBeginUpdateResponse = Webhook & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Webhook;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type WebhooksListNextResponse = WebhookListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: WebhookListResult;
+ };
+};
+
+/**
+ * Contains response data for the listEventsNext operation.
+ */
+export type WebhooksListEventsNextResponse = EventListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: EventListResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type RunsListResponse = RunListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RunListResult;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type RunsGetResponse = Run & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Run;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type RunsUpdateResponse = Run & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Run;
+ };
+};
+
+/**
+ * Contains response data for the getLogSasUrl operation.
+ */
+export type RunsGetLogSasUrlResponse = RunGetLogResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RunGetLogResult;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type RunsBeginUpdateResponse = Run & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Run;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type RunsListNextResponse = RunListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: RunListResult;
+ };
+};
+
+/**
+ * Contains response data for the list operation.
+ */
+export type TasksListResponse = TaskListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TaskListResult;
+ };
+};
+
+/**
+ * Contains response data for the get operation.
+ */
+export type TasksGetResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the create operation.
+ */
+export type TasksCreateResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the update operation.
+ */
+export type TasksUpdateResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the getDetails operation.
+ */
+export type TasksGetDetailsResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the beginCreate operation.
+ */
+export type TasksBeginCreateResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the beginUpdate operation.
+ */
+export type TasksBeginUpdateResponse = Task & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: Task;
+ };
+};
+
+/**
+ * Contains response data for the listNext operation.
+ */
+export type TasksListNextResponse = TaskListResult & {
+ /**
+ * The underlying HTTP response.
+ */
+ _response: msRest.HttpResponse & {
+ /**
+ * The response body as text (string format)
+ */
+ bodyAsText: string;
+ /**
+ * The response body as parsed JSON or XML
+ */
+ parsedBody: TaskListResult;
+ };
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/mappers.ts
new file mode 100644
index 000000000000..accdd1e273e2
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/mappers.ts
@@ -0,0 +1,3609 @@
+/*
+ * 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.
+ */
+
+import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
+import * as msRest from "@azure/ms-rest-js";
+
+export const CloudError = CloudErrorMapper;
+export const BaseResource = BaseResourceMapper;
+
+export const ImportSourceCredentials: msRest.CompositeMapper = {
+ serializedName: "ImportSourceCredentials",
+ type: {
+ name: "Composite",
+ className: "ImportSourceCredentials",
+ modelProperties: {
+ username: {
+ serializedName: "username",
+ type: {
+ name: "String"
+ }
+ },
+ password: {
+ required: true,
+ serializedName: "password",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ImportSource: msRest.CompositeMapper = {
+ serializedName: "ImportSource",
+ type: {
+ name: "Composite",
+ className: "ImportSource",
+ modelProperties: {
+ resourceId: {
+ serializedName: "resourceId",
+ type: {
+ name: "String"
+ }
+ },
+ registryUri: {
+ serializedName: "registryUri",
+ type: {
+ name: "String"
+ }
+ },
+ credentials: {
+ serializedName: "credentials",
+ type: {
+ name: "Composite",
+ className: "ImportSourceCredentials"
+ }
+ },
+ sourceImage: {
+ required: true,
+ serializedName: "sourceImage",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ImportImageParameters: msRest.CompositeMapper = {
+ serializedName: "ImportImageParameters",
+ type: {
+ name: "Composite",
+ className: "ImportImageParameters",
+ modelProperties: {
+ source: {
+ required: true,
+ serializedName: "source",
+ type: {
+ name: "Composite",
+ className: "ImportSource"
+ }
+ },
+ targetTags: {
+ serializedName: "targetTags",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ untaggedTargetRepositories: {
+ serializedName: "untaggedTargetRepositories",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ mode: {
+ serializedName: "mode",
+ defaultValue: 'NoForce',
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryNameCheckRequest: msRest.CompositeMapper = {
+ serializedName: "RegistryNameCheckRequest",
+ type: {
+ name: "Composite",
+ className: "RegistryNameCheckRequest",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: /^[a-zA-Z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ required: true,
+ isConstant: true,
+ serializedName: "type",
+ defaultValue: 'Microsoft.ContainerRegistry/registries',
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryNameStatus: msRest.CompositeMapper = {
+ serializedName: "RegistryNameStatus",
+ type: {
+ name: "Composite",
+ className: "RegistryNameStatus",
+ modelProperties: {
+ nameAvailable: {
+ serializedName: "nameAvailable",
+ type: {
+ name: "Boolean"
+ }
+ },
+ reason: {
+ serializedName: "reason",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationDisplayDefinition: msRest.CompositeMapper = {
+ serializedName: "OperationDisplayDefinition",
+ type: {
+ name: "Composite",
+ className: "OperationDisplayDefinition",
+ modelProperties: {
+ provider: {
+ serializedName: "provider",
+ type: {
+ name: "String"
+ }
+ },
+ resource: {
+ serializedName: "resource",
+ type: {
+ name: "String"
+ }
+ },
+ operation: {
+ serializedName: "operation",
+ type: {
+ name: "String"
+ }
+ },
+ description: {
+ serializedName: "description",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = {
+ serializedName: "OperationMetricSpecificationDefinition",
+ type: {
+ name: "Composite",
+ className: "OperationMetricSpecificationDefinition",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ displayDescription: {
+ serializedName: "displayDescription",
+ type: {
+ name: "String"
+ }
+ },
+ unit: {
+ serializedName: "unit",
+ type: {
+ name: "String"
+ }
+ },
+ aggregationType: {
+ serializedName: "aggregationType",
+ type: {
+ name: "String"
+ }
+ },
+ internalMetricName: {
+ serializedName: "internalMetricName",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationServiceSpecificationDefinition: msRest.CompositeMapper = {
+ serializedName: "OperationServiceSpecificationDefinition",
+ type: {
+ name: "Composite",
+ className: "OperationServiceSpecificationDefinition",
+ modelProperties: {
+ metricSpecifications: {
+ serializedName: "metricSpecifications",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationMetricSpecificationDefinition"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const OperationDefinition: msRest.CompositeMapper = {
+ serializedName: "OperationDefinition",
+ type: {
+ name: "Composite",
+ className: "OperationDefinition",
+ modelProperties: {
+ origin: {
+ serializedName: "origin",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplayDefinition"
+ }
+ },
+ serviceSpecification: {
+ serializedName: "properties.serviceSpecification",
+ type: {
+ name: "Composite",
+ className: "OperationServiceSpecificationDefinition"
+ }
+ }
+ }
+ }
+};
+
+export const Sku: msRest.CompositeMapper = {
+ serializedName: "Sku",
+ type: {
+ name: "Composite",
+ className: "Sku",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ tier: {
+ readOnly: true,
+ serializedName: "tier",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Status: msRest.CompositeMapper = {
+ serializedName: "Status",
+ type: {
+ name: "Composite",
+ className: "Status",
+ modelProperties: {
+ displayStatus: {
+ readOnly: true,
+ serializedName: "displayStatus",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ readOnly: true,
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ timestamp: {
+ readOnly: true,
+ serializedName: "timestamp",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const StorageAccountProperties: msRest.CompositeMapper = {
+ serializedName: "StorageAccountProperties",
+ type: {
+ name: "Composite",
+ className: "StorageAccountProperties",
+ modelProperties: {
+ id: {
+ required: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const VirtualNetworkRule: msRest.CompositeMapper = {
+ serializedName: "VirtualNetworkRule",
+ type: {
+ name: "Composite",
+ className: "VirtualNetworkRule",
+ modelProperties: {
+ action: {
+ serializedName: "action",
+ defaultValue: 'Allow',
+ type: {
+ name: "String"
+ }
+ },
+ virtualNetworkResourceId: {
+ required: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const IPRule: msRest.CompositeMapper = {
+ serializedName: "IPRule",
+ type: {
+ name: "Composite",
+ className: "IPRule",
+ modelProperties: {
+ action: {
+ serializedName: "action",
+ defaultValue: 'Allow',
+ type: {
+ name: "String"
+ }
+ },
+ iPAddressOrRange: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const NetworkRuleSet: msRest.CompositeMapper = {
+ serializedName: "NetworkRuleSet",
+ type: {
+ name: "Composite",
+ className: "NetworkRuleSet",
+ modelProperties: {
+ defaultAction: {
+ required: true,
+ serializedName: "defaultAction",
+ defaultValue: 'Allow',
+ type: {
+ name: "String"
+ }
+ },
+ virtualNetworkRules: {
+ serializedName: "virtualNetworkRules",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "VirtualNetworkRule"
+ }
+ }
+ }
+ },
+ ipRules: {
+ serializedName: "ipRules",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "IPRule"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Resource: msRest.CompositeMapper = {
+ serializedName: "Resource",
+ type: {
+ name: "Composite",
+ className: "Resource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Registry: msRest.CompositeMapper = {
+ serializedName: "Registry",
+ type: {
+ name: "Composite",
+ className: "Registry",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ sku: {
+ required: true,
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "Sku"
+ }
+ },
+ loginServer: {
+ readOnly: true,
+ serializedName: "properties.loginServer",
+ type: {
+ name: "String"
+ }
+ },
+ creationDate: {
+ readOnly: true,
+ serializedName: "properties.creationDate",
+ type: {
+ name: "DateTime"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ readOnly: true,
+ serializedName: "properties.status",
+ type: {
+ name: "Composite",
+ className: "Status"
+ }
+ },
+ adminUserEnabled: {
+ serializedName: "properties.adminUserEnabled",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ },
+ storageAccount: {
+ serializedName: "properties.storageAccount",
+ type: {
+ name: "Composite",
+ className: "StorageAccountProperties"
+ }
+ },
+ networkRuleSet: {
+ serializedName: "properties.networkRuleSet",
+ type: {
+ name: "Composite",
+ className: "NetworkRuleSet"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "RegistryUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "RegistryUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "Sku"
+ }
+ },
+ adminUserEnabled: {
+ serializedName: "properties.adminUserEnabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ storageAccount: {
+ serializedName: "properties.storageAccount",
+ type: {
+ name: "Composite",
+ className: "StorageAccountProperties"
+ }
+ },
+ networkRuleSet: {
+ serializedName: "properties.networkRuleSet",
+ type: {
+ name: "Composite",
+ className: "NetworkRuleSet"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryPassword: msRest.CompositeMapper = {
+ serializedName: "RegistryPassword",
+ type: {
+ name: "Composite",
+ className: "RegistryPassword",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "password",
+ "password2"
+ ]
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryListCredentialsResult: msRest.CompositeMapper = {
+ serializedName: "RegistryListCredentialsResult",
+ type: {
+ name: "Composite",
+ className: "RegistryListCredentialsResult",
+ modelProperties: {
+ username: {
+ serializedName: "username",
+ type: {
+ name: "String"
+ }
+ },
+ passwords: {
+ serializedName: "passwords",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RegistryPassword"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const RegenerateCredentialParameters: msRest.CompositeMapper = {
+ serializedName: "RegenerateCredentialParameters",
+ type: {
+ name: "Composite",
+ className: "RegenerateCredentialParameters",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "password",
+ "password2"
+ ]
+ }
+ }
+ }
+ }
+};
+
+export const RegistryUsage: msRest.CompositeMapper = {
+ serializedName: "RegistryUsage",
+ type: {
+ name: "Composite",
+ className: "RegistryUsage",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ limit: {
+ serializedName: "limit",
+ type: {
+ name: "Number"
+ }
+ },
+ currentValue: {
+ serializedName: "currentValue",
+ type: {
+ name: "Number"
+ }
+ },
+ unit: {
+ serializedName: "unit",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryUsageListResult: msRest.CompositeMapper = {
+ serializedName: "RegistryUsageListResult",
+ type: {
+ name: "Composite",
+ className: "RegistryUsageListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "RegistryUsage"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const QuarantinePolicy: msRest.CompositeMapper = {
+ serializedName: "QuarantinePolicy",
+ type: {
+ name: "Composite",
+ className: "QuarantinePolicy",
+ modelProperties: {
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TrustPolicy: msRest.CompositeMapper = {
+ serializedName: "TrustPolicy",
+ type: {
+ name: "Composite",
+ className: "TrustPolicy",
+ modelProperties: {
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RegistryPolicies: msRest.CompositeMapper = {
+ serializedName: "RegistryPolicies",
+ type: {
+ name: "Composite",
+ className: "RegistryPolicies",
+ modelProperties: {
+ quarantinePolicy: {
+ serializedName: "quarantinePolicy",
+ type: {
+ name: "Composite",
+ className: "QuarantinePolicy"
+ }
+ },
+ trustPolicy: {
+ serializedName: "trustPolicy",
+ type: {
+ name: "Composite",
+ className: "TrustPolicy"
+ }
+ }
+ }
+ }
+};
+
+export const Replication: msRest.CompositeMapper = {
+ serializedName: "Replication",
+ type: {
+ name: "Composite",
+ className: "Replication",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ readOnly: true,
+ serializedName: "properties.status",
+ type: {
+ name: "Composite",
+ className: "Status"
+ }
+ }
+ }
+ }
+};
+
+export const ReplicationUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "ReplicationUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "ReplicationUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Webhook: msRest.CompositeMapper = {
+ serializedName: "Webhook",
+ type: {
+ name: "Composite",
+ className: "Webhook",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ scope: {
+ serializedName: "properties.scope",
+ type: {
+ name: "String"
+ }
+ },
+ actions: {
+ required: true,
+ serializedName: "properties.actions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const WebhookCreateParameters: msRest.CompositeMapper = {
+ serializedName: "WebhookCreateParameters",
+ type: {
+ name: "Composite",
+ className: "WebhookCreateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ location: {
+ required: true,
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ serviceUri: {
+ required: true,
+ serializedName: "properties.serviceUri",
+ type: {
+ name: "String"
+ }
+ },
+ customHeaders: {
+ serializedName: "properties.customHeaders",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ scope: {
+ serializedName: "properties.scope",
+ type: {
+ name: "String"
+ }
+ },
+ actions: {
+ required: true,
+ serializedName: "properties.actions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const WebhookUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "WebhookUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "WebhookUpdateParameters",
+ modelProperties: {
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ serviceUri: {
+ serializedName: "properties.serviceUri",
+ type: {
+ name: "String"
+ }
+ },
+ customHeaders: {
+ serializedName: "properties.customHeaders",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ scope: {
+ serializedName: "properties.scope",
+ type: {
+ name: "String"
+ }
+ },
+ actions: {
+ serializedName: "properties.actions",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const EventInfo: msRest.CompositeMapper = {
+ serializedName: "EventInfo",
+ type: {
+ name: "Composite",
+ className: "EventInfo",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CallbackConfig: msRest.CompositeMapper = {
+ serializedName: "CallbackConfig",
+ type: {
+ name: "Composite",
+ className: "CallbackConfig",
+ modelProperties: {
+ serviceUri: {
+ required: true,
+ serializedName: "serviceUri",
+ type: {
+ name: "String"
+ }
+ },
+ customHeaders: {
+ serializedName: "customHeaders",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Target: msRest.CompositeMapper = {
+ serializedName: "Target",
+ type: {
+ name: "Composite",
+ className: "Target",
+ modelProperties: {
+ mediaType: {
+ serializedName: "mediaType",
+ type: {
+ name: "String"
+ }
+ },
+ size: {
+ serializedName: "size",
+ type: {
+ name: "Number"
+ }
+ },
+ digest: {
+ serializedName: "digest",
+ type: {
+ name: "String"
+ }
+ },
+ length: {
+ serializedName: "length",
+ type: {
+ name: "Number"
+ }
+ },
+ repository: {
+ serializedName: "repository",
+ type: {
+ name: "String"
+ }
+ },
+ url: {
+ serializedName: "url",
+ type: {
+ name: "String"
+ }
+ },
+ tag: {
+ serializedName: "tag",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ version: {
+ serializedName: "version",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Request: msRest.CompositeMapper = {
+ serializedName: "Request",
+ type: {
+ name: "Composite",
+ className: "Request",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ addr: {
+ serializedName: "addr",
+ type: {
+ name: "String"
+ }
+ },
+ host: {
+ serializedName: "host",
+ type: {
+ name: "String"
+ }
+ },
+ method: {
+ serializedName: "method",
+ type: {
+ name: "String"
+ }
+ },
+ useragent: {
+ serializedName: "useragent",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Actor: msRest.CompositeMapper = {
+ serializedName: "Actor",
+ type: {
+ name: "Composite",
+ className: "Actor",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Source: msRest.CompositeMapper = {
+ serializedName: "Source",
+ type: {
+ name: "Composite",
+ className: "Source",
+ modelProperties: {
+ addr: {
+ serializedName: "addr",
+ type: {
+ name: "String"
+ }
+ },
+ instanceID: {
+ serializedName: "instanceID",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const EventContent: msRest.CompositeMapper = {
+ serializedName: "EventContent",
+ type: {
+ name: "Composite",
+ className: "EventContent",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ timestamp: {
+ serializedName: "timestamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ action: {
+ serializedName: "action",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ serializedName: "target",
+ type: {
+ name: "Composite",
+ className: "Target"
+ }
+ },
+ request: {
+ serializedName: "request",
+ type: {
+ name: "Composite",
+ className: "Request"
+ }
+ },
+ actor: {
+ serializedName: "actor",
+ type: {
+ name: "Composite",
+ className: "Actor"
+ }
+ },
+ source: {
+ serializedName: "source",
+ type: {
+ name: "Composite",
+ className: "Source"
+ }
+ }
+ }
+ }
+};
+
+export const EventRequestMessage: msRest.CompositeMapper = {
+ serializedName: "EventRequestMessage",
+ type: {
+ name: "Composite",
+ className: "EventRequestMessage",
+ modelProperties: {
+ content: {
+ serializedName: "content",
+ type: {
+ name: "Composite",
+ className: "EventContent"
+ }
+ },
+ headers: {
+ serializedName: "headers",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ method: {
+ serializedName: "method",
+ type: {
+ name: "String"
+ }
+ },
+ requestUri: {
+ serializedName: "requestUri",
+ type: {
+ name: "String"
+ }
+ },
+ version: {
+ serializedName: "version",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const EventResponseMessage: msRest.CompositeMapper = {
+ serializedName: "EventResponseMessage",
+ type: {
+ name: "Composite",
+ className: "EventResponseMessage",
+ modelProperties: {
+ content: {
+ serializedName: "content",
+ type: {
+ name: "String"
+ }
+ },
+ headers: {
+ serializedName: "headers",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ reasonPhrase: {
+ serializedName: "reasonPhrase",
+ type: {
+ name: "String"
+ }
+ },
+ statusCode: {
+ serializedName: "statusCode",
+ type: {
+ name: "String"
+ }
+ },
+ version: {
+ serializedName: "version",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Event: msRest.CompositeMapper = {
+ serializedName: "Event",
+ type: {
+ name: "Composite",
+ className: "Event",
+ modelProperties: {
+ ...EventInfo.type.modelProperties,
+ eventRequestMessage: {
+ serializedName: "eventRequestMessage",
+ type: {
+ name: "Composite",
+ className: "EventRequestMessage"
+ }
+ },
+ eventResponseMessage: {
+ serializedName: "eventResponseMessage",
+ type: {
+ name: "Composite",
+ className: "EventResponseMessage"
+ }
+ }
+ }
+ }
+};
+
+export const RunRequest: msRest.CompositeMapper = {
+ serializedName: "RunRequest",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: {
+ serializedName: "type",
+ clientName: "type"
+ },
+ uberParent: "RunRequest",
+ className: "RunRequest",
+ modelProperties: {
+ isArchiveEnabled: {
+ serializedName: "isArchiveEnabled",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ },
+ type: {
+ required: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ImageDescriptor: msRest.CompositeMapper = {
+ serializedName: "ImageDescriptor",
+ type: {
+ name: "Composite",
+ className: "ImageDescriptor",
+ modelProperties: {
+ registry: {
+ serializedName: "registry",
+ type: {
+ name: "String"
+ }
+ },
+ repository: {
+ serializedName: "repository",
+ type: {
+ name: "String"
+ }
+ },
+ tag: {
+ serializedName: "tag",
+ type: {
+ name: "String"
+ }
+ },
+ digest: {
+ serializedName: "digest",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ImageUpdateTrigger: msRest.CompositeMapper = {
+ serializedName: "ImageUpdateTrigger",
+ type: {
+ name: "Composite",
+ className: "ImageUpdateTrigger",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ timestamp: {
+ serializedName: "timestamp",
+ type: {
+ name: "DateTime"
+ }
+ },
+ images: {
+ serializedName: "images",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ImageDescriptor"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const SourceTriggerDescriptor: msRest.CompositeMapper = {
+ serializedName: "SourceTriggerDescriptor",
+ type: {
+ name: "Composite",
+ className: "SourceTriggerDescriptor",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ eventType: {
+ serializedName: "eventType",
+ type: {
+ name: "String"
+ }
+ },
+ commitId: {
+ serializedName: "commitId",
+ type: {
+ name: "String"
+ }
+ },
+ pullRequestId: {
+ serializedName: "pullRequestId",
+ type: {
+ name: "String"
+ }
+ },
+ repositoryUrl: {
+ serializedName: "repositoryUrl",
+ type: {
+ name: "String"
+ }
+ },
+ branchName: {
+ serializedName: "branchName",
+ type: {
+ name: "String"
+ }
+ },
+ providerType: {
+ serializedName: "providerType",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PlatformProperties: msRest.CompositeMapper = {
+ serializedName: "PlatformProperties",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties",
+ modelProperties: {
+ os: {
+ required: true,
+ serializedName: "os",
+ type: {
+ name: "String"
+ }
+ },
+ architecture: {
+ serializedName: "architecture",
+ type: {
+ name: "String"
+ }
+ },
+ variant: {
+ serializedName: "variant",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AgentProperties: msRest.CompositeMapper = {
+ serializedName: "AgentProperties",
+ type: {
+ name: "Composite",
+ className: "AgentProperties",
+ modelProperties: {
+ cpu: {
+ serializedName: "cpu",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const ProxyResource: msRest.CompositeMapper = {
+ serializedName: "ProxyResource",
+ type: {
+ name: "Composite",
+ className: "ProxyResource",
+ modelProperties: {
+ id: {
+ readOnly: true,
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ readOnly: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ readOnly: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Run: msRest.CompositeMapper = {
+ serializedName: "Run",
+ type: {
+ name: "Composite",
+ className: "Run",
+ modelProperties: {
+ ...ProxyResource.type.modelProperties,
+ runId: {
+ serializedName: "properties.runId",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ lastUpdatedTime: {
+ serializedName: "properties.lastUpdatedTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ runType: {
+ serializedName: "properties.runType",
+ type: {
+ name: "String"
+ }
+ },
+ createTime: {
+ serializedName: "properties.createTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ startTime: {
+ serializedName: "properties.startTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ finishTime: {
+ serializedName: "properties.finishTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ outputImages: {
+ serializedName: "properties.outputImages",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ImageDescriptor"
+ }
+ }
+ }
+ },
+ task: {
+ serializedName: "properties.task",
+ type: {
+ name: "String"
+ }
+ },
+ imageUpdateTrigger: {
+ serializedName: "properties.imageUpdateTrigger",
+ type: {
+ name: "Composite",
+ className: "ImageUpdateTrigger"
+ }
+ },
+ sourceTrigger: {
+ serializedName: "properties.sourceTrigger",
+ type: {
+ name: "Composite",
+ className: "SourceTriggerDescriptor"
+ }
+ },
+ platform: {
+ serializedName: "properties.platform",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "properties.agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ sourceRegistryAuth: {
+ serializedName: "properties.sourceRegistryAuth",
+ type: {
+ name: "String"
+ }
+ },
+ customRegistries: {
+ serializedName: "properties.customRegistries",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ runErrorMessage: {
+ readOnly: true,
+ serializedName: "properties.runErrorMessage",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ isArchiveEnabled: {
+ serializedName: "properties.isArchiveEnabled",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const SourceUploadDefinition: msRest.CompositeMapper = {
+ serializedName: "SourceUploadDefinition",
+ type: {
+ name: "Composite",
+ className: "SourceUploadDefinition",
+ modelProperties: {
+ uploadUrl: {
+ serializedName: "uploadUrl",
+ type: {
+ name: "String"
+ }
+ },
+ relativePath: {
+ serializedName: "relativePath",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RunFilter: msRest.CompositeMapper = {
+ serializedName: "RunFilter",
+ type: {
+ name: "Composite",
+ className: "RunFilter",
+ modelProperties: {
+ runId: {
+ serializedName: "runId",
+ type: {
+ name: "String"
+ }
+ },
+ runType: {
+ serializedName: "runType",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ createTime: {
+ serializedName: "createTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ finishTime: {
+ serializedName: "finishTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ outputImageManifests: {
+ serializedName: "outputImageManifests",
+ type: {
+ name: "String"
+ }
+ },
+ isArchiveEnabled: {
+ serializedName: "isArchiveEnabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ taskName: {
+ serializedName: "taskName",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RunUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "RunUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "RunUpdateParameters",
+ modelProperties: {
+ isArchiveEnabled: {
+ serializedName: "isArchiveEnabled",
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const RunGetLogResult: msRest.CompositeMapper = {
+ serializedName: "RunGetLogResult",
+ type: {
+ name: "Composite",
+ className: "RunGetLogResult",
+ modelProperties: {
+ logLink: {
+ serializedName: "logLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const UserIdentityProperties: msRest.CompositeMapper = {
+ serializedName: "UserIdentityProperties",
+ type: {
+ name: "Composite",
+ className: "UserIdentityProperties",
+ modelProperties: {
+ principalId: {
+ serializedName: "principalId",
+ type: {
+ name: "String"
+ }
+ },
+ clientId: {
+ serializedName: "clientId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const IdentityProperties: msRest.CompositeMapper = {
+ serializedName: "IdentityProperties",
+ type: {
+ name: "Composite",
+ className: "IdentityProperties",
+ modelProperties: {
+ principalId: {
+ serializedName: "principalId",
+ type: {
+ name: "String"
+ }
+ },
+ tenantId: {
+ serializedName: "tenantId",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "Enum",
+ allowedValues: [
+ "SystemAssigned",
+ "UserAssigned",
+ "SystemAssigned, UserAssigned",
+ "None"
+ ]
+ }
+ },
+ userAssignedIdentities: {
+ serializedName: "userAssignedIdentities",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "Composite",
+ className: "UserIdentityProperties"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const BaseImageDependency: msRest.CompositeMapper = {
+ serializedName: "BaseImageDependency",
+ type: {
+ name: "Composite",
+ className: "BaseImageDependency",
+ modelProperties: {
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ registry: {
+ serializedName: "registry",
+ type: {
+ name: "String"
+ }
+ },
+ repository: {
+ serializedName: "repository",
+ type: {
+ name: "String"
+ }
+ },
+ tag: {
+ serializedName: "tag",
+ type: {
+ name: "String"
+ }
+ },
+ digest: {
+ serializedName: "digest",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TaskStepProperties: msRest.CompositeMapper = {
+ serializedName: "TaskStepProperties",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: {
+ serializedName: "type",
+ clientName: "type"
+ },
+ uberParent: "TaskStepProperties",
+ className: "TaskStepProperties",
+ modelProperties: {
+ baseImageDependencies: {
+ readOnly: true,
+ serializedName: "baseImageDependencies",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "BaseImageDependency"
+ }
+ }
+ }
+ },
+ contextPath: {
+ serializedName: "contextPath",
+ type: {
+ name: "String"
+ }
+ },
+ contextAccessToken: {
+ serializedName: "contextAccessToken",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ required: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SchedulerTrigger: msRest.CompositeMapper = {
+ serializedName: "SchedulerTrigger",
+ type: {
+ name: "Composite",
+ className: "SchedulerTrigger",
+ modelProperties: {
+ schedule: {
+ required: true,
+ serializedName: "schedule",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AuthInfo: msRest.CompositeMapper = {
+ serializedName: "AuthInfo",
+ type: {
+ name: "Composite",
+ className: "AuthInfo",
+ modelProperties: {
+ tokenType: {
+ required: true,
+ serializedName: "tokenType",
+ type: {
+ name: "String"
+ }
+ },
+ token: {
+ required: true,
+ serializedName: "token",
+ type: {
+ name: "String"
+ }
+ },
+ refreshToken: {
+ serializedName: "refreshToken",
+ type: {
+ name: "String"
+ }
+ },
+ scope: {
+ serializedName: "scope",
+ type: {
+ name: "String"
+ }
+ },
+ expiresIn: {
+ serializedName: "expiresIn",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const SourceProperties: msRest.CompositeMapper = {
+ serializedName: "SourceProperties",
+ type: {
+ name: "Composite",
+ className: "SourceProperties",
+ modelProperties: {
+ sourceControlType: {
+ required: true,
+ serializedName: "sourceControlType",
+ type: {
+ name: "String"
+ }
+ },
+ repositoryUrl: {
+ required: true,
+ serializedName: "repositoryUrl",
+ type: {
+ name: "String"
+ }
+ },
+ branch: {
+ serializedName: "branch",
+ type: {
+ name: "String"
+ }
+ },
+ sourceControlAuthProperties: {
+ serializedName: "sourceControlAuthProperties",
+ type: {
+ name: "Composite",
+ className: "AuthInfo"
+ }
+ }
+ }
+ }
+};
+
+export const SourceTrigger: msRest.CompositeMapper = {
+ serializedName: "SourceTrigger",
+ type: {
+ name: "Composite",
+ className: "SourceTrigger",
+ modelProperties: {
+ sourceRepository: {
+ required: true,
+ serializedName: "sourceRepository",
+ type: {
+ name: "Composite",
+ className: "SourceProperties"
+ }
+ },
+ sourceTriggerEvents: {
+ required: true,
+ serializedName: "sourceTriggerEvents",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const BaseImageTrigger: msRest.CompositeMapper = {
+ serializedName: "BaseImageTrigger",
+ type: {
+ name: "Composite",
+ className: "BaseImageTrigger",
+ modelProperties: {
+ baseImageTriggerType: {
+ required: true,
+ serializedName: "baseImageTriggerType",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TriggerProperties: msRest.CompositeMapper = {
+ serializedName: "TriggerProperties",
+ type: {
+ name: "Composite",
+ className: "TriggerProperties",
+ modelProperties: {
+ schedulerTriggers: {
+ serializedName: "schedulerTriggers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SchedulerTrigger"
+ }
+ }
+ }
+ },
+ sourceTriggers: {
+ serializedName: "sourceTriggers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SourceTrigger"
+ }
+ }
+ }
+ },
+ baseImageTrigger: {
+ serializedName: "baseImageTrigger",
+ type: {
+ name: "Composite",
+ className: "BaseImageTrigger"
+ }
+ }
+ }
+ }
+};
+
+export const SourceRegistryCredentials: msRest.CompositeMapper = {
+ serializedName: "SourceRegistryCredentials",
+ type: {
+ name: "Composite",
+ className: "SourceRegistryCredentials",
+ modelProperties: {
+ loginMode: {
+ serializedName: "loginMode",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SecretObject: msRest.CompositeMapper = {
+ serializedName: "SecretObject",
+ type: {
+ name: "Composite",
+ className: "SecretObject",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CustomRegistryCredentials: msRest.CompositeMapper = {
+ serializedName: "CustomRegistryCredentials",
+ type: {
+ name: "Composite",
+ className: "CustomRegistryCredentials",
+ modelProperties: {
+ userName: {
+ serializedName: "userName",
+ type: {
+ name: "Composite",
+ className: "SecretObject"
+ }
+ },
+ password: {
+ serializedName: "password",
+ type: {
+ name: "Composite",
+ className: "SecretObject"
+ }
+ },
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Credentials: msRest.CompositeMapper = {
+ serializedName: "Credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials",
+ modelProperties: {
+ sourceRegistry: {
+ serializedName: "sourceRegistry",
+ type: {
+ name: "Composite",
+ className: "SourceRegistryCredentials"
+ }
+ },
+ customRegistries: {
+ serializedName: "customRegistries",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "Composite",
+ className: "CustomRegistryCredentials"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Task: msRest.CompositeMapper = {
+ serializedName: "Task",
+ type: {
+ name: "Composite",
+ className: "Task",
+ modelProperties: {
+ ...Resource.type.modelProperties,
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "IdentityProperties"
+ }
+ },
+ provisioningState: {
+ readOnly: true,
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ creationDate: {
+ readOnly: true,
+ serializedName: "properties.creationDate",
+ type: {
+ name: "DateTime"
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ platform: {
+ required: true,
+ serializedName: "properties.platform",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "properties.agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ timeout: {
+ serializedName: "properties.timeout",
+ defaultValue: 3600,
+ constraints: {
+ InclusiveMaximum: 28800,
+ InclusiveMinimum: 300
+ },
+ type: {
+ name: "Number"
+ }
+ },
+ step: {
+ required: true,
+ serializedName: "properties.step",
+ type: {
+ name: "Composite",
+ className: "TaskStepProperties"
+ }
+ },
+ trigger: {
+ serializedName: "properties.trigger",
+ type: {
+ name: "Composite",
+ className: "TriggerProperties"
+ }
+ },
+ credentials: {
+ serializedName: "properties.credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials"
+ }
+ }
+ }
+ }
+};
+
+export const PlatformUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "PlatformUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "PlatformUpdateParameters",
+ modelProperties: {
+ os: {
+ serializedName: "os",
+ type: {
+ name: "String"
+ }
+ },
+ architecture: {
+ serializedName: "architecture",
+ type: {
+ name: "String"
+ }
+ },
+ variant: {
+ serializedName: "variant",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TaskStepUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "TaskStepUpdateParameters",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: {
+ serializedName: "type",
+ clientName: "type"
+ },
+ uberParent: "TaskStepUpdateParameters",
+ className: "TaskStepUpdateParameters",
+ modelProperties: {
+ contextPath: {
+ serializedName: "contextPath",
+ type: {
+ name: "String"
+ }
+ },
+ contextAccessToken: {
+ serializedName: "contextAccessToken",
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ required: true,
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AuthInfoUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "AuthInfoUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "AuthInfoUpdateParameters",
+ modelProperties: {
+ tokenType: {
+ serializedName: "tokenType",
+ type: {
+ name: "String"
+ }
+ },
+ token: {
+ serializedName: "token",
+ type: {
+ name: "String"
+ }
+ },
+ refreshToken: {
+ serializedName: "refreshToken",
+ type: {
+ name: "String"
+ }
+ },
+ scope: {
+ serializedName: "scope",
+ type: {
+ name: "String"
+ }
+ },
+ expiresIn: {
+ serializedName: "expiresIn",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const SourceUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "SourceUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "SourceUpdateParameters",
+ modelProperties: {
+ sourceControlType: {
+ serializedName: "sourceControlType",
+ type: {
+ name: "String"
+ }
+ },
+ repositoryUrl: {
+ serializedName: "repositoryUrl",
+ type: {
+ name: "String"
+ }
+ },
+ branch: {
+ serializedName: "branch",
+ type: {
+ name: "String"
+ }
+ },
+ sourceControlAuthProperties: {
+ serializedName: "sourceControlAuthProperties",
+ type: {
+ name: "Composite",
+ className: "AuthInfoUpdateParameters"
+ }
+ }
+ }
+ }
+};
+
+export const SourceTriggerUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "SourceTriggerUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "SourceTriggerUpdateParameters",
+ modelProperties: {
+ sourceRepository: {
+ serializedName: "sourceRepository",
+ type: {
+ name: "Composite",
+ className: "SourceUpdateParameters"
+ }
+ },
+ sourceTriggerEvents: {
+ serializedName: "sourceTriggerEvents",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const BaseImageTriggerUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "BaseImageTriggerUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "BaseImageTriggerUpdateParameters",
+ modelProperties: {
+ baseImageTriggerType: {
+ serializedName: "baseImageTriggerType",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TriggerUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "TriggerUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "TriggerUpdateParameters",
+ modelProperties: {
+ schedulerTriggers: {
+ serializedName: "schedulerTriggers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SchedulerTrigger"
+ }
+ }
+ }
+ },
+ sourceTriggers: {
+ serializedName: "sourceTriggers",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SourceTriggerUpdateParameters"
+ }
+ }
+ }
+ },
+ baseImageTrigger: {
+ serializedName: "baseImageTrigger",
+ type: {
+ name: "Composite",
+ className: "BaseImageTriggerUpdateParameters"
+ }
+ }
+ }
+ }
+};
+
+export const TaskUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "TaskUpdateParameters",
+ type: {
+ name: "Composite",
+ className: "TaskUpdateParameters",
+ modelProperties: {
+ identity: {
+ serializedName: "identity",
+ type: {
+ name: "Composite",
+ className: "IdentityProperties"
+ }
+ },
+ status: {
+ serializedName: "properties.status",
+ type: {
+ name: "String"
+ }
+ },
+ platform: {
+ serializedName: "properties.platform",
+ type: {
+ name: "Composite",
+ className: "PlatformUpdateParameters"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "properties.agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ timeout: {
+ serializedName: "properties.timeout",
+ type: {
+ name: "Number"
+ }
+ },
+ step: {
+ serializedName: "properties.step",
+ type: {
+ name: "Composite",
+ className: "TaskStepUpdateParameters"
+ }
+ },
+ trigger: {
+ serializedName: "properties.trigger",
+ type: {
+ name: "Composite",
+ className: "TriggerUpdateParameters"
+ }
+ },
+ credentials: {
+ serializedName: "properties.credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials"
+ }
+ },
+ tags: {
+ serializedName: "tags",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const Argument: msRest.CompositeMapper = {
+ serializedName: "Argument",
+ type: {
+ name: "Composite",
+ className: "Argument",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ isSecret: {
+ serializedName: "isSecret",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const DockerBuildRequest: msRest.CompositeMapper = {
+ serializedName: "DockerBuildRequest",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator,
+ uberParent: "RunRequest",
+ className: "DockerBuildRequest",
+ modelProperties: {
+ ...RunRequest.type.modelProperties,
+ imageNames: {
+ serializedName: "imageNames",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ isPushEnabled: {
+ serializedName: "isPushEnabled",
+ defaultValue: true,
+ type: {
+ name: "Boolean"
+ }
+ },
+ noCache: {
+ serializedName: "noCache",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ },
+ dockerFilePath: {
+ required: true,
+ serializedName: "dockerFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ serializedName: "target",
+ type: {
+ name: "String"
+ }
+ },
+ argumentsProperty: {
+ serializedName: "arguments",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Argument"
+ }
+ }
+ }
+ },
+ timeout: {
+ serializedName: "timeout",
+ defaultValue: 3600,
+ constraints: {
+ InclusiveMaximum: 28800,
+ InclusiveMinimum: 300
+ },
+ type: {
+ name: "Number"
+ }
+ },
+ platform: {
+ required: true,
+ serializedName: "platform",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ sourceLocation: {
+ serializedName: "sourceLocation",
+ type: {
+ name: "String"
+ }
+ },
+ credentials: {
+ serializedName: "credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials"
+ }
+ }
+ }
+ }
+};
+
+export const SetValue: msRest.CompositeMapper = {
+ serializedName: "SetValue",
+ type: {
+ name: "Composite",
+ className: "SetValue",
+ modelProperties: {
+ name: {
+ required: true,
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ required: true,
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ isSecret: {
+ serializedName: "isSecret",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const FileTaskRunRequest: msRest.CompositeMapper = {
+ serializedName: "FileTaskRunRequest",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator,
+ uberParent: "RunRequest",
+ className: "FileTaskRunRequest",
+ modelProperties: {
+ ...RunRequest.type.modelProperties,
+ taskFilePath: {
+ required: true,
+ serializedName: "taskFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ valuesFilePath: {
+ serializedName: "valuesFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ },
+ timeout: {
+ serializedName: "timeout",
+ defaultValue: 3600,
+ constraints: {
+ InclusiveMaximum: 28800,
+ InclusiveMinimum: 300
+ },
+ type: {
+ name: "Number"
+ }
+ },
+ platform: {
+ required: true,
+ serializedName: "platform",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ sourceLocation: {
+ serializedName: "sourceLocation",
+ type: {
+ name: "String"
+ }
+ },
+ credentials: {
+ serializedName: "credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials"
+ }
+ }
+ }
+ }
+};
+
+export const TaskRunRequest: msRest.CompositeMapper = {
+ serializedName: "TaskRunRequest",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator,
+ uberParent: "RunRequest",
+ className: "TaskRunRequest",
+ modelProperties: {
+ ...RunRequest.type.modelProperties,
+ taskName: {
+ required: true,
+ serializedName: "taskName",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const EncodedTaskRunRequest: msRest.CompositeMapper = {
+ serializedName: "EncodedTaskRunRequest",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator,
+ uberParent: "RunRequest",
+ className: "EncodedTaskRunRequest",
+ modelProperties: {
+ ...RunRequest.type.modelProperties,
+ encodedTaskContent: {
+ required: true,
+ serializedName: "encodedTaskContent",
+ type: {
+ name: "String"
+ }
+ },
+ encodedValuesContent: {
+ serializedName: "encodedValuesContent",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ },
+ timeout: {
+ serializedName: "timeout",
+ defaultValue: 3600,
+ constraints: {
+ InclusiveMaximum: 28800,
+ InclusiveMinimum: 300
+ },
+ type: {
+ name: "Number"
+ }
+ },
+ platform: {
+ required: true,
+ serializedName: "platform",
+ type: {
+ name: "Composite",
+ className: "PlatformProperties"
+ }
+ },
+ agentConfiguration: {
+ serializedName: "agentConfiguration",
+ type: {
+ name: "Composite",
+ className: "AgentProperties"
+ }
+ },
+ sourceLocation: {
+ serializedName: "sourceLocation",
+ type: {
+ name: "String"
+ }
+ },
+ credentials: {
+ serializedName: "credentials",
+ type: {
+ name: "Composite",
+ className: "Credentials"
+ }
+ }
+ }
+ }
+};
+
+export const DockerBuildStep: msRest.CompositeMapper = {
+ serializedName: "Docker",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator,
+ uberParent: "TaskStepProperties",
+ className: "DockerBuildStep",
+ modelProperties: {
+ ...TaskStepProperties.type.modelProperties,
+ imageNames: {
+ serializedName: "imageNames",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ isPushEnabled: {
+ serializedName: "isPushEnabled",
+ defaultValue: true,
+ type: {
+ name: "Boolean"
+ }
+ },
+ noCache: {
+ serializedName: "noCache",
+ defaultValue: false,
+ type: {
+ name: "Boolean"
+ }
+ },
+ dockerFilePath: {
+ required: true,
+ serializedName: "dockerFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ serializedName: "target",
+ type: {
+ name: "String"
+ }
+ },
+ argumentsProperty: {
+ serializedName: "arguments",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Argument"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const FileTaskStep: msRest.CompositeMapper = {
+ serializedName: "FileTask",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator,
+ uberParent: "TaskStepProperties",
+ className: "FileTaskStep",
+ modelProperties: {
+ ...TaskStepProperties.type.modelProperties,
+ taskFilePath: {
+ required: true,
+ serializedName: "taskFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ valuesFilePath: {
+ serializedName: "valuesFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const EncodedTaskStep: msRest.CompositeMapper = {
+ serializedName: "EncodedTask",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator,
+ uberParent: "TaskStepProperties",
+ className: "EncodedTaskStep",
+ modelProperties: {
+ ...TaskStepProperties.type.modelProperties,
+ encodedTaskContent: {
+ required: true,
+ serializedName: "encodedTaskContent",
+ type: {
+ name: "String"
+ }
+ },
+ encodedValuesContent: {
+ serializedName: "encodedValuesContent",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "Docker",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator,
+ uberParent: "TaskStepUpdateParameters",
+ className: "DockerBuildStepUpdateParameters",
+ modelProperties: {
+ ...TaskStepUpdateParameters.type.modelProperties,
+ imageNames: {
+ serializedName: "imageNames",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ isPushEnabled: {
+ serializedName: "isPushEnabled",
+ type: {
+ name: "Boolean"
+ }
+ },
+ noCache: {
+ serializedName: "noCache",
+ type: {
+ name: "Boolean"
+ }
+ },
+ dockerFilePath: {
+ serializedName: "dockerFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ argumentsProperty: {
+ serializedName: "arguments",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Argument"
+ }
+ }
+ }
+ },
+ target: {
+ serializedName: "target",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const FileTaskStepUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "FileTask",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator,
+ uberParent: "TaskStepUpdateParameters",
+ className: "FileTaskStepUpdateParameters",
+ modelProperties: {
+ ...TaskStepUpdateParameters.type.modelProperties,
+ taskFilePath: {
+ serializedName: "taskFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ valuesFilePath: {
+ serializedName: "valuesFilePath",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const EncodedTaskStepUpdateParameters: msRest.CompositeMapper = {
+ serializedName: "EncodedTask",
+ type: {
+ name: "Composite",
+ polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator,
+ uberParent: "TaskStepUpdateParameters",
+ className: "EncodedTaskStepUpdateParameters",
+ modelProperties: {
+ ...TaskStepUpdateParameters.type.modelProperties,
+ encodedTaskContent: {
+ serializedName: "encodedTaskContent",
+ type: {
+ name: "String"
+ }
+ },
+ encodedValuesContent: {
+ serializedName: "encodedValuesContent",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SetValue"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const RegistryListResult: msRest.CompositeMapper = {
+ serializedName: "RegistryListResult",
+ type: {
+ name: "Composite",
+ className: "RegistryListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Registry"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const OperationListResult: msRest.CompositeMapper = {
+ serializedName: "OperationListResult",
+ type: {
+ name: "Composite",
+ className: "OperationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "OperationDefinition"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ReplicationListResult: msRest.CompositeMapper = {
+ serializedName: "ReplicationListResult",
+ type: {
+ name: "Composite",
+ className: "ReplicationListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Replication"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const WebhookListResult: msRest.CompositeMapper = {
+ serializedName: "WebhookListResult",
+ type: {
+ name: "Composite",
+ className: "WebhookListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Webhook"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const EventListResult: msRest.CompositeMapper = {
+ serializedName: "EventListResult",
+ type: {
+ name: "Composite",
+ className: "EventListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Event"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const RunListResult: msRest.CompositeMapper = {
+ serializedName: "RunListResult",
+ type: {
+ name: "Composite",
+ className: "RunListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Run"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const TaskListResult: msRest.CompositeMapper = {
+ serializedName: "TaskListResult",
+ type: {
+ name: "Composite",
+ className: "TaskListResult",
+ modelProperties: {
+ value: {
+ serializedName: "",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "Task"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const discriminators = {
+ 'RunRequest' : RunRequest,
+ 'TaskStepProperties' : TaskStepProperties,
+ 'TaskStepUpdateParameters' : TaskStepUpdateParameters,
+ 'RunRequest.DockerBuildRequest' : DockerBuildRequest,
+ 'RunRequest.FileTaskRunRequest' : FileTaskRunRequest,
+ 'RunRequest.TaskRunRequest' : TaskRunRequest,
+ 'RunRequest.EncodedTaskRunRequest' : EncodedTaskRunRequest,
+ 'TaskStepProperties.Docker' : DockerBuildStep,
+ 'TaskStepProperties.FileTask' : FileTaskStep,
+ 'TaskStepProperties.EncodedTask' : EncodedTaskStep,
+ 'TaskStepUpdateParameters.Docker' : DockerBuildStepUpdateParameters,
+ 'TaskStepUpdateParameters.FileTask' : FileTaskStepUpdateParameters,
+ 'TaskStepUpdateParameters.EncodedTask' : EncodedTaskStepUpdateParameters
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/operationsMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/operationsMappers.ts
new file mode 100644
index 000000000000..9d87431dc184
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/operationsMappers.ts
@@ -0,0 +1,20 @@
+/*
+ * 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,
+ OperationListResult,
+ OperationDefinition,
+ OperationDisplayDefinition,
+ OperationServiceSpecificationDefinition,
+ OperationMetricSpecificationDefinition,
+ CloudError
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/lib/models/parameters.ts
new file mode 100644
index 000000000000..1774992faa36
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/parameters.ts
@@ -0,0 +1,174 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+
+export const acceptLanguage: msRest.OperationParameter = {
+ parameterPath: "acceptLanguage",
+ mapper: {
+ serializedName: "accept-language",
+ defaultValue: 'en-US',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const apiVersion0: msRest.OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ isConstant: true,
+ serializedName: "api-version",
+ defaultValue: '2017-10-01',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const apiVersion1: msRest.OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ required: true,
+ isConstant: true,
+ serializedName: "api-version",
+ defaultValue: '2019-04-01',
+ type: {
+ name: "String"
+ }
+ }
+};
+export const filter: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "filter"
+ ],
+ mapper: {
+ serializedName: "$filter",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const nextPageLink: msRest.OperationURLParameter = {
+ parameterPath: "nextPageLink",
+ mapper: {
+ required: true,
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+export const registryName: msRest.OperationURLParameter = {
+ parameterPath: "registryName",
+ mapper: {
+ required: true,
+ serializedName: "registryName",
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: /^[a-zA-Z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const replicationName: msRest.OperationURLParameter = {
+ parameterPath: "replicationName",
+ mapper: {
+ required: true,
+ serializedName: "replicationName",
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: /^[a-zA-Z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const resourceGroupName: msRest.OperationURLParameter = {
+ parameterPath: "resourceGroupName",
+ mapper: {
+ required: true,
+ serializedName: "resourceGroupName",
+ constraints: {
+ MinLength: 1
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const runId: msRest.OperationURLParameter = {
+ parameterPath: "runId",
+ mapper: {
+ required: true,
+ serializedName: "runId",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const subscriptionId: msRest.OperationURLParameter = {
+ parameterPath: "subscriptionId",
+ mapper: {
+ required: true,
+ serializedName: "subscriptionId",
+ type: {
+ name: "String"
+ }
+ }
+};
+export const taskName: msRest.OperationURLParameter = {
+ parameterPath: "taskName",
+ mapper: {
+ required: true,
+ serializedName: "taskName",
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: /^[a-zA-Z0-9-_]*$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
+export const top: msRest.OperationQueryParameter = {
+ parameterPath: [
+ "options",
+ "top"
+ ],
+ mapper: {
+ serializedName: "$top",
+ type: {
+ name: "Number"
+ }
+ }
+};
+export const webhookName: msRest.OperationURLParameter = {
+ parameterPath: "webhookName",
+ mapper: {
+ required: true,
+ serializedName: "webhookName",
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: /^[a-zA-Z0-9]*$/
+ },
+ type: {
+ name: "String"
+ }
+ }
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/registriesMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/registriesMappers.ts
new file mode 100644
index 000000000000..7e66ff1484cd
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/registriesMappers.ts
@@ -0,0 +1,74 @@
+/*
+ * 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,
+ ImportImageParameters,
+ ImportSource,
+ ImportSourceCredentials,
+ CloudError,
+ RegistryNameCheckRequest,
+ RegistryNameStatus,
+ Registry,
+ Resource,
+ BaseResource,
+ Sku,
+ Status,
+ StorageAccountProperties,
+ NetworkRuleSet,
+ VirtualNetworkRule,
+ IPRule,
+ RegistryUpdateParameters,
+ RegistryListResult,
+ RegistryListCredentialsResult,
+ RegistryPassword,
+ RegenerateCredentialParameters,
+ RegistryUsageListResult,
+ RegistryUsage,
+ RegistryPolicies,
+ QuarantinePolicy,
+ TrustPolicy,
+ RunRequest,
+ Run,
+ ProxyResource,
+ ImageDescriptor,
+ ImageUpdateTrigger,
+ SourceTriggerDescriptor,
+ PlatformProperties,
+ AgentProperties,
+ SourceUploadDefinition,
+ Replication,
+ Webhook,
+ Task,
+ IdentityProperties,
+ UserIdentityProperties,
+ TaskStepProperties,
+ BaseImageDependency,
+ TriggerProperties,
+ SchedulerTrigger,
+ SourceTrigger,
+ SourceProperties,
+ AuthInfo,
+ BaseImageTrigger,
+ Credentials,
+ SourceRegistryCredentials,
+ CustomRegistryCredentials,
+ SecretObject,
+ DockerBuildRequest,
+ Argument,
+ FileTaskRunRequest,
+ SetValue,
+ TaskRunRequest,
+ EncodedTaskRunRequest,
+ DockerBuildStep,
+ FileTaskStep,
+ EncodedTaskStep
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/replicationsMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/replicationsMappers.ts
new file mode 100644
index 000000000000..e84bad6674e9
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/replicationsMappers.ts
@@ -0,0 +1,55 @@
+/*
+ * 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,
+ Replication,
+ Resource,
+ BaseResource,
+ Status,
+ CloudError,
+ ReplicationUpdateParameters,
+ ReplicationListResult,
+ Registry,
+ Sku,
+ StorageAccountProperties,
+ NetworkRuleSet,
+ VirtualNetworkRule,
+ IPRule,
+ Webhook,
+ Task,
+ IdentityProperties,
+ UserIdentityProperties,
+ PlatformProperties,
+ AgentProperties,
+ TaskStepProperties,
+ BaseImageDependency,
+ TriggerProperties,
+ SchedulerTrigger,
+ SourceTrigger,
+ SourceProperties,
+ AuthInfo,
+ BaseImageTrigger,
+ Credentials,
+ SourceRegistryCredentials,
+ CustomRegistryCredentials,
+ SecretObject,
+ ProxyResource,
+ DockerBuildStep,
+ Argument,
+ FileTaskStep,
+ SetValue,
+ EncodedTaskStep,
+ Run,
+ ImageDescriptor,
+ ImageUpdateTrigger,
+ SourceTriggerDescriptor
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/runsMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/runsMappers.ts
new file mode 100644
index 000000000000..ed9ade58efcf
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/runsMappers.ts
@@ -0,0 +1,56 @@
+/*
+ * 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,
+ RunListResult,
+ Run,
+ ProxyResource,
+ BaseResource,
+ ImageDescriptor,
+ ImageUpdateTrigger,
+ SourceTriggerDescriptor,
+ PlatformProperties,
+ AgentProperties,
+ CloudError,
+ RunUpdateParameters,
+ RunGetLogResult,
+ Resource,
+ Task,
+ IdentityProperties,
+ UserIdentityProperties,
+ TaskStepProperties,
+ BaseImageDependency,
+ TriggerProperties,
+ SchedulerTrigger,
+ SourceTrigger,
+ SourceProperties,
+ AuthInfo,
+ BaseImageTrigger,
+ Credentials,
+ SourceRegistryCredentials,
+ CustomRegistryCredentials,
+ SecretObject,
+ DockerBuildStep,
+ Argument,
+ FileTaskStep,
+ SetValue,
+ EncodedTaskStep,
+ Registry,
+ Sku,
+ Status,
+ StorageAccountProperties,
+ NetworkRuleSet,
+ VirtualNetworkRule,
+ IPRule,
+ Replication,
+ Webhook
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/tasksMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/tasksMappers.ts
new file mode 100644
index 000000000000..d2b8d07a9ddb
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/tasksMappers.ts
@@ -0,0 +1,65 @@
+/*
+ * 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,
+ TaskListResult,
+ Task,
+ Resource,
+ BaseResource,
+ IdentityProperties,
+ UserIdentityProperties,
+ PlatformProperties,
+ AgentProperties,
+ TaskStepProperties,
+ BaseImageDependency,
+ TriggerProperties,
+ SchedulerTrigger,
+ SourceTrigger,
+ SourceProperties,
+ AuthInfo,
+ BaseImageTrigger,
+ Credentials,
+ SourceRegistryCredentials,
+ CustomRegistryCredentials,
+ SecretObject,
+ CloudError,
+ TaskUpdateParameters,
+ PlatformUpdateParameters,
+ TaskStepUpdateParameters,
+ TriggerUpdateParameters,
+ SourceTriggerUpdateParameters,
+ SourceUpdateParameters,
+ AuthInfoUpdateParameters,
+ BaseImageTriggerUpdateParameters,
+ Registry,
+ Sku,
+ Status,
+ StorageAccountProperties,
+ NetworkRuleSet,
+ VirtualNetworkRule,
+ IPRule,
+ Replication,
+ Webhook,
+ ProxyResource,
+ DockerBuildStep,
+ Argument,
+ FileTaskStep,
+ SetValue,
+ EncodedTaskStep,
+ DockerBuildStepUpdateParameters,
+ FileTaskStepUpdateParameters,
+ EncodedTaskStepUpdateParameters,
+ Run,
+ ImageDescriptor,
+ ImageUpdateTrigger,
+ SourceTriggerDescriptor
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/models/webhooksMappers.ts b/sdk/containerregistry/arm-containerregistry/lib/models/webhooksMappers.ts
new file mode 100644
index 000000000000..a4d3c13369c0
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/models/webhooksMappers.ts
@@ -0,0 +1,67 @@
+/*
+ * 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,
+ Webhook,
+ Resource,
+ BaseResource,
+ CloudError,
+ WebhookCreateParameters,
+ WebhookUpdateParameters,
+ WebhookListResult,
+ EventInfo,
+ CallbackConfig,
+ EventListResult,
+ Event,
+ EventRequestMessage,
+ EventContent,
+ Target,
+ Request,
+ Actor,
+ Source,
+ EventResponseMessage,
+ Registry,
+ Sku,
+ Status,
+ StorageAccountProperties,
+ NetworkRuleSet,
+ VirtualNetworkRule,
+ IPRule,
+ Replication,
+ Task,
+ IdentityProperties,
+ UserIdentityProperties,
+ PlatformProperties,
+ AgentProperties,
+ TaskStepProperties,
+ BaseImageDependency,
+ TriggerProperties,
+ SchedulerTrigger,
+ SourceTrigger,
+ SourceProperties,
+ AuthInfo,
+ BaseImageTrigger,
+ Credentials,
+ SourceRegistryCredentials,
+ CustomRegistryCredentials,
+ SecretObject,
+ ProxyResource,
+ DockerBuildStep,
+ Argument,
+ FileTaskStep,
+ SetValue,
+ EncodedTaskStep,
+ Run,
+ ImageDescriptor,
+ ImageUpdateTrigger,
+ SourceTriggerDescriptor
+} from "../models/mappers";
+
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/index.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/index.ts
new file mode 100644
index 000000000000..432e208722fb
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/index.ts
@@ -0,0 +1,16 @@
+/*
+ * 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 * from "./registries";
+export * from "./operations";
+export * from "./replications";
+export * from "./webhooks";
+export * from "./runs";
+export * from "./tasks";
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/operations.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/operations.ts
new file mode 100644
index 000000000000..f3336832e747
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/operations.ts
@@ -0,0 +1,123 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as Models from "../models";
+import * as Mappers from "../models/operationsMappers";
+import * as Parameters from "../models/parameters";
+import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
+
+/** Class representing a Operations. */
+export class Operations {
+ private readonly client: ContainerRegistryManagementClientContext;
+
+ /**
+ * Create a Operations.
+ * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ContainerRegistryManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all of the available Azure Container Registry REST API operations.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "providers/Microsoft.ContainerRegistry/operations",
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/registries.ts
new file mode 100644
index 000000000000..23020287122a
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/registries.ts
@@ -0,0 +1,1032 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/registriesMappers";
+import * as Parameters from "../models/parameters";
+import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
+
+/** Class representing a Registries. */
+export class Registries {
+ private readonly client: ContainerRegistryManagementClientContext;
+
+ /**
+ * Create a Registries.
+ * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ContainerRegistryManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ importImage(resourceGroupName: string, registryName: string, parameters: Models.ImportImageParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginImportImage(resourceGroupName,registryName,parameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Checks whether the container registry name is available for use. The name must contain only
+ * alphanumeric characters, be globally unique, and between 5 and 50 characters in length.
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @param callback The callback
+ */
+ checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, callback: msRest.ServiceCallback): void;
+ /**
+ * @param registryNameCheckRequest The object containing information for the availability request.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ checkNameAvailability(registryNameCheckRequest: Models.RegistryNameCheckRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ registryNameCheckRequest,
+ options
+ },
+ checkNameAvailabilityOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets the properties of the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, registryName: string, registry: Models.Registry, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreate(resourceGroupName,registryName,registry,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Deletes a container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,registryName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Updates a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, registryName: string, registryUpdateParameters: Models.RegistryUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,registryName,registryUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ options
+ },
+ listByResourceGroupOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param callback The callback
+ */
+ list(callback: msRest.ServiceCallback): void;
+ /**
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the login credentials for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listCredentials(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ listCredentials(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listCredentials(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listCredentials(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listCredentialsOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Regenerates one of the login credentials for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated
+ * -- password or password2.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: Models.RegenerateCredentialParameters, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated
+ * -- password or password2.
+ * @param callback The callback
+ */
+ regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: Models.RegenerateCredentialParameters, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param regenerateCredentialParameters Specifies name of the password which should be regenerated
+ * -- password or password2.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: Models.RegenerateCredentialParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ regenerateCredential(resourceGroupName: string, registryName: string, regenerateCredentialParameters: Models.RegenerateCredentialParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ regenerateCredentialParameters,
+ options
+ },
+ regenerateCredentialOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets the quota usages for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ listUsages(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listUsages(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listUsagesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists the policies for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listPolicies(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ listPolicies(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listPolicies(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listPolicies(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listPoliciesOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Updates the policies for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryPoliciesUpdateParameters The parameters for updating policies of a container
+ * registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ updatePolicies(resourceGroupName: string, registryName: string, registryPoliciesUpdateParameters: Models.RegistryPolicies, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdatePolicies(resourceGroupName,registryName,registryPoliciesUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ scheduleRun(resourceGroupName: string, registryName: string, runRequest: Models.RunRequestUnion, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginScheduleRun(resourceGroupName,registryName,runRequest,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Get the upload location for the user to be able to upload the source.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getBuildSourceUploadUrl(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ getBuildSourceUploadUrl(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getBuildSourceUploadUrl(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getBuildSourceUploadUrl(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ getBuildSourceUploadUrlOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Copies an image to this container registry from the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param parameters The parameters specifying the image to copy and the source container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginImportImage(resourceGroupName: string, registryName: string, parameters: Models.ImportImageParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ parameters,
+ options
+ },
+ beginImportImageOperationSpec,
+ options);
+ }
+
+ /**
+ * Creates a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registry The parameters for creating a container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, registryName: string, registry: Models.Registry, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ registry,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * Deletes a container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * Updates a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryUpdateParameters The parameters for updating a container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, registryName: string, registryUpdateParameters: Models.RegistryUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ registryUpdateParameters,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Updates the policies for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param registryPoliciesUpdateParameters The parameters for updating policies of a container
+ * registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdatePolicies(resourceGroupName: string, registryName: string, registryPoliciesUpdateParameters: Models.RegistryPolicies, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ registryPoliciesUpdateParameters,
+ options
+ },
+ beginUpdatePoliciesOperationSpec,
+ options);
+ }
+
+ /**
+ * Schedules a new run based on the request parameters and add it to the run queue.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runRequest The parameters of a run that needs to scheduled.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginScheduleRun(resourceGroupName: string, registryName: string, runRequest: Models.RunRequestUnion, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ runRequest,
+ options
+ },
+ beginScheduleRunOperationSpec,
+ options);
+ }
+
+ /**
+ * Lists all the container registries under the specified resource group.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listByResourceGroupNextOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Lists all the container registries under the specified subscription.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "registryNameCheckRequest",
+ mapper: {
+ ...Mappers.RegistryNameCheckRequest,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryNameStatus
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Registry
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries",
+ urlParameters: [
+ Parameters.subscriptionId
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listCredentialsOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListCredentialsResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const regenerateCredentialOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "regenerateCredentialParameters",
+ mapper: {
+ ...Mappers.RegenerateCredentialParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListCredentialsResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listUsagesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryUsageListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listPoliciesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listPolicies",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryPolicies
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getBuildSourceUploadUrlOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.SourceUploadDefinition
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginImportImageOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "parameters",
+ mapper: {
+ ...Mappers.ImportImageParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "registry",
+ mapper: {
+ ...Mappers.Registry,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Registry
+ },
+ 201: {
+ bodyMapper: Mappers.Registry
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "registryUpdateParameters",
+ mapper: {
+ ...Mappers.RegistryUpdateParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Registry
+ },
+ 201: {
+ bodyMapper: Mappers.Registry
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdatePoliciesOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/updatePolicies",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "registryPoliciesUpdateParameters",
+ mapper: {
+ ...Mappers.RegistryPolicies,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryPolicies
+ },
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginScheduleRunOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "runRequest",
+ mapper: {
+ ...Mappers.RunRequest,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Run
+ },
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RegistryListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/replications.ts
new file mode 100644
index 000000000000..81ce0b1451ba
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/replications.ts
@@ -0,0 +1,402 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/replicationsMappers";
+import * as Parameters from "../models/parameters";
+import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
+
+/** Class representing a Replications. */
+export class Replications {
+ private readonly client: ContainerRegistryManagementClientContext;
+
+ /**
+ * Create a Replications.
+ * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ContainerRegistryManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets the properties of the specified replication.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, registryName: string, replicationName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, replicationName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, replicationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, registryName: string, replicationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ replicationName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, registryName: string, replicationName: string, replication: Models.Replication, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreate(resourceGroupName,registryName,replicationName,replication,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Deletes a replication from a container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, registryName: string, replicationName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,registryName,replicationName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, registryName: string, replicationName: string, replicationUpdateParameters: Models.ReplicationUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,registryName,replicationName,replicationUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Lists all the replications for the specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a replication for a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replication The parameters for creating a replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCreate(resourceGroupName: string, registryName: string, replicationName: string, replication: Models.Replication, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ replicationName,
+ replication,
+ options
+ },
+ beginCreateOperationSpec,
+ options);
+ }
+
+ /**
+ * Deletes a replication from a container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginDeleteMethod(resourceGroupName: string, registryName: string, replicationName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ replicationName,
+ options
+ },
+ beginDeleteMethodOperationSpec,
+ options);
+ }
+
+ /**
+ * Updates a replication for a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param replicationName The name of the replication.
+ * @param replicationUpdateParameters The parameters for updating a replication.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, registryName: string, replicationName: string, replicationUpdateParameters: Models.ReplicationUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ replicationName,
+ replicationUpdateParameters,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Lists all the replications for the specified container registry.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.replicationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Replication
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.ReplicationListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCreateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PUT",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.replicationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "replication",
+ mapper: {
+ ...Mappers.Replication,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Replication
+ },
+ 201: {
+ bodyMapper: Mappers.Replication
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
+ httpMethod: "DELETE",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.replicationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ 204: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.replicationName
+ ],
+ queryParameters: [
+ Parameters.apiVersion0
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "replicationUpdateParameters",
+ mapper: {
+ ...Mappers.ReplicationUpdateParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Replication
+ },
+ 201: {
+ bodyMapper: Mappers.Replication
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.ReplicationListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/runs.ts
new file mode 100644
index 000000000000..8ce3e9f5e7ed
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/runs.ts
@@ -0,0 +1,393 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/runsMappers";
+import * as Parameters from "../models/parameters";
+import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
+
+/** Class representing a Runs. */
+export class Runs {
+ private readonly client: ContainerRegistryManagementClientContext;
+
+ /**
+ * Create a Runs.
+ * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ContainerRegistryManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Gets all the runs for a registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, registryName: string, options?: Models.RunsListOptionalParams): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, options: Models.RunsListOptionalParams, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, registryName: string, options?: Models.RunsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Gets the detailed information for a given run.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, runId: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, runId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ runId,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Patch the run properties.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, registryName: string, runId: string, runUpdateParameters: Models.RunUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,registryName,runId,runUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Gets a link to download the run logs.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getLogSasUrl(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param callback The callback
+ */
+ getLogSasUrl(resourceGroupName: string, registryName: string, runId: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getLogSasUrl(resourceGroupName: string, registryName: string, runId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getLogSasUrl(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ runId,
+ options
+ },
+ getLogSasUrlOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Cancel an existing run.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ cancel(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCancel(resourceGroupName,registryName,runId,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Patch the run properties.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param runUpdateParameters The run update properties.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginUpdate(resourceGroupName: string, registryName: string, runId: string, runUpdateParameters: Models.RunUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ runId,
+ runUpdateParameters,
+ options
+ },
+ beginUpdateOperationSpec,
+ options);
+ }
+
+ /**
+ * Cancel an existing run.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param runId The run ID.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ beginCancel(resourceGroupName: string, registryName: string, runId: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.client.sendLRORequest(
+ {
+ resourceGroupName,
+ registryName,
+ runId,
+ options
+ },
+ beginCancelOperationSpec,
+ options);
+ }
+
+ /**
+ * Gets all the runs for a registry.
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ nextPageLink,
+ options
+ },
+ listNextOperationSpec,
+ callback) as Promise;
+ }
+}
+
+// Operation Specifications
+const serializer = new msRest.Serializer(Mappers);
+const listOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName
+ ],
+ queryParameters: [
+ Parameters.apiVersion1,
+ Parameters.filter,
+ Parameters.top
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RunListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.runId
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Run
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const getLogSasUrlOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.runId
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RunGetLogResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginUpdateOperationSpec: msRest.OperationSpec = {
+ httpMethod: "PATCH",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.runId
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ requestBody: {
+ parameterPath: "runUpdateParameters",
+ mapper: {
+ ...Mappers.RunUpdateParameters,
+ required: true
+ }
+ },
+ responses: {
+ 200: {
+ bodyMapper: Mappers.Run
+ },
+ 201: {
+ bodyMapper: Mappers.Run
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const beginCancelOperationSpec: msRest.OperationSpec = {
+ httpMethod: "POST",
+ path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel",
+ urlParameters: [
+ Parameters.subscriptionId,
+ Parameters.resourceGroupName,
+ Parameters.registryName,
+ Parameters.runId
+ ],
+ queryParameters: [
+ Parameters.apiVersion1
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {},
+ 202: {},
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
+
+const listNextOperationSpec: msRest.OperationSpec = {
+ httpMethod: "GET",
+ baseUrl: "https://management.azure.com",
+ path: "{nextLink}",
+ urlParameters: [
+ Parameters.nextPageLink
+ ],
+ headerParameters: [
+ Parameters.acceptLanguage
+ ],
+ responses: {
+ 200: {
+ bodyMapper: Mappers.RunListResult
+ },
+ default: {
+ bodyMapper: Mappers.CloudError
+ }
+ },
+ serializer
+};
diff --git a/sdk/containerregistry/arm-containerregistry/lib/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/lib/operations/tasks.ts
new file mode 100644
index 000000000000..1d473f71bbc9
--- /dev/null
+++ b/sdk/containerregistry/arm-containerregistry/lib/operations/tasks.ts
@@ -0,0 +1,464 @@
+/*
+ * 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.
+ */
+
+import * as msRest from "@azure/ms-rest-js";
+import * as msRestAzure from "@azure/ms-rest-azure-js";
+import * as Models from "../models";
+import * as Mappers from "../models/tasksMappers";
+import * as Parameters from "../models/parameters";
+import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext";
+
+/** Class representing a Tasks. */
+export class Tasks {
+ private readonly client: ContainerRegistryManagementClientContext;
+
+ /**
+ * Create a Tasks.
+ * @param {ContainerRegistryManagementClientContext} client Reference to the service client.
+ */
+ constructor(client: ContainerRegistryManagementClientContext) {
+ this.client = client;
+ }
+
+ /**
+ * Lists all the tasks for a specified container registry.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ options
+ },
+ listOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Get the properties of a specified task.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ get(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, taskName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ get(resourceGroupName: string, registryName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ get(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ return this.client.sendOperationRequest(
+ {
+ resourceGroupName,
+ registryName,
+ taskName,
+ options
+ },
+ getOperationSpec,
+ callback) as Promise;
+ }
+
+ /**
+ * Creates a task for a container registry with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskCreateParameters The parameters for creating a task.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ create(resourceGroupName: string, registryName: string, taskName: string, taskCreateParameters: Models.Task, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginCreate(resourceGroupName,registryName,taskName,taskCreateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Deletes a specified task.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ deleteMethod(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginDeleteMethod(resourceGroupName,registryName,taskName,options)
+ .then(lroPoller => lroPoller.pollUntilFinished());
+ }
+
+ /**
+ * Updates a task with the specified parameters.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param taskUpdateParameters The parameters for updating a task.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ update(resourceGroupName: string, registryName: string, taskName: string, taskUpdateParameters: Models.TaskUpdateParameters, options?: msRest.RequestOptionsBase): Promise {
+ return this.beginUpdate(resourceGroupName,registryName,taskName,taskUpdateParameters,options)
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ }
+
+ /**
+ * Returns a task with extended information that includes all secrets.
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param [options] The optional parameters
+ * @returns Promise
+ */
+ getDetails(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase): Promise;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param callback The callback
+ */
+ getDetails(resourceGroupName: string, registryName: string, taskName: string, callback: msRest.ServiceCallback): void;
+ /**
+ * @param resourceGroupName The name of the resource group to which the container registry belongs.
+ * @param registryName The name of the container registry.
+ * @param taskName The name of the container registry task.
+ * @param options The optional parameters
+ * @param callback The callback
+ */
+ getDetails(resourceGroupName: string, registryName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
+ getDetails(resourceGroupName: string, registryName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback