diff --git a/packages/@azure/arm-containerregistry/README.md b/packages/@azure/arm-containerregistry/README.md index 2a49c4f0a73f..dff1335b95c4 100644 --- a/packages/@azure/arm-containerregistry/README.md +++ b/packages/@azure/arm-containerregistry/README.md @@ -98,6 +98,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-containerregistry%2FREADME.png) diff --git a/packages/@azure/arm-containerregistry/lib/models/index.ts b/packages/@azure/arm-containerregistry/lib/models/index.ts index 1b9ffa2c1ddf..a42ce0090959 100644 --- a/packages/@azure/arm-containerregistry/lib/models/index.ts +++ b/packages/@azure/arm-containerregistry/lib/models/index.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -11,826 +13,1057 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; + /** + * @interface * An interface representing ImportSourceCredentials. */ export interface ImportSourceCredentials { /** - * The username to authenticate with the source registry. + * @member {string} [username] The username to authenticate with the source + * registry. */ username?: string; /** - * The password used to authenticate with the source registry. + * @member {string} password The password used to authenticate with the + * source registry. */ password: string; } /** + * @interface * An interface representing ImportSource. */ export interface ImportSource { /** - * The resource identifier of the source Azure Container Registry. + * @member {string} [resourceId] The resource identifier of the source Azure + * Container Registry. */ resourceId?: string; /** - * The address of the source registry (e.g. 'mcr.microsoft.com'). + * @member {string} [registryUri] The address of the source registry (e.g. + * 'mcr.microsoft.com'). */ registryUri?: string; /** - * Credentials used when importing from a registry uri. + * @member {ImportSourceCredentials} [credentials] Credentials used when + * importing from a registry uri. */ credentials?: ImportSourceCredentials; /** - * Repository name of the source image. - * Specify an image by repository ('hello-world'). This will use the 'latest' tag. + * @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'). + * Specify an image by sha256-based manifest digest + * ('hello-world@sha256:abc123'). */ sourceImage: string; } /** + * @interface * An interface representing ImportImageParameters. */ export interface ImportImageParameters { /** - * The source of the image. + * @member {ImportSource} source The source of the image. */ source: ImportSource; /** - * 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). + * @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[]; /** - * List of strings of repository names to do a manifest only copy. No tag will be created. + * @member {string[]} [untaggedTargetRepositories] List of strings of + * repository names to do a manifest only copy. No tag will be created. */ untaggedTargetRepositories?: string[]; /** - * 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'. + * @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 { /** - * The name of the container registry. + * @member {string} name The name of the container registry. */ name: string; } /** - * The result of a request to check the availability of a container registry name. + * @interface + * An interface representing RegistryNameStatus. + * The result of a request to check the availability of a container registry + * name. + * */ export interface RegistryNameStatus { /** - * The value that indicates whether the name is available. + * @member {boolean} [nameAvailable] The value that indicates whether the + * name is available. */ nameAvailable?: boolean; /** - * If any, the reason that the name is not available. + * @member {string} [reason] If any, the reason that the name is not + * available. */ reason?: string; /** - * If any, the error message that provides more detail for the reason that the name is not - * available. + * @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 { /** - * The resource provider name: Microsoft.ContainerRegistry. + * @member {string} [provider] The resource provider name: + * Microsoft.ContainerRegistry. */ provider?: string; /** - * The resource on which the operation is performed. + * @member {string} [resource] The resource on which the operation is + * performed. */ resource?: string; /** - * The operation that users can perform. + * @member {string} [operation] The operation that users can perform. */ operation?: string; /** - * The description for the operation. + * @member {string} [description] The description for the operation. */ description?: string; } /** + * @interface + * An interface representing OperationMetricSpecificationDefinition. * The definition of Azure Monitoring metric. + * */ export interface OperationMetricSpecificationDefinition { /** - * Metric name. + * @member {string} [name] Metric name. */ name?: string; /** - * Metric display name. + * @member {string} [displayName] Metric display name. */ displayName?: string; /** - * Metric description. + * @member {string} [displayDescription] Metric description. */ displayDescription?: string; /** - * Metric unit. + * @member {string} [unit] Metric unit. */ unit?: string; /** - * Metric aggregation type. + * @member {string} [aggregationType] Metric aggregation type. */ aggregationType?: string; /** - * Internal metric name. + * @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 { /** - * The origin information of the container registry operation. + * @member {string} [origin] The origin information of the container registry + * operation. */ origin?: string; /** - * Operation name: {provider}/{resource}/{operation}. + * @member {string} [name] Operation name: {provider}/{resource}/{operation}. */ name?: string; /** - * The display information for the container registry operation. + * @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 { /** - * The SKU name of the container registry. Required for registry creation. Possible values - * include: 'Classic', 'Basic', 'Standard', 'Premium' + * @member {SkuName} name The SKU name of the container registry. Required + * for registry creation. Possible values include: 'Classic', 'Basic', + * 'Standard', 'Premium' */ name: SkuName; /** - * 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.** + * @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 { /** - * The short label for the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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; /** - * 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.** + * @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; /** - * 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.** + * @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; } /** - * The properties of a storage account for a container registry. Only applicable to Classic SKU. + * @interface + * An interface representing StorageAccountProperties. + * The properties of a storage account for a container registry. Only + * applicable to Classic SKU. + * */ export interface StorageAccountProperties { /** - * The resource ID of the storage account. + * @member {string} id The resource ID of the storage account. */ id: string; } /** + * @interface + * An interface representing VirtualNetworkRule. * Virtual network rule. + * */ export interface VirtualNetworkRule { /** - * The action of virtual network rule. Possible values include: 'Allow'. Default value: 'Allow'. + * @member {Action} [action] The action of virtual network rule. Possible + * values include: 'Allow'. Default value: 'Allow' . */ action?: Action; /** - * Resource ID of a subnet, for example: + * @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 { /** - * The action of IP ACL rule. Possible values include: 'Allow'. Default value: 'Allow'. + * @member {Action} [action] The action of IP ACL rule. Possible values + * include: 'Allow'. Default value: 'Allow' . */ action?: Action; /** - * Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + * @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 { /** - * The default action of allow or deny when no other rules match. Possible values include: - * 'Allow', 'Deny'. Default value: 'Allow'. + * @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; /** - * The virtual network rules. + * @member {VirtualNetworkRule[]} [virtualNetworkRules] The virtual network + * rules. */ virtualNetworkRules?: VirtualNetworkRule[]; /** - * The IP ACL rules. + * @member {IPRule[]} [ipRules] The IP ACL rules. */ ipRules?: IPRule[]; } /** + * @interface + * An interface representing Resource. * An Azure resource. + * + * @extends BaseResource */ export interface Resource extends BaseResource { /** - * The resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] The resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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; /** - * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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; /** - * The location of the resource. This cannot be changed after the resource is created. + * @member {string} location The location of the resource. This cannot be + * changed after the resource is created. */ location: string; /** - * The tags of the resource. + * @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 { /** - * The SKU of the container registry. + * @member {Sku} sku The SKU of the container registry. */ sku: Sku; /** - * 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.** + * @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; /** - * 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.** + * @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; /** - * 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.** + * @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; /** - * 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.** + * @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; /** - * The value that indicates whether the admin user is enabled. Default value: false. + * @member {boolean} [adminUserEnabled] The value that indicates whether the + * admin user is enabled. Default value: false . */ adminUserEnabled?: boolean; /** - * The properties of the storage account for the container registry. Only applicable to Classic + * @member {StorageAccountProperties} [storageAccount] The properties of the + * storage account for the container registry. Only applicable to Classic * SKU. */ storageAccount?: StorageAccountProperties; /** - * The network rule set for a container registry. + * @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 { /** - * The tags for the container registry. + * @member {{ [propertyName: string]: string }} [tags] The tags for the + * container registry. */ tags?: { [propertyName: string]: string }; /** - * The SKU of the container registry. + * @member {Sku} [sku] The SKU of the container registry. */ sku?: Sku; /** - * The value that indicates whether the admin user is enabled. + * @member {boolean} [adminUserEnabled] The value that indicates whether the + * admin user is enabled. */ adminUserEnabled?: boolean; /** - * 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. + * @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; /** - * The network rule set for a container registry. + * @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 { /** - * The password name. Possible values include: 'password', 'password2' + * @member {PasswordName} [name] The password name. Possible values include: + * 'password', 'password2' */ name?: PasswordName; /** - * The password value. + * @member {string} [value] The password value. */ value?: string; } /** + * @interface + * An interface representing RegistryListCredentialsResult. * The response from the ListCredentials operation. + * */ export interface RegistryListCredentialsResult { /** - * The username for a container registry. + * @member {string} [username] The username for a container registry. */ username?: string; /** - * The list of passwords for a container registry. + * @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 { /** - * Specifies name of the password which should be regenerated -- password or password2. Possible - * values include: 'password', 'password2' + * @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 { /** - * The name of the usage. + * @member {string} [name] The name of the usage. */ name?: string; /** - * The limit of the usage. + * @member {number} [limit] The limit of the usage. */ limit?: number; /** - * The current value of the usage. + * @member {number} [currentValue] The current value of the usage. */ currentValue?: number; /** - * The unit of measurement. Possible values include: 'Count', 'Bytes' + * @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 { /** - * The list of container registry quota usages. + * @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 { /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled' + * @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 { /** - * The type of trust policy. Possible values include: 'Notary' + * @member {TrustPolicyType} [type] The type of trust policy. Possible values + * include: 'Notary' */ type?: TrustPolicyType; /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled' + * @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 { /** - * An object that represents quarantine policy for a container registry. + * @member {QuarantinePolicy} [quarantinePolicy] An object that represents + * quarantine policy for a container registry. */ quarantinePolicy?: QuarantinePolicy; /** - * An object that represents content trust policy for a container registry. + * @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 { /** - * 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.** + * @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; /** - * 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.** + * @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 { /** - * The tags for the replication. + * @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 { /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' + * @member {WebhookStatus} [status] The status of the webhook at the time the + * operation was called. Possible values include: 'enabled', 'disabled' */ status?: WebhookStatus; /** - * 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. + * @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; /** - * The list of actions that trigger the webhook to post notifications. + * @member {WebhookAction[]} actions The list of actions that trigger the + * webhook to post notifications. */ actions: WebhookAction[]; /** - * 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.** + * @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 { /** - * The tags for the webhook. + * @member {{ [propertyName: string]: string }} [tags] The tags for the + * webhook. */ tags?: { [propertyName: string]: string }; /** - * The location of the webhook. This cannot be changed after the resource is created. + * @member {string} location The location of the webhook. This cannot be + * changed after the resource is created. */ location: string; /** - * The service URI for the webhook to post notifications. + * @member {string} serviceUri The service URI for the webhook to post + * notifications. */ serviceUri: string; /** - * Custom headers that will be added to the webhook notifications. + * @member {{ [propertyName: string]: string }} [customHeaders] Custom + * headers that will be added to the webhook notifications. */ customHeaders?: { [propertyName: string]: string }; /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' + * @member {WebhookStatus} [status] The status of the webhook at the time the + * operation was called. Possible values include: 'enabled', 'disabled' */ status?: WebhookStatus; /** - * 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. + * @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; /** - * The list of actions that trigger the webhook to post notifications. + * @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 { /** - * The tags for the webhook. + * @member {{ [propertyName: string]: string }} [tags] The tags for the + * webhook. */ tags?: { [propertyName: string]: string }; /** - * The service URI for the webhook to post notifications. + * @member {string} [serviceUri] The service URI for the webhook to post + * notifications. */ serviceUri?: string; /** - * Custom headers that will be added to the webhook notifications. + * @member {{ [propertyName: string]: string }} [customHeaders] Custom + * headers that will be added to the webhook notifications. */ customHeaders?: { [propertyName: string]: string }; /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' + * @member {WebhookStatus} [status] The status of the webhook at the time the + * operation was called. Possible values include: 'enabled', 'disabled' */ status?: WebhookStatus; /** - * 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. + * @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; /** - * The list of actions that trigger the webhook to post notifications. + * @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 { /** - * The event ID. + * @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 { /** - * The service URI for the webhook to post notifications. + * @member {string} serviceUri The service URI for the webhook to post + * notifications. */ serviceUri: string; /** - * Custom headers that will be added to the webhook notifications. + * @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 { /** - * The MIME type of the referenced object. + * @member {string} [mediaType] The MIME type of the referenced object. */ mediaType?: string; /** - * The number of bytes of the content. Same as Length field. + * @member {number} [size] The number of bytes of the content. Same as Length + * field. */ size?: number; /** - * The digest of the content, as defined by the Registry V2 HTTP API Specification. + * @member {string} [digest] The digest of the content, as defined by the + * Registry V2 HTTP API Specification. */ digest?: string; /** - * The number of bytes of the content. Same as Size field. + * @member {number} [length] The number of bytes of the content. Same as Size + * field. */ length?: number; /** - * The repository name. + * @member {string} [repository] The repository name. */ repository?: string; /** - * The direct URL to the content. + * @member {string} [url] The direct URL to the content. */ url?: string; /** - * The tag name. + * @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 { /** - * The ID of the request that initiated the event. + * @member {string} [id] The ID of the request that initiated the event. */ id?: string; /** - * The IP or hostname and possibly port of the client connection that initiated the event. This - * is the RemoteAddr from the standard http request. + * @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; /** - * The externally accessible hostname of the registry instance, as specified by the http host - * header on incoming requests. + * @member {string} [host] The externally accessible hostname of the registry + * instance, as specified by the http host header on incoming requests. */ host?: string; /** - * The request method that generated the event. + * @member {string} [method] The request method that generated the event. */ method?: string; /** - * The user agent header of the request. + * @member {string} [useragent] The user agent header of the request. */ useragent?: string; } /** - * The agent that initiated the event. For most situations, this could be from the authorization - * context of the request. + * @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 { /** - * The subject or username associated with the request context that generated the event. + * @member {string} [name] The subject or username associated with the + * request context that generated the event. */ name?: string; } /** - * The registry node that generated the event. Put differently, while the actor initiates the - * event, the source generates it. + * @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 { /** - * 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. + * @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; /** - * The running instance of an application. Changes after each restart. + * @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 { /** - * The event ID. + * @member {string} [id] The event ID. */ id?: string; /** - * The time at which the event occurred. + * @member {Date} [timestamp] The time at which the event occurred. */ timestamp?: Date; /** - * The action that encompasses the provided event. + * @member {string} [action] The action that encompasses the provided event. */ action?: string; /** - * The target of the event. + * @member {Target} [target] The target of the event. */ target?: Target; /** - * The request that generated the event. + * @member {Request} [request] The request that generated the event. */ request?: Request; /** - * The agent that initiated the event. For most situations, this could be from the authorization - * context of the 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; /** - * The registry node that generated the event. Put differently, while the actor initiates the - * event, the source generates it. + * @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 { /** - * The content of the event request message. + * @member {EventContent} [content] The content of the event request message. */ content?: EventContent; /** - * The headers of the event request message. + * @member {{ [propertyName: string]: string }} [headers] The headers of the + * event request message. */ headers?: { [propertyName: string]: string }; /** - * The HTTP method used to send the event request message. + * @member {string} [method] The HTTP method used to send the event request + * message. */ method?: string; /** - * The URI used to send the event request message. + * @member {string} [requestUri] The URI used to send the event request + * message. */ requestUri?: string; /** - * The HTTP message version. + * @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 { /** - * The content of the event response message. + * @member {string} [content] The content of the event response message. */ content?: string; /** - * The headers of the event response message. + * @member {{ [propertyName: string]: string }} [headers] The headers of the + * event response message. */ headers?: { [propertyName: string]: string }; /** - * The reason phrase of the event response message. + * @member {string} [reasonPhrase] The reason phrase of the event response + * message. */ reasonPhrase?: string; /** - * The status code of the event response message. + * @member {string} [statusCode] The status code of the event response + * message. */ statusCode?: string; /** - * The HTTP message version. + * @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 { /** - * The event request message sent to the service URI. + * @member {EventRequestMessage} [eventRequestMessage] The event request + * message sent to the service URI. */ eventRequestMessage?: EventRequestMessage; /** - * The event response message received from the service URI. + * @member {EventResponseMessage} [eventResponseMessage] The event response + * message received from the service URI. */ eventResponseMessage?: EventResponseMessage; } @@ -841,311 +1074,390 @@ export interface Event extends EventInfo { export type RunRequestUnion = RunRequest | DockerBuildRequest | FileTaskRunRequest | TaskRunRequest | EncodedTaskRunRequest; /** + * @interface + * An interface representing RunRequest. * The request parameters for scheduling a run. + * */ export interface RunRequest { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "RunRequest"; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * @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 { /** - * The registry login server. + * @member {string} [registry] The registry login server. */ registry?: string; /** - * The repository name. + * @member {string} [repository] The repository name. */ repository?: string; /** - * The tag name. + * @member {string} [tag] The tag name. */ tag?: string; /** - * The sha256-based digest of the image manifest. + * @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 { /** - * The unique ID of the trigger. + * @member {string} [id] The unique ID of the trigger. */ id?: string; /** - * The timestamp when the image update happened. + * @member {Date} [timestamp] The timestamp when the image update happened. */ timestamp?: Date; /** - * The list of image updates that caused the build. + * @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 { /** - * The unique ID of the trigger. + * @member {string} [id] The unique ID of the trigger. */ id?: string; /** - * The event type of the trigger. + * @member {string} [eventType] The event type of the trigger. */ eventType?: string; /** - * The unique ID that identifies a commit. + * @member {string} [commitId] The unique ID that identifies a commit. */ commitId?: string; /** - * The unique ID that identifies pull request. + * @member {string} [pullRequestId] The unique ID that identifies pull + * request. */ pullRequestId?: string; /** - * The repository URL. + * @member {string} [repositoryUrl] The repository URL. */ repositoryUrl?: string; /** - * The branch name in the repository. + * @member {string} [branchName] The branch name in the repository. */ branchName?: string; /** - * The source control provider type. + * @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 { /** - * The operating system type required for the run. Possible values include: 'Windows', 'Linux' + * @member {OS} os The operating system type required for the run. Possible + * values include: 'Windows', 'Linux' */ os: OS; /** - * The OS architecture. Possible values include: 'amd64', 'x86', 'arm' + * @member {Architecture} [architecture] The OS architecture. Possible values + * include: 'amd64', 'x86', 'arm' */ architecture?: Architecture; /** - * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' + * @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 { /** - * The CPU configuration in terms of number of cores required for the run. + * @member {number} [cpu] The CPU configuration in terms of number of cores + * required for the run. */ cpu?: number; } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags. + * @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 { /** - * The resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @member {string} [id] The resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ readonly id?: string; /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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; /** - * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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 { /** - * The unique identifier for the run. + * @member {string} [runId] The unique identifier for the run. */ runId?: string; /** - * The current status of the run. Possible values include: 'Queued', 'Started', 'Running', - * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' + * @member {RunStatus} [status] The current status of the run. Possible + * values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', + * 'Canceled', 'Error', 'Timeout' */ status?: RunStatus; /** - * The last updated time for the run. + * @member {Date} [lastUpdatedTime] The last updated time for the run. */ lastUpdatedTime?: Date; /** - * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + * @member {RunType} [runType] The type of run. Possible values include: + * 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' */ runType?: RunType; /** - * The time the run was scheduled. + * @member {Date} [createTime] The time the run was scheduled. */ createTime?: Date; /** - * The time the run started. + * @member {Date} [startTime] The time the run started. */ startTime?: Date; /** - * The time the run finished. + * @member {Date} [finishTime] The time the run finished. */ finishTime?: Date; /** - * The list of all images that were generated from the run. This is applicable if the run - * generates base image dependencies. + * @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[]; /** - * The task against which run was scheduled. + * @member {string} [task] The task against which run was scheduled. */ task?: string; /** - * The image update trigger that caused the run. This is applicable if the task has base image - * trigger configured. + * @member {ImageUpdateTrigger} [imageUpdateTrigger] The image update trigger + * that caused the run. This is applicable if the task has base image trigger + * configured. */ imageUpdateTrigger?: ImageUpdateTrigger; /** - * The source trigger that caused the run. + * @member {SourceTriggerDescriptor} [sourceTrigger] The source trigger that + * caused the run. */ sourceTrigger?: SourceTriggerDescriptor; /** - * The value that indicates whether archiving is enabled or not. Default value: false. - */ - isArchiveEnabled?: boolean; - /** - * The platform properties against which the run will happen. + * @member {PlatformProperties} [platform] The platform properties against + * which the run will happen. */ platform?: PlatformProperties; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', + * @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 {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 { /** - * The URL where the client can upload the source. + * @member {string} [uploadUrl] The URL where the client can upload the + * source. */ uploadUrl?: string; /** - * The relative path to the source. This is used to submit the subsequent queue build request. + * @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 { /** - * The unique identifier for the run. + * @member {string} [runId] The unique identifier for the run. */ runId?: string; /** - * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + * @member {RunType} [runType] The type of run. Possible values include: + * 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' */ runType?: RunType; /** - * The current status of the run. Possible values include: 'Queued', 'Started', 'Running', - * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' + * @member {RunStatus} [status] The current status of the run. Possible + * values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', + * 'Canceled', 'Error', 'Timeout' */ status?: RunStatus; /** - * The create time for a run. + * @member {Date} [createTime] The create time for a run. */ createTime?: Date; /** - * The time the run finished. + * @member {Date} [finishTime] The time the run finished. */ finishTime?: Date; /** - * The list of comma-separated image manifests that were generated from the run. This is - * applicable if the run is of + * @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; /** - * The value that indicates whether archiving is enabled or not. + * @member {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled or not. */ isArchiveEnabled?: boolean; /** - * The name of the task that the run corresponds to. + * @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 { /** - * The value that indicates whether archiving is enabled or not. + * @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 { /** - * The link to logs for a run on a azure container registry. + * @member {string} [logLink] The link to logs for a run on a azure container + * registry. */ logLink?: string; } /** + * @interface + * An interface representing BaseImageDependency. * Properties that describe a base image dependency. + * */ export interface BaseImageDependency { /** - * The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime' + * @member {BaseImageDependencyType} [type] The type of the base image + * dependency. Possible values include: 'BuildTime', 'RunTime' */ type?: BaseImageDependencyType; /** - * The registry login server. + * @member {string} [registry] The registry login server. */ registry?: string; /** - * The repository name. + * @member {string} [repository] The repository name. */ repository?: string; /** - * The tag name. + * @member {string} [tag] The tag name. */ tag?: string; /** - * The sha256-based digest of the image manifest. + * @member {string} [digest] The sha256-based digest of the image manifest. */ digest?: string; } @@ -1156,190 +1468,332 @@ export interface BaseImageDependency { export type TaskStepPropertiesUnion = TaskStepProperties | DockerBuildStep | FileTaskStep | EncodedTaskStep; /** + * @interface + * An interface representing TaskStepProperties. * Base properties for any task step. + * */ export interface TaskStepProperties { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "TaskStepProperties"; /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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[]; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @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 AuthInfo. * The authorization properties for accessing the source code repository. + * */ export interface AuthInfo { /** - * The type of Auth token. Possible values include: 'PAT', 'OAuth' + * @member {TokenType} tokenType The type of Auth token. Possible values + * include: 'PAT', 'OAuth' */ tokenType: TokenType; /** - * The access token used to access the source control provider. + * @member {string} token The access token used to access the source control + * provider. */ token: string; /** - * The refresh token used to refresh the access token. + * @member {string} [refreshToken] The refresh token used to refresh the + * access token. */ refreshToken?: string; /** - * The scope of the access token. + * @member {string} [scope] The scope of the access token. */ scope?: string; /** - * Time in seconds that the token remains valid + * @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 { /** - * The type of source control service. Possible values include: 'Github', - * 'VisualStudioTeamService' + * @member {SourceControlType} sourceControlType The type of source control + * service. Possible values include: 'Github', 'VisualStudioTeamService' */ sourceControlType: SourceControlType; /** - * The full URL to the source code repository + * @member {string} repositoryUrl The full URL to the source code repository */ repositoryUrl: string; /** - * The branch name of the source code. + * @member {string} [branch] The branch name of the source code. */ branch?: string; /** - * The authorization properties for accessing the source code repository and to set up + * @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 { /** - * The properties that describes the source(code) for the task. + * @member {SourceProperties} sourceRepository The properties that describes + * the source(code) for the task. */ sourceRepository: SourceProperties; /** - * The source event corresponding to the trigger. + * @member {SourceTriggerEvent[]} sourceTriggerEvents The source event + * corresponding to the trigger. */ sourceTriggerEvents: SourceTriggerEvent[]; /** - * The current status of trigger. Possible values include: 'Disabled', 'Enabled' + * @member {TriggerStatus} [status] The current status of trigger. Possible + * values include: 'Disabled', 'Enabled' */ status?: TriggerStatus; /** - * The name of the trigger. + * @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 { /** - * The type of the auto trigger for base image dependency updates. Possible values include: - * 'All', 'Runtime' + * @member {BaseImageTriggerType} baseImageTriggerType The type of the auto + * trigger for base image dependency updates. Possible values include: 'All', + * 'Runtime' */ baseImageTriggerType: BaseImageTriggerType; /** - * The current status of trigger. Possible values include: 'Disabled', 'Enabled' + * @member {TriggerStatus} [status] The current status of trigger. Possible + * values include: 'Disabled', 'Enabled' */ status?: TriggerStatus; /** - * The name of the trigger. + * @member {string} name The name of the trigger. */ name: string; } /** + * @interface + * An interface representing TriggerProperties. * The properties of a trigger. + * */ export interface TriggerProperties { /** - * The collection of triggers based on source code repository. + * @member {SourceTrigger[]} [sourceTriggers] The collection of triggers + * based on source code repository. */ sourceTriggers?: SourceTrigger[]; /** - * The trigger based on base image dependencies. + * @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' + */ + 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; +} + +/** + * @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 { /** - * 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.** + * @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; /** - * The creation date of task. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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; /** - * The current status of task. Possible values include: 'Disabled', 'Enabled' + * @member {TaskStatus} [status] The current status of task. Possible values + * include: 'Disabled', 'Enabled' */ status?: TaskStatus; /** - * The platform properties against which the run has to happen. + * @member {PlatformProperties} platform The platform properties against + * which the run has to happen. */ platform: PlatformProperties; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * Run timeout in seconds. Default value: 3600. + * @member {number} [timeout] Run timeout in seconds. Default value: 3600 . */ timeout?: number; /** - * The properties of a task step. + * @member {TaskStepPropertiesUnion} step The properties of a task step. */ step: TaskStepPropertiesUnion; /** - * The properties that describe all triggers for the task. + * @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 { /** - * The operating system type required for the run. Possible values include: 'Windows', 'Linux' + * @member {OS} [os] The operating system type required for the run. Possible + * values include: 'Windows', 'Linux' */ os?: OS; /** - * The OS architecture. Possible values include: 'amd64', 'x86', 'arm' + * @member {Architecture} [architecture] The OS architecture. Possible values + * include: 'amd64', 'x86', 'arm' */ architecture?: Architecture; /** - * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' + * @member {Variant} [variant] Variant of the CPU. Possible values include: + * 'v6', 'v7', 'v8' */ variant?: Variant; } @@ -1350,693 +1804,889 @@ export interface PlatformUpdateParameters { export type TaskStepUpdateParametersUnion = TaskStepUpdateParameters | DockerBuildStepUpdateParameters | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; /** + * @interface + * An interface representing TaskStepUpdateParameters. * Base properties for updating any task step. + * */ export interface TaskStepUpdateParameters { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "TaskStepUpdateParameters"; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @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 { /** - * The type of Auth token. Possible values include: 'PAT', 'OAuth' + * @member {TokenType} [tokenType] The type of Auth token. Possible values + * include: 'PAT', 'OAuth' */ tokenType?: TokenType; /** - * The access token used to access the source control provider. + * @member {string} [token] The access token used to access the source + * control provider. */ token?: string; /** - * The refresh token used to refresh the access token. + * @member {string} [refreshToken] The refresh token used to refresh the + * access token. */ refreshToken?: string; /** - * The scope of the access token. + * @member {string} [scope] The scope of the access token. */ scope?: string; /** - * Time in seconds that the token remains valid + * @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 { /** - * The type of source control service. Possible values include: 'Github', - * 'VisualStudioTeamService' + * @member {SourceControlType} [sourceControlType] The type of source control + * service. Possible values include: 'Github', 'VisualStudioTeamService' */ sourceControlType?: SourceControlType; /** - * The full URL to the source code repository + * @member {string} [repositoryUrl] The full URL to the source code + * repository */ repositoryUrl?: string; /** - * The branch name of the source code. + * @member {string} [branch] The branch name of the source code. */ branch?: string; /** - * The authorization properties for accessing the source code repository and to set up + * @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 { /** - * The properties that describes the source(code) for the task. + * @member {SourceUpdateParameters} [sourceRepository] The properties that + * describes the source(code) for the task. */ sourceRepository?: SourceUpdateParameters; /** - * The source event corresponding to the trigger. + * @member {SourceTriggerEvent[]} [sourceTriggerEvents] The source event + * corresponding to the trigger. */ sourceTriggerEvents?: SourceTriggerEvent[]; /** - * The current status of trigger. Possible values include: 'Disabled', 'Enabled' + * @member {TriggerStatus} [status] The current status of trigger. Possible + * values include: 'Disabled', 'Enabled' */ status?: TriggerStatus; /** - * The name of the trigger. + * @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 { /** - * The type of the auto trigger for base image dependency updates. Possible values include: - * 'All', 'Runtime' + * @member {BaseImageTriggerType} [baseImageTriggerType] The type of the auto + * trigger for base image dependency updates. Possible values include: 'All', + * 'Runtime' */ baseImageTriggerType?: BaseImageTriggerType; /** - * The current status of trigger. Possible values include: 'Disabled', 'Enabled' + * @member {TriggerStatus} [status] The current status of trigger. Possible + * values include: 'Disabled', 'Enabled' */ status?: TriggerStatus; /** - * The name of the trigger. + * @member {string} name The name of the trigger. */ name: string; } /** + * @interface + * An interface representing TriggerUpdateParameters. * The properties for updating triggers. + * */ export interface TriggerUpdateParameters { /** - * The collection of triggers based on source code repository. + * @member {SourceTriggerUpdateParameters[]} [sourceTriggers] The collection + * of triggers based on source code repository. */ sourceTriggers?: SourceTriggerUpdateParameters[]; /** - * The trigger based on base image dependencies. + * @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 { /** - * The current status of task. Possible values include: 'Disabled', 'Enabled' + * @member {TaskStatus} [status] The current status of task. Possible values + * include: 'Disabled', 'Enabled' */ status?: TaskStatus; /** - * The platform properties against which the run has to happen. + * @member {PlatformUpdateParameters} [platform] The platform properties + * against which the run has to happen. */ platform?: PlatformUpdateParameters; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * Run timeout in seconds. + * @member {number} [timeout] Run timeout in seconds. */ timeout?: number; /** - * The properties for updating a task step. + * @member {TaskStepUpdateParametersUnion} [step] The properties for updating + * a task step. */ step?: TaskStepUpdateParametersUnion; /** - * The properties for updating trigger properties. + * @member {TriggerUpdateParameters} [trigger] The properties for updating + * trigger properties. */ trigger?: TriggerUpdateParameters; /** - * The ARM resource tags. + * @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 { /** - * The name of the argument. + * @member {string} name The name of the argument. */ name: string; /** - * The value of the argument. + * @member {string} value The value of the argument. */ value: string; /** - * Flag to indicate whether the argument represents a secret and want to be removed from build - * logs. Default value: false. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "DockerBuildRequest"; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * @member {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled for the run or not. Default value: false . */ isArchiveEnabled?: boolean; /** - * The fully qualified image names including the repository and tag. + * @member {string[]} [imageNames] The fully qualified image names including + * the repository and tag. */ imageNames?: string[]; /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. Default value: true. + * @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; /** - * The value of this property indicates whether the image cache is enabled or not. Default value: - * false. + * @member {boolean} [noCache] The value of this property indicates whether + * the image cache is enabled or not. Default value: false . */ noCache?: boolean; /** - * The Docker file path relative to the source location. + * @member {string} dockerFilePath The Docker file path relative to the + * source location. */ dockerFilePath: string; /** - * The collection of override arguments to be used when executing the run. + * @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[]; /** - * Run timeout in seconds. Default value: 3600. + * @member {number} [timeout] Run timeout in seconds. Default value: 3600 . */ timeout?: number; /** - * The platform properties against which the run has to happen. + * @member {PlatformProperties} platform The platform properties against + * which the run has to happen. */ platform: PlatformProperties; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * @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 { /** - * The name of the overridable value. + * @member {string} name The name of the overridable value. */ name: string; /** - * The overridable value. + * @member {string} value The overridable value. */ value: string; /** - * Flag to indicate whether the value represents a secret or not. Default value: false. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "FileTaskRunRequest"; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * @member {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled for the run or not. Default value: false . */ isArchiveEnabled?: boolean; /** - * The template/definition file path relative to the source. + * @member {string} taskFilePath The template/definition file path relative + * to the source. */ taskFilePath: string; /** - * The values/parameters file path relative to the source. + * @member {string} [valuesFilePath] The values/parameters file path relative + * to the source. */ valuesFilePath?: string; /** - * The collection of overridable values that can be passed when running a task. + * @member {SetValue[]} [values] The collection of overridable values that + * can be passed when running a task. */ values?: SetValue[]; /** - * Run timeout in seconds. Default value: 3600. + * @member {number} [timeout] Run timeout in seconds. Default value: 3600 . */ timeout?: number; /** - * The platform properties against which the run has to happen. + * @member {PlatformProperties} platform The platform properties against + * which the run has to happen. */ platform: PlatformProperties; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "TaskRunRequest"; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * @member {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled for the run or not. Default value: false . */ isArchiveEnabled?: boolean; /** - * The name of task against which run has to be queued. + * @member {string} taskName The name of task against which run has to be + * queued. */ taskName: string; /** - * The collection of overridable values that can be passed when running a task. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "EncodedTaskRunRequest"; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * @member {boolean} [isArchiveEnabled] The value that indicates whether + * archiving is enabled for the run or not. Default value: false . */ isArchiveEnabled?: boolean; /** - * Base64 encoded value of the template/definition file content. + * @member {string} encodedTaskContent Base64 encoded value of the + * template/definition file content. */ encodedTaskContent: string; /** - * Base64 encoded value of the parameters/values file content. + * @member {string} [encodedValuesContent] Base64 encoded value of the + * parameters/values file content. */ encodedValuesContent?: string; /** - * The collection of overridable values that can be passed when running a task. + * @member {SetValue[]} [values] The collection of overridable values that + * can be passed when running a task. */ values?: SetValue[]; /** - * Run timeout in seconds. Default value: 3600. + * @member {number} [timeout] Run timeout in seconds. Default value: 3600 . */ timeout?: number; /** - * The platform properties against which the run has to happen. + * @member {PlatformProperties} platform The platform properties against + * which the run has to happen. */ platform: PlatformProperties; /** - * The machine configuration of the run agent. + * @member {AgentProperties} [agentConfiguration] The machine configuration + * of the run agent. */ agentConfiguration?: AgentProperties; /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "Docker"; /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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[]; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * The fully qualified image names including the repository and tag. + * @member {string[]} [imageNames] The fully qualified image names including + * the repository and tag. */ imageNames?: string[]; /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. Default value: true. + * @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; /** - * The value of this property indicates whether the image cache is enabled or not. Default value: - * false. + * @member {boolean} [noCache] The value of this property indicates whether + * the image cache is enabled or not. Default value: false . */ noCache?: boolean; /** - * The Docker file path relative to the source context. + * @member {string} dockerFilePath The Docker file path relative to the + * source context. */ dockerFilePath: string; /** - * The collection of override arguments to be used when executing this build step. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "FileTask"; /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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[]; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * The task template/definition file path relative to the source context. + * @member {string} taskFilePath The task template/definition file path + * relative to the source context. */ taskFilePath: string; /** - * The task values/parameters file path relative to the source context. + * @member {string} [valuesFilePath] The task values/parameters file path + * relative to the source context. */ valuesFilePath?: string; /** - * The collection of overridable values that can be passed when running a task. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "EncodedTask"; /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * @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[]; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * Base64 encoded value of the template/definition file content. + * @member {string} encodedTaskContent Base64 encoded value of the + * template/definition file content. */ encodedTaskContent: string; /** - * Base64 encoded value of the parameters/values file content. + * @member {string} [encodedValuesContent] Base64 encoded value of the + * parameters/values file content. */ encodedValuesContent?: string; /** - * The collection of overridable values that can be passed when running a task. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "Docker"; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * The fully qualified image names including the repository and tag. + * @member {string[]} [imageNames] The fully qualified image names including + * the repository and tag. */ imageNames?: string[]; /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. + * @member {boolean} [isPushEnabled] The value of this property indicates + * whether the image built should be pushed to the registry or not. */ isPushEnabled?: boolean; /** - * The value of this property indicates whether the image cache is enabled or not. + * @member {boolean} [noCache] The value of this property indicates whether + * the image cache is enabled or not. */ noCache?: boolean; /** - * The Docker file path relative to the source context. + * @member {string} [dockerFilePath] The Docker file path relative to the + * source context. */ dockerFilePath?: string; /** - * The collection of override arguments to be used when executing this build step. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "FileTask"; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * The task template/definition file path relative to the source context. + * @member {string} [taskFilePath] The task template/definition file path + * relative to the source context. */ taskFilePath?: string; /** - * The values/parameters file path relative to the source context. + * @member {string} [valuesFilePath] The values/parameters file path relative + * to the source context. */ valuesFilePath?: string; /** - * The collection of overridable values that can be passed when running a task. + * @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 { /** - * Polymorphic Discriminator + * @member {string} type Polymorphic Discriminator */ type: "EncodedTask"; /** - * The URL(absolute or relative) of the source context for the task step. + * @member {string} [contextPath] The URL(absolute or relative) of the source + * context for the task step. */ contextPath?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * @member {string} [contextAccessToken] The token (git PAT or SAS token of + * storage account blob) associated with the context for a step. */ contextAccessToken?: string; /** - * Base64 encoded value of the template/definition file content. + * @member {string} [encodedTaskContent] Base64 encoded value of the + * template/definition file content. */ encodedTaskContent?: string; /** - * Base64 encoded value of the parameters/values file content. + * @member {string} [encodedValuesContent] Base64 encoded value of the + * parameters/values file content. */ encodedValuesContent?: string; /** - * The collection of overridable values that can be passed when running a task. + * @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 { /** - * 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. + * @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; /** - * $top is supported for get list of runs, which limits the maximum number of runs to return. + * @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 { /** - * The URI that can be used to request the next list of container registries. + * @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 { /** - * The URI that can be used to request the next list of container registry operations. + * @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 { /** - * The URI that can be used to request the next list of replications. + * @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 { /** - * The URI that can be used to request the next list of webhooks. + * @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 { /** - * The URI that can be used to request the next list of events. + * @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 { /** - * The URI that can be used to request the next set of paged results. + * @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 { /** - * The URI that can be used to request the next set of paged results. + * @member {string} [nextLink] The URI that can be used to request the next + * set of paged results. */ nextLink?: string; } @@ -2234,6 +2884,22 @@ export type TriggerStatus = 'Disabled' | 'Enabled'; */ 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' + * @readonly + * @enum {string} + */ +export type SecretObjectType = 'Opaque'; + /** * Contains response data for the checkNameAvailability operation. */ @@ -2246,7 +2912,6 @@ export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2266,7 +2931,6 @@ export type RegistriesGetResponse = Registry & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2286,7 +2950,6 @@ export type RegistriesCreateResponse = Registry & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2306,7 +2969,6 @@ export type RegistriesUpdateResponse = Registry & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2326,7 +2988,6 @@ export type RegistriesListByResourceGroupResponse = RegistryListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2346,7 +3007,6 @@ export type RegistriesListResponse = RegistryListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2366,7 +3026,6 @@ export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2386,7 +3045,6 @@ export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResu * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2406,7 +3064,6 @@ export type RegistriesListUsagesResponse = RegistryUsageListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2426,7 +3083,6 @@ export type RegistriesListPoliciesResponse = RegistryPolicies & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2446,7 +3102,6 @@ export type RegistriesUpdatePoliciesResponse = RegistryPolicies & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2466,7 +3121,6 @@ export type RegistriesScheduleRunResponse = Run & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2486,7 +3140,6 @@ export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2506,7 +3159,6 @@ export type RegistriesBeginCreateResponse = Registry & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2526,7 +3178,6 @@ export type RegistriesBeginUpdateResponse = Registry & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2546,7 +3197,6 @@ export type RegistriesBeginUpdatePoliciesResponse = RegistryPolicies & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2566,7 +3216,6 @@ export type RegistriesBeginScheduleRunResponse = Run & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2586,7 +3235,6 @@ export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2606,7 +3254,6 @@ export type RegistriesListNextResponse = RegistryListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2626,7 +3273,6 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2646,7 +3292,6 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2666,7 +3311,6 @@ export type ReplicationsGetResponse = Replication & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2686,7 +3330,6 @@ export type ReplicationsCreateResponse = Replication & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2706,7 +3349,6 @@ export type ReplicationsUpdateResponse = Replication & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2726,7 +3368,6 @@ export type ReplicationsListResponse = ReplicationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2746,7 +3387,6 @@ export type ReplicationsBeginCreateResponse = Replication & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2766,7 +3406,6 @@ export type ReplicationsBeginUpdateResponse = Replication & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2786,7 +3425,6 @@ export type ReplicationsListNextResponse = ReplicationListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2806,7 +3444,6 @@ export type WebhooksGetResponse = Webhook & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2826,7 +3463,6 @@ export type WebhooksCreateResponse = Webhook & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2846,7 +3482,6 @@ export type WebhooksUpdateResponse = Webhook & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2866,7 +3501,6 @@ export type WebhooksListResponse = WebhookListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2886,7 +3520,6 @@ export type WebhooksPingResponse = EventInfo & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2906,7 +3539,6 @@ export type WebhooksGetCallbackConfigResponse = CallbackConfig & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2926,7 +3558,6 @@ export type WebhooksListEventsResponse = EventListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2946,7 +3577,6 @@ export type WebhooksBeginCreateResponse = Webhook & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2966,7 +3596,6 @@ export type WebhooksBeginUpdateResponse = Webhook & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -2986,7 +3615,6 @@ export type WebhooksListNextResponse = WebhookListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3006,7 +3634,6 @@ export type WebhooksListEventsNextResponse = EventListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3026,7 +3653,6 @@ export type RunsListResponse = RunListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3046,7 +3672,6 @@ export type RunsGetResponse = Run & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3066,7 +3691,6 @@ export type RunsUpdateResponse = Run & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3086,7 +3710,6 @@ export type RunsGetLogSasUrlResponse = RunGetLogResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3106,7 +3729,6 @@ export type RunsBeginUpdateResponse = Run & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3126,7 +3748,6 @@ export type RunsListNextResponse = RunListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3146,7 +3767,6 @@ export type TasksListResponse = TaskListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3166,7 +3786,6 @@ export type TasksGetResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3186,7 +3805,6 @@ export type TasksCreateResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3206,7 +3824,6 @@ export type TasksUpdateResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3226,7 +3843,6 @@ export type TasksGetDetailsResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3246,7 +3862,6 @@ export type TasksBeginCreateResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3266,7 +3881,6 @@ export type TasksBeginUpdateResponse = Task & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ @@ -3286,7 +3900,6 @@ export type TasksListNextResponse = TaskListResult & { * The response body as text (string format) */ bodyAsText: string; - /** * The response body as parsed JSON or XML */ diff --git a/packages/@azure/arm-containerregistry/lib/models/mappers.ts b/packages/@azure/arm-containerregistry/lib/models/mappers.ts index 7404bddc04b3..1f178e643778 100644 --- a/packages/@azure/arm-containerregistry/lib/models/mappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/mappers.ts @@ -1,9 +1,11 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -1147,6 +1149,18 @@ export const Target: msRest.CompositeMapper = { type: { name: "String" } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } } } } @@ -1708,13 +1722,6 @@ export const Run: msRest.CompositeMapper = { className: "SourceTriggerDescriptor" } }, - isArchiveEnabled: { - serializedName: "properties.isArchiveEnabled", - defaultValue: false, - type: { - name: "Boolean" - } - }, platform: { serializedName: "properties.platform", type: { @@ -1729,11 +1736,35 @@ export const Run: msRest.CompositeMapper = { className: "AgentProperties" } }, + sourceRegistryAuth: { + serializedName: "properties.sourceRegistryAuth", + type: { + name: "String" + } + }, + customRegistries: { + serializedName: "properties.customRegistries", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, provisioningState: { serializedName: "properties.provisioningState", type: { name: "String" } + }, + isArchiveEnabled: { + serializedName: "properties.isArchiveEnabled", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -2119,6 +2150,97 @@ export const TriggerProperties: msRest.CompositeMapper = { } }; +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" + } + } + } + } +}; + +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: { @@ -2186,6 +2308,13 @@ export const Task: msRest.CompositeMapper = { name: "Composite", className: "TriggerProperties" } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "Credentials" + } } } } @@ -2473,6 +2602,13 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { className: "TriggerUpdateParameters" } }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "Credentials" + } + }, tags: { serializedName: "tags", type: { @@ -2560,6 +2696,12 @@ export const DockerBuildRequest: msRest.CompositeMapper = { name: "String" } }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, argumentsProperty: { serializedName: "arguments", type: { @@ -2603,6 +2745,13 @@ export const DockerBuildRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } } } } @@ -2704,6 +2853,13 @@ export const FileTaskRunRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } } } } @@ -2806,6 +2962,13 @@ export const EncodedTaskRunRequest: msRest.CompositeMapper = { type: { name: "String" } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "Credentials" + } } } } @@ -2852,6 +3015,12 @@ export const DockerBuildStep: msRest.CompositeMapper = { name: "String" } }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, argumentsProperty: { serializedName: "arguments", type: { @@ -2993,6 +3162,12 @@ export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = { } } } + }, + target: { + serializedName: "target", + type: { + name: "String" + } } } } @@ -3282,5 +3457,4 @@ export const discriminators = { 'TaskStepUpdateParameters.Docker' : DockerBuildStepUpdateParameters, 'TaskStepUpdateParameters.FileTask' : FileTaskStepUpdateParameters, 'TaskStepUpdateParameters.EncodedTask' : EncodedTaskStepUpdateParameters - }; diff --git a/packages/@azure/arm-containerregistry/lib/models/operationsMappers.ts b/packages/@azure/arm-containerregistry/lib/models/operationsMappers.ts index 3c46c8651118..9d87431dc184 100644 --- a/packages/@azure/arm-containerregistry/lib/models/operationsMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/operationsMappers.ts @@ -1,17 +1,20 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, - CloudError, + OperationListResult, OperationDefinition, OperationDisplayDefinition, - OperationListResult, + OperationServiceSpecificationDefinition, OperationMetricSpecificationDefinition, - OperationServiceSpecificationDefinition + CloudError } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/lib/models/registriesMappers.ts b/packages/@azure/arm-containerregistry/lib/models/registriesMappers.ts index 2ecd75f1e564..c9e27062a2a2 100644 --- a/packages/@azure/arm-containerregistry/lib/models/registriesMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/registriesMappers.ts @@ -1,64 +1,71 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, - AgentProperties, - Argument, - AuthInfo, - BaseImageDependency, - BaseImageTrigger, - BaseResource, - CloudError, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - FileTaskRunRequest, - FileTaskStep, - ImageDescriptor, - ImageUpdateTrigger, ImportImageParameters, ImportSource, ImportSourceCredentials, - IPRule, - NetworkRuleSet, - PlatformProperties, - ProxyResource, - QuarantinePolicy, - RegenerateCredentialParameters, - Registry, - RegistryListCredentialsResult, - RegistryListResult, + CloudError, RegistryNameCheckRequest, RegistryNameStatus, - RegistryPassword, - RegistryPolicies, + Registry, + Resource, + BaseResource, + Sku, + Status, + StorageAccountProperties, + NetworkRuleSet, + VirtualNetworkRule, + IPRule, RegistryUpdateParameters, - RegistryUsage, + RegistryListResult, + RegistryListCredentialsResult, + RegistryPassword, + RegenerateCredentialParameters, RegistryUsageListResult, - Replication, - Resource, - Run, + RegistryUsage, + RegistryPolicies, + QuarantinePolicy, + TrustPolicy, RunRequest, - SetValue, - Sku, - SourceProperties, - SourceTrigger, + Run, + ProxyResource, + ImageDescriptor, + ImageUpdateTrigger, SourceTriggerDescriptor, + PlatformProperties, + AgentProperties, SourceUploadDefinition, - Status, - StorageAccountProperties, + Replication, + Webhook, Task, - TaskRunRequest, TaskStepProperties, + BaseImageDependency, TriggerProperties, - TrustPolicy, - VirtualNetworkRule, - Webhook + SourceTrigger, + SourceProperties, + AuthInfo, + BaseImageTrigger, + Credentials, + SourceRegistryCredentials, + CustomRegistryCredentials, + SecretObject, + DockerBuildRequest, + Argument, + FileTaskRunRequest, + SetValue, + TaskRunRequest, + EncodedTaskRunRequest, + DockerBuildStep, + FileTaskStep, + EncodedTaskStep } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/lib/models/replicationsMappers.ts b/packages/@azure/arm-containerregistry/lib/models/replicationsMappers.ts index ed94c7a7e19d..6cc854ec3e2f 100644 --- a/packages/@azure/arm-containerregistry/lib/models/replicationsMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/replicationsMappers.ts @@ -1,45 +1,52 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, - AgentProperties, - Argument, - AuthInfo, - BaseImageDependency, - BaseImageTrigger, + Replication, + Resource, BaseResource, + Status, CloudError, - DockerBuildStep, - EncodedTaskStep, - FileTaskStep, - ImageDescriptor, - ImageUpdateTrigger, - IPRule, - NetworkRuleSet, - PlatformProperties, - ProxyResource, - Registry, - Replication, - ReplicationListResult, ReplicationUpdateParameters, - Resource, - Run, - SetValue, + ReplicationListResult, + Registry, Sku, - SourceProperties, - SourceTrigger, - SourceTriggerDescriptor, - Status, StorageAccountProperties, + NetworkRuleSet, + VirtualNetworkRule, + IPRule, + Webhook, Task, + PlatformProperties, + AgentProperties, TaskStepProperties, + BaseImageDependency, TriggerProperties, - VirtualNetworkRule, - Webhook + SourceTrigger, + SourceProperties, + AuthInfo, + BaseImageTrigger, + Credentials, + SourceRegistryCredentials, + CustomRegistryCredentials, + SecretObject, + ProxyResource, + DockerBuildStep, + Argument, + FileTaskStep, + SetValue, + EncodedTaskStep, + Run, + ImageDescriptor, + ImageUpdateTrigger, + SourceTriggerDescriptor } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/lib/models/runsMappers.ts b/packages/@azure/arm-containerregistry/lib/models/runsMappers.ts index 9526aad8f297..228e35b76abf 100644 --- a/packages/@azure/arm-containerregistry/lib/models/runsMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/runsMappers.ts @@ -1,46 +1,53 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, - AgentProperties, - Argument, - AuthInfo, - BaseImageDependency, - BaseImageTrigger, + RunListResult, + Run, + ProxyResource, BaseResource, - CloudError, - DockerBuildStep, - EncodedTaskStep, - FileTaskStep, ImageDescriptor, ImageUpdateTrigger, - IPRule, - NetworkRuleSet, + SourceTriggerDescriptor, PlatformProperties, - ProxyResource, - Registry, - Replication, - Resource, - Run, - RunGetLogResult, - RunListResult, + AgentProperties, + CloudError, RunUpdateParameters, + RunGetLogResult, + Resource, + Task, + TaskStepProperties, + BaseImageDependency, + TriggerProperties, + SourceTrigger, + SourceProperties, + AuthInfo, + BaseImageTrigger, + Credentials, + SourceRegistryCredentials, + CustomRegistryCredentials, + SecretObject, + DockerBuildStep, + Argument, + FileTaskStep, SetValue, + EncodedTaskStep, + Registry, Sku, - SourceProperties, - SourceTrigger, - SourceTriggerDescriptor, Status, StorageAccountProperties, - Task, - TaskStepProperties, - TriggerProperties, + NetworkRuleSet, VirtualNetworkRule, + IPRule, + Replication, Webhook } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/lib/models/tasksMappers.ts b/packages/@azure/arm-containerregistry/lib/models/tasksMappers.ts index 857144fe811c..a241e9ab3241 100644 --- a/packages/@azure/arm-containerregistry/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/tasksMappers.ts @@ -1,55 +1,62 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, + TaskListResult, + Task, + Resource, + BaseResource, + PlatformProperties, AgentProperties, - Argument, - AuthInfo, - AuthInfoUpdateParameters, + TaskStepProperties, BaseImageDependency, + TriggerProperties, + SourceTrigger, + SourceProperties, + AuthInfo, BaseImageTrigger, - BaseImageTriggerUpdateParameters, - BaseResource, + Credentials, + SourceRegistryCredentials, + CustomRegistryCredentials, + SecretObject, CloudError, - DockerBuildStep, - DockerBuildStepUpdateParameters, - EncodedTaskStep, - EncodedTaskStepUpdateParameters, - FileTaskStep, - FileTaskStepUpdateParameters, - ImageDescriptor, - ImageUpdateTrigger, - IPRule, - NetworkRuleSet, - PlatformProperties, + TaskUpdateParameters, PlatformUpdateParameters, - ProxyResource, - Registry, - Replication, - Resource, - Run, - SetValue, - Sku, - SourceProperties, - SourceTrigger, - SourceTriggerDescriptor, + TaskStepUpdateParameters, + TriggerUpdateParameters, SourceTriggerUpdateParameters, SourceUpdateParameters, + AuthInfoUpdateParameters, + BaseImageTriggerUpdateParameters, + Registry, + Sku, Status, StorageAccountProperties, - Task, - TaskListResult, - TaskStepProperties, - TaskStepUpdateParameters, - TaskUpdateParameters, - TriggerProperties, - TriggerUpdateParameters, + NetworkRuleSet, VirtualNetworkRule, - Webhook + IPRule, + Replication, + Webhook, + ProxyResource, + DockerBuildStep, + Argument, + FileTaskStep, + SetValue, + EncodedTaskStep, + DockerBuildStepUpdateParameters, + FileTaskStepUpdateParameters, + EncodedTaskStepUpdateParameters, + Run, + ImageDescriptor, + ImageUpdateTrigger, + SourceTriggerDescriptor } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/lib/models/webhooksMappers.ts b/packages/@azure/arm-containerregistry/lib/models/webhooksMappers.ts index 73632104e62a..0ff493fec166 100644 --- a/packages/@azure/arm-containerregistry/lib/models/webhooksMappers.ts +++ b/packages/@azure/arm-containerregistry/lib/models/webhooksMappers.ts @@ -1,57 +1,64 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. */ export { discriminators, - Actor, - AgentProperties, - Argument, - AuthInfo, - BaseImageDependency, - BaseImageTrigger, + Webhook, + Resource, BaseResource, - CallbackConfig, CloudError, - DockerBuildStep, - EncodedTaskStep, - Event, - EventContent, + WebhookCreateParameters, + WebhookUpdateParameters, + WebhookListResult, EventInfo, + CallbackConfig, EventListResult, + Event, EventRequestMessage, + EventContent, + Target, + Request, + Actor, + Source, EventResponseMessage, - FileTaskStep, - ImageDescriptor, - ImageUpdateTrigger, - IPRule, - NetworkRuleSet, - PlatformProperties, - ProxyResource, Registry, - Replication, - Request, - Resource, - Run, - SetValue, Sku, - Source, - SourceProperties, - SourceTrigger, - SourceTriggerDescriptor, Status, StorageAccountProperties, - Target, + NetworkRuleSet, + VirtualNetworkRule, + IPRule, + Replication, Task, + PlatformProperties, + AgentProperties, TaskStepProperties, + BaseImageDependency, TriggerProperties, - VirtualNetworkRule, - Webhook, - WebhookCreateParameters, - WebhookListResult, - WebhookUpdateParameters + SourceTrigger, + SourceProperties, + AuthInfo, + BaseImageTrigger, + Credentials, + SourceRegistryCredentials, + CustomRegistryCredentials, + SecretObject, + ProxyResource, + DockerBuildStep, + Argument, + FileTaskStep, + SetValue, + EncodedTaskStep, + Run, + ImageDescriptor, + ImageUpdateTrigger, + SourceTriggerDescriptor } from "../models/mappers"; + diff --git a/packages/@azure/arm-containerregistry/package.json b/packages/@azure/arm-containerregistry/package.json index b3ea6af22ca6..06bf5e25fb7d 100644 --- a/packages/@azure/arm-containerregistry/package.json +++ b/packages/@azure/arm-containerregistry/package.json @@ -4,8 +4,8 @@ "description": "ContainerRegistryManagementClient Library with typescript type definitions for node.js and browser.", "version": "5.0.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.2.4", - "@azure/ms-rest-js": "^1.2.6", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -44,7 +44,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-containerregistry.js.map'\" -o ./dist/arm-containerregistry.min.js ./dist/arm-containerregistry.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false }