diff --git a/sdk/containerregistry/arm-containerregistry/LICENSE.txt b/sdk/containerregistry/arm-containerregistry/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/containerregistry/arm-containerregistry/LICENSE.txt +++ b/sdk/containerregistry/arm-containerregistry/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/containerregistry/arm-containerregistry/README.md b/sdk/containerregistry/arm-containerregistry/README.md index 2afe51005264..b4a3792b0993 100644 --- a/sdk/containerregistry/arm-containerregistry/README.md +++ b/sdk/containerregistry/arm-containerregistry/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-containerregistry ### How to use -#### nodejs - Authentication, client creation and get exportPipelines as an example written in TypeScript. +#### nodejs - client creation and get connectedRegistries as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,19 +26,18 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { ContainerRegistryManagementClient, ContainerRegistryManagementModels, ContainerRegistryManagementMappers } from "@azure/arm-containerregistry"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { ContainerRegistryManagementClient } = require("@azure/arm-containerregistry"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { const client = new ContainerRegistryManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const registryName = "testregistryName"; - const exportPipelineName = "testexportPipelineName"; - client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => { + const connectedRegistryName = "testconnectedRegistryName"; + client.connectedRegistries.get(resourceGroupName, registryName, connectedRegistryName).then((result) => { console.log("The result is:"); console.log(result); }); @@ -47,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and get exportPipelines as an example written in JavaScript. +#### browser - Authentication, client creation and get connectedRegistries as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth @@ -83,8 +82,8 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const client = new Azure.ArmContainerregistry.ContainerRegistryManagementClient(res.creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const registryName = "testregistryName"; - const exportPipelineName = "testexportPipelineName"; - client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => { + const connectedRegistryName = "testconnectedRegistryName"; + client.connectedRegistries.get(resourceGroupName, registryName, connectedRegistryName).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/containerregistry/arm-containerregistry/rollup.config.js b/sdk/containerregistry/arm-containerregistry/rollup.config.js index 66c48646cb11..79faa6a294a4 100644 --- a/sdk/containerregistry/arm-containerregistry/rollup.config.js +++ b/sdk/containerregistry/arm-containerregistry/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 19afb901c50b..c2176af1dd43 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -17,6 +16,7 @@ import { ContainerRegistryManagementClientContext } from "./containerRegistryMan class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext { // Operation groups + connectedRegistries: operations.ConnectedRegistries; exportPipelines: operations.ExportPipelines; registries: operations.Registries; importPipelines: operations.ImportPipelines; @@ -24,13 +24,13 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien pipelineRuns: operations.PipelineRuns; privateEndpointConnections: operations.PrivateEndpointConnections; replications: operations.Replications; + scopeMaps: operations.ScopeMaps; + tokens: operations.Tokens; webhooks: operations.Webhooks; agentPools: operations.AgentPools; runs: operations.Runs; taskRuns: operations.TaskRuns; tasks: operations.Tasks; - scopeMaps: operations.ScopeMaps; - tokens: operations.Tokens; /** * Initializes a new instance of the ContainerRegistryManagementClient class. @@ -40,6 +40,7 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ContainerRegistryManagementClientOptions) { super(credentials, subscriptionId, options); + this.connectedRegistries = new operations.ConnectedRegistries(this); this.exportPipelines = new operations.ExportPipelines(this); this.registries = new operations.Registries(this); this.importPipelines = new operations.ImportPipelines(this); @@ -47,13 +48,13 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien this.pipelineRuns = new operations.PipelineRuns(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.replications = new operations.Replications(this); + this.scopeMaps = new operations.ScopeMaps(this); + this.tokens = new operations.Tokens(this); this.webhooks = new operations.Webhooks(this); this.agentPools = new operations.AgentPools(this); this.runs = new operations.Runs(this); this.taskRuns = new operations.TaskRuns(this); this.tasks = new operations.Tasks(this); - this.scopeMaps = new operations.ScopeMaps(this); - this.tokens = new operations.Tokens(this); } } diff --git a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClientContext.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClientContext.ts index a0016e0583e5..5657072b773b 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClientContext.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts index 154994c867f0..627f8044973e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentPoolListResult, AgentPoolQueueStatus, @@ -19,6 +19,7 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -40,8 +41,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -74,13 +78,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts new file mode 100644 index 000000000000..a25ce6f25207 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + ActivationProperties, + AgentPool, + AgentProperties, + Argument, + AuthInfo, + BaseImageDependency, + BaseImageTrigger, + BaseResource, + ConnectedRegistry, + ConnectedRegistryListResult, + ConnectedRegistryUpdateParameters, + Credentials, + CustomRegistryCredentials, + DockerBuildRequest, + DockerBuildStep, + EncodedTaskRunRequest, + EncodedTaskStep, + EncryptionProperty, + ErrorResponse, + ErrorResponseBody, + ExportPipeline, + ExportPipelineTargetProperties, + FileTaskRunRequest, + FileTaskStep, + IdentityProperties, + ImageDescriptor, + ImageUpdateTrigger, + ImportPipeline, + ImportPipelineSourceProperties, + InnerErrorDescription, + IPRule, + KeyVaultProperties, + LoggingProperties, + LoginServerProperties, + NetworkRuleSet, + OverrideTaskStepProperties, + ParentProperties, + PipelineRun, + PipelineRunRequest, + PipelineRunResponse, + PipelineRunSourceProperties, + PipelineRunTargetProperties, + PipelineSourceTriggerDescriptor, + PipelineSourceTriggerProperties, + PipelineTriggerDescriptor, + PipelineTriggerProperties, + PlatformProperties, + Policies, + PrivateEndpoint, + PrivateEndpointConnection, + PrivateLinkServiceConnectionState, + ProgressProperties, + ProxyResource, + QuarantinePolicy, + Registry, + Replication, + Resource, + RetentionPolicy, + Run, + RunRequest, + ScopeMap, + SecretObject, + SetValue, + Sku, + SourceProperties, + SourceRegistryCredentials, + SourceTrigger, + SourceTriggerDescriptor, + Status, + StatusDetailProperties, + SyncProperties, + SyncUpdateProperties, + SystemData, + Task, + TaskRun, + TaskRunRequest, + TaskStepProperties, + TimerTrigger, + TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, + Token, + TokenCertificate, + TokenCredentialsProperties, + TokenPassword, + TriggerProperties, + TrustPolicy, + UserIdentityProperties, + VirtualNetworkRule, + Webhook +} from "../models/mappers"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/exportPipelinesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/exportPipelinesMappers.ts index 6ce33478909a..28fd3096f6f5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/exportPipelinesMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/exportPipelinesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -36,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,13 +74,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts index 06141ad4dce9..3d841b032c69 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -36,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,13 +74,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index 596438e9d934..72e993f4819f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -11,6 +11,320 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; +/** + * The activation properties of the connected registry. + */ +export interface ActivationProperties { + /** + * The activation status of the connected registry. Possible values include: 'Active', 'Inactive' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ActivationStatus; +} + +/** + * The sync properties of the connected registry with its parent. + */ +export interface SyncProperties { + /** + * The resource ID of the ACR token used to authenticate the connected registry to its parent + * during sync. + */ + tokenId: string; + /** + * The cron expression indicating the schedule that the connected registry will sync with its + * parent. + */ + schedule?: string; + /** + * The time window during which sync is enabled for each schedule occurrence. Specify the + * duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. + */ + syncWindow?: string; + /** + * The period of time for which a message is available to sync before it is expired. Specify the + * duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. + */ + messageTtl: string; + /** + * The last time a sync occurred between the connected registry and its parent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastSyncTime?: Date; + /** + * The gateway endpoint used by the connected registry to communicate with its parent. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly gatewayEndpoint?: string; +} + +/** + * The properties of the connected registry parent. + */ +export interface ParentProperties { + /** + * The resource ID of the parent to which the connected registry will be associated. + */ + id?: string; + /** + * The sync properties of the connected registry with its parent. + */ + syncProperties: SyncProperties; +} + +/** + * The TLS certificate properties of the connected registry login server. + */ +export interface TlsCertificateProperties { + /** + * The type of certificate location. Possible values include: 'LocalDirectory' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: CertificateType; + /** + * Indicates the location of the certificates. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly location?: string; +} + +/** + * The TLS properties of the connected registry login server. + */ +export interface TlsProperties { + /** + * Indicates whether HTTPS is enabled for the login server. Possible values include: 'Enabled', + * 'Disabled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: TlsStatus; + /** + * The certificate used to configure HTTPS for the login server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly certificate?: TlsCertificateProperties; +} + +/** + * The login server properties of the connected registry. + */ +export interface LoginServerProperties { + /** + * The host of the connected registry. Can be FQDN or IP. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly host?: string; + /** + * The TLS properties of the connected registry login server. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tls?: TlsProperties; +} + +/** + * The logging properties of the connected registry. + */ +export interface LoggingProperties { + /** + * The verbosity of logs persisted on the connected registry. Possible values include: 'Debug', + * 'Information', 'Warning', 'Error', 'None'. Default value: 'Information'. + */ + logLevel?: LogLevel; + /** + * Indicates whether audit logs are enabled on the connected registry. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + auditLogStatus?: AuditLogStatus; +} + +/** + * The status detail properties of the connected registry. + */ +export interface StatusDetailProperties { + /** + * The component of the connected registry corresponding to the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The code of the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The description of the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The timestamp of the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timestamp?: Date; + /** + * The correlation ID of the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly correlationId?: string; +} + +/** + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags. + */ +export interface ProxyResource extends BaseResource { + /** + * 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.** + */ + readonly name?: string; + /** + * The type of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} + +/** + * An object that represents a connected registry for a container registry. + */ +export interface ConnectedRegistry extends ProxyResource { + /** + * Provisioning state of the resource. 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 mode of the connected registry resource that indicates the permissions of the registry. + * Possible values include: 'Registry', 'Mirror' + */ + mode: ConnectedRegistryMode; + /** + * The current version of ACR runtime on the connected registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly version?: string; + /** + * The current connection state of the connected registry. Possible values include: 'Online', + * 'Offline', 'Syncing', 'Unhealthy' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionState?: ConnectionState; + /** + * The last activity time of the connected registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastActivityTime?: Date; + /** + * The activation properties of the connected registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly activation?: ActivationProperties; + /** + * The parent of the connected registry. + */ + parent: ParentProperties; + /** + * The list of the ACR token resource IDs used to authenticate clients to the connected registry. + */ + clientTokenIds?: string[]; + /** + * The login server properties of the connected registry. + */ + loginServer?: LoginServerProperties; + /** + * The logging properties of the connected registry. + */ + logging?: LoggingProperties; + /** + * The list of current statuses of the connected registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly statusDetails?: StatusDetailProperties[]; +} + +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: LastModifiedByType; + /** + * The timestamp of resource modification (UTC). + */ + lastModifiedAt?: Date; +} + +/** + * The parameters for updating the sync properties of the connected registry with its parent. + */ +export interface SyncUpdateProperties { + /** + * The cron expression indicating the schedule that the connected registry will sync with its + * parent. + */ + schedule?: string; + /** + * The time window during which sync is enabled for each schedule occurrence. Specify the + * duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. + */ + syncWindow?: string; + /** + * The period of time for which a message is available to sync before it is expired. Specify the + * duration using the format P[n]Y[n]M[n]DT[n]H[n]M[n]S as per ISO8601. + */ + messageTtl?: string; +} + +/** + * The parameters for updating a connected registry. + */ +export interface ConnectedRegistryUpdateParameters { + /** + * The sync properties of the connected registry with its parent. + */ + syncProperties?: SyncUpdateProperties; + /** + * The logging properties of the connected registry. + */ + logging?: LoggingProperties; + /** + * The list of the ACR token resource IDs used to authenticate clients to the connected registry. + */ + clientTokenIds?: string[]; +} + /** * An interface representing UserIdentityProperties. */ @@ -71,32 +385,14 @@ export interface ExportPipelineTargetProperties { keyVaultUri: string; } -/** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags. - */ -export interface ProxyResource extends BaseResource { - /** - * 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.** - */ - readonly name?: string; - /** - * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; -} - /** * An object that represents an export pipeline for a container registry. */ export interface ExportPipeline extends ProxyResource { + /** + * The location of the export pipeline. + */ + location?: string; /** * The identity of the export pipeline. */ @@ -227,6 +523,10 @@ export interface PipelineTriggerProperties { * An object that represents an import pipeline for a container registry. */ export interface ImportPipeline extends ProxyResource { + /** + * The location of the import pipeline. + */ + location?: string; /** * The identity of the import pipeline. */ @@ -332,6 +632,24 @@ export interface OperationMetricSpecificationDefinition { internalMetricName?: string; } +/** + * The definition of Azure Monitoring log. + */ +export interface OperationLogSpecificationDefinition { + /** + * Log name. + */ + name?: string; + /** + * Log display name. + */ + displayName?: string; + /** + * Log blob duration. + */ + blobDuration?: string; +} + /** * The definition of Azure Monitoring list. */ @@ -340,6 +658,10 @@ export interface OperationServiceSpecificationDefinition { * A list of Azure Monitoring metrics definition. */ metricSpecifications?: OperationMetricSpecificationDefinition[]; + /** + * A list of Azure Monitoring log definitions. + */ + logSpecifications?: OperationLogSpecificationDefinition[]; } /** @@ -615,16 +937,6 @@ export interface Status { readonly timestamp?: Date; } -/** - * 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. - */ - id: string; -} - /** * Virtual network rule. */ @@ -756,6 +1068,16 @@ export interface KeyVaultProperties { * The client id of the identity which will be used to access key vault. */ identity?: string; + /** + * Auto key rotation status for a CMK enabled registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly keyRotationEnabled?: boolean; + /** + * Timestamp of the last successful key rotation. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastKeyRotationTimestamp?: Date; } /** @@ -800,6 +1122,11 @@ export interface Resource extends BaseResource { * The tags of the resource. */ tags?: { [propertyName: string]: string }; + /** + * Metadata pertaining to creation and last modification of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -839,11 +1166,6 @@ export interface Registry extends Resource { * 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 - * SKU. - */ - storageAccount?: StorageAccountProperties; /** * The network rule set for a container registry. */ @@ -875,6 +1197,20 @@ export interface Registry extends Resource { * include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ publicNetworkAccess?: PublicNetworkAccess; + /** + * Whether to allow trusted Azure services to access a network restricted registry. Possible + * values include: 'AzureServices', 'None'. Default value: 'AzureServices'. + */ + networkRuleBypassOptions?: NetworkRuleBypassOptions; + /** + * Whether or not zone redundancy is enabled for this container registry. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + zoneRedundancy?: ZoneRedundancy; + /** + * Enables registry-wide pull from unauthenticated clients. + */ + anonymousPullEnabled?: boolean; } /** @@ -882,17 +1218,17 @@ export interface Registry extends Resource { */ export interface RegistryUpdateParameters { /** - * The tags for the container registry. + * The identity of the container registry. + */ + identity?: IdentityProperties; + /** + * The tags for the container registry. */ tags?: { [propertyName: string]: string }; /** * The SKU of the container registry. */ sku?: Sku; - /** - * The identity of the container registry. - */ - identity?: IdentityProperties; /** * The value that indicates whether the admin user is enabled. */ @@ -918,6 +1254,15 @@ export interface RegistryUpdateParameters { * include: 'Enabled', 'Disabled' */ publicNetworkAccess?: PublicNetworkAccess; + /** + * Whether to allow trusted Azure services to access a network restricted registry. Possible + * values include: 'AzureServices', 'None'. Default value: 'AzureServices'. + */ + networkRuleBypassOptions?: NetworkRuleBypassOptions; + /** + * Enables registry-wide pull from unauthenticated clients. + */ + anonymousPullEnabled?: boolean; } /** @@ -1043,6 +1388,11 @@ export interface Replication extends Resource { * synced with other replications. Default value: true. */ regionEndpointEnabled?: boolean; + /** + * Whether or not zone redundancy is enabled for this container registry replication. Possible + * values include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + */ + zoneRedundancy?: ZoneRedundancy; } /** @@ -1061,6 +1411,209 @@ export interface ReplicationUpdateParameters { regionEndpointEnabled?: boolean; } +/** + * An object that represents a scope map for a container registry. + */ +export interface ScopeMap extends ProxyResource { + /** + * The user friendly description of the scope map. + */ + description?: string; + /** + * The type of the scope map. E.g. BuildIn scope map. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly scopeMapType?: string; + /** + * The creation date of scope map. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. 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 list of scoped permissions for registry artifacts. + * E.g. repositories/repository-name/content/read, + * repositories/repository-name/metadata/write + */ + actions: string[]; +} + +/** + * The properties for updating the scope map. + */ +export interface ScopeMapUpdateParameters { + /** + * The user friendly description of the scope map. + */ + description?: string; + /** + * The list of scope permissions for registry artifacts. + * E.g. repositories/repository-name/pull, + * repositories/repository-name/delete + */ + actions?: string[]; +} + +/** + * The properties of a certificate used for authenticating a token. + */ +export interface TokenCertificate { + /** + * Possible values include: 'certificate1', 'certificate2' + */ + name?: TokenCertificateName; + /** + * The expiry datetime of the certificate. + */ + expiry?: Date; + /** + * The thumbprint of the certificate. + */ + thumbprint?: string; + /** + * Base 64 encoded string of the public certificate1 in PEM format that will be used for + * authenticating the token. + */ + encodedPemCertificate?: string; +} + +/** + * The password that will be used for authenticating the token of a container registry. + */ +export interface TokenPassword { + /** + * The creation datetime of the password. + */ + creationTime?: Date; + /** + * The expiry datetime of the password. + */ + expiry?: Date; + /** + * The password name "password1" or "password2". Possible values include: 'password1', + * 'password2' + */ + name?: TokenPasswordName; + /** + * The password value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly value?: string; +} + +/** + * The properties of the credentials that can be used for authenticating the token. + */ +export interface TokenCredentialsProperties { + certificates?: TokenCertificate[]; + passwords?: TokenPassword[]; +} + +/** + * An object that represents a token for a container registry. + */ +export interface Token extends ProxyResource { + /** + * The creation date of scope map. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * Provisioning state of the resource. 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 resource ID of the scope map to which the token will be associated with. + */ + scopeMapId?: string; + /** + * The credentials that can be used for authenticating the token. + */ + credentials?: TokenCredentialsProperties; + /** + * The status of the token example enabled or disabled. Possible values include: 'enabled', + * 'disabled' + */ + status?: TokenStatus; +} + +/** + * The Active Directory Object that will be used for authenticating the token of a container + * registry. + */ +export interface ActiveDirectoryObject { + /** + * The user/group/application object ID for Active Directory Object that will be used for + * authenticating the token of a container registry. + */ + objectId?: string; + /** + * The tenant ID of user/group/application object Active Directory Object that will be used for + * authenticating the token of a container registry. + */ + tenantId?: string; +} + +/** + * The parameters for updating a token. + */ +export interface TokenUpdateParameters { + /** + * The resource ID of the scope map to which the token will be associated with. + */ + scopeMapId?: string; + /** + * The status of the token example enabled or disabled. Possible values include: 'enabled', + * 'disabled' + */ + status?: TokenStatus; + /** + * The credentials that can be used for authenticating the token. + */ + credentials?: TokenCredentialsProperties; +} + +/** + * The parameters used to generate credentials for a specified token or user of a container + * registry. + */ +export interface GenerateCredentialsParameters { + /** + * The resource ID of the token for which credentials have to be generated. + */ + tokenId?: string; + /** + * The expiry date of the generated credentials after which the credentials become invalid. + */ + expiry?: Date; + /** + * Specifies name of the password which should be regenerated if any -- password1 or password2. + * Possible values include: 'password1', 'password2' + */ + name?: TokenPasswordName; +} + +/** + * The response from the GenerateCredentials operation. + */ +export interface GenerateCredentialsResult { + /** + * The username for a container registry. + */ + username?: string; + /** + * The list of passwords for a container registry. + */ + passwords?: TokenPassword[]; +} + /** * An object that represents a webhook for a container registry. */ @@ -1382,47 +1935,97 @@ export interface Event extends EventInfo { } /** - * The agentpool that has the ARM resource and properties. - * The agentpool will have all information to create an agent pool. + * inner error. */ -export interface AgentPool extends Resource { - /** - * The count of agent machine - */ - count?: number; - /** - * The Tier of agent machine - */ - tier?: string; +export interface InnerErrorDescription { /** - * The OS of agent machine. Possible values include: 'Windows', 'Linux' + * error code. */ - os?: OS; + code: string; /** - * The Virtual Network Subnet Resource Id of the agent machine + * error message. */ - virtualNetworkSubnetResourceId?: string; + message: string; /** - * The provisioning state of this agent pool. Possible values include: 'Creating', 'Updating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * target of the particular error. */ - readonly provisioningState?: ProvisioningState; + target?: string; } /** - * The parameters for updating an agent pool. + * An error response from the Azure Container Registry service. */ -export interface AgentPoolUpdateParameters { +export interface ErrorResponseBody { /** - * The count of agent machine + * error code. */ - count?: number; + code: string; /** - * The ARM resource tags. + * error message. */ - tags?: { [propertyName: string]: string }; -} + message: string; + /** + * target of the particular error. + */ + target?: string; + /** + * an array of additional nested error response info objects, as described by this contract. + */ + details?: InnerErrorDescription; +} + +/** + * An error response from the Azure Container Registry service. + */ +export interface ErrorResponse { + /** + * Azure container registry build API error body. + */ + error?: ErrorResponseBody; +} + +/** + * The agentpool that has the ARM resource and properties. + * The agentpool will have all information to create an agent pool. + */ +export interface AgentPool extends Resource { + /** + * The count of agent machine + */ + count?: number; + /** + * The Tier of agent machine + */ + tier?: string; + /** + * The OS of agent machine. Possible values include: 'Windows', 'Linux' + */ + os?: OS; + /** + * The Virtual Network Subnet Resource Id of the agent machine + */ + virtualNetworkSubnetResourceId?: string; + /** + * The provisioning state of this agent pool. 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 parameters for updating an agent pool. + */ +export interface AgentPoolUpdateParameters { + /** + * The count of agent machine + */ + count?: number; + /** + * The ARM resource tags. + */ + tags?: { [propertyName: string]: string }; +} /** * The QueueStatus of Agent Pool @@ -1456,6 +2059,10 @@ export interface RunRequest { * The dedicated agent pool for the run. */ agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; } /** @@ -1658,6 +2265,11 @@ export interface Run extends ProxyResource { * The update trigger token passed for the Run. */ updateTriggerToken?: string; + /** + * The image description for the log artifact. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly logArtifact?: ImageDescriptor; /** * The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', * 'Succeeded', 'Failed', 'Canceled' @@ -1746,13 +2358,17 @@ export interface RunGetLogResult { * The link to logs for a run on a azure container registry. */ logLink?: string; + /** + * The link to logs in registry for a run on a azure container registry. + */ + logArtifactLink?: string; } /** * The task run that has the ARM resource and properties. * The task run will have the information of request and result of a run. */ -export interface TaskRun extends Resource { +export interface TaskRun extends ProxyResource { /** * Identity for the resource. */ @@ -1776,6 +2392,10 @@ export interface TaskRun extends Resource { * How the run should be forced to rerun even if the run request configuration has not changed */ forceUpdateTag?: string; + /** + * The location of the resource + */ + location?: string; } /** @@ -1794,6 +2414,10 @@ export interface TaskRunUpdateParameters { * How the run should be forced to rerun even if the run request configuration has not changed */ forceUpdateTag?: string; + /** + * The location of the resource + */ + location?: string; /** * The ARM resource tags. */ @@ -2091,7 +2715,7 @@ export interface Task extends Resource { /** * The platform properties against which the run has to happen. */ - platform: PlatformProperties; + platform?: PlatformProperties; /** * The machine configuration of the run agent. */ @@ -2107,7 +2731,7 @@ export interface Task extends Resource { /** * The properties of a task step. */ - step: TaskStepPropertiesUnion; + step?: TaskStepPropertiesUnion; /** * The properties that describe all triggers for the task. */ @@ -2116,6 +2740,15 @@ export interface Task extends Resource { * The properties that describes a set of credentials that will be used when this run is invoked. */ credentials?: Credentials; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; + /** + * The value of this property indicates whether the task resource is system task or not. Default + * value: false. + */ + isSystemTask?: boolean; } /** @@ -2340,59 +2973,13 @@ export interface TaskUpdateParameters { */ credentials?: Credentials; /** - * The ARM resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * inner error. - */ -export interface InnerErrorDescription { - /** - * error code. - */ - code: string; - /** - * error message. + * The template that describes the repository and tag information for run log artifact. */ - message: string; - /** - * target of the particular error. - */ - target?: string; -} - -/** - * An error response from the Azure Container Registry service. - */ -export interface ErrorResponseBody { + logTemplate?: string; /** - * error code. - */ - code: string; - /** - * error message. - */ - message: string; - /** - * target of the particular error. - */ - target?: string; - /** - * an array of additional nested error response info objects, as described by this contract. - */ - details?: InnerErrorDescription; -} - -/** - * An error response from the Azure Container Registry service. - */ -export interface ErrorResponse { - /** - * Azure container registry build API error body. + * The ARM resource tags. */ - error?: ErrorResponseBody; + tags?: { [propertyName: string]: string }; } /** @@ -2431,6 +3018,10 @@ export interface DockerBuildRequest { * The dedicated agent pool for the run. */ agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; /** * The fully qualified image names including the repository and tag. */ @@ -2517,6 +3108,10 @@ export interface FileTaskRunRequest { * The dedicated agent pool for the run. */ agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; /** * The template/definition file path relative to the source. */ @@ -2602,6 +3197,10 @@ export interface TaskRunRequest { * The dedicated agent pool for the run. */ agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; /** * The resource ID of task against which run has to be queued. */ @@ -2629,6 +3228,10 @@ export interface EncodedTaskRunRequest { * The dedicated agent pool for the run. */ agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; /** * Base64 encoded value of the template/definition file content. */ @@ -2895,213 +3498,48 @@ export interface EncodedTaskStepUpdateParameters { } /** - * An object that represents a scope map for a container registry. - */ -export interface ScopeMap extends ProxyResource { - /** - * The user friendly description of the scope map. - */ - description?: string; - /** - * The type of the scope map. E.g. BuildIn scope map. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly scopeMapType?: string; - /** - * The creation date of scope map. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Provisioning state of the resource. 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 list of scoped permissions for registry artifacts. - * E.g. repositories/repository-name/content/read, - * repositories/repository-name/metadata/write - */ - actions: string[]; -} - -/** - * The properties for updating the scope map. - */ -export interface ScopeMapUpdateParameters { - /** - * The user friendly description of the scope map. - */ - description?: string; - /** - * The list of scope permissions for registry artifacts. - * E.g. repositories/repository-name/pull, - * repositories/repository-name/delete - */ - actions?: string[]; -} - -/** - * The Active Directory Object that will be used for authenticating the token of a container - * registry. - */ -export interface ActiveDirectoryObject { - /** - * The user/group/application object ID for Active Directory Object that will be used for - * authenticating the token of a container registry. - */ - objectId?: string; - /** - * The tenant ID of user/group/application object Active Directory Object that will be used for - * authenticating the token of a container registry. - */ - tenantId?: string; -} - -/** - * The properties of a certificate used for authenticating a token. - */ -export interface TokenCertificate { - /** - * Possible values include: 'certificate1', 'certificate2' - */ - name?: TokenCertificateName; - /** - * The expiry datetime of the certificate. - */ - expiry?: Date; - /** - * The thumbprint of the certificate. - */ - thumbprint?: string; - /** - * Base 64 encoded string of the public certificate1 in PEM format that will be used for - * authenticating the token. - */ - encodedPemCertificate?: string; -} - -/** - * The password that will be used for authenticating the token of a container registry. - */ -export interface TokenPassword { - /** - * The creation datetime of the password. - */ - creationTime?: Date; - /** - * The expiry datetime of the password. - */ - expiry?: Date; - /** - * The password name "password1" or "password2". Possible values include: 'password1', - * 'password2' - */ - name?: TokenPasswordName; - /** - * The password value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly value?: string; -} - -/** - * The properties of the credentials that can be used for authenticating the token. - */ -export interface TokenCredentialsProperties { - activeDirectoryObject?: ActiveDirectoryObject; - certificates?: TokenCertificate[]; - passwords?: TokenPassword[]; -} - -/** - * An object that represents a token for a container registry. - */ -export interface Token extends ProxyResource { - /** - * The creation date of scope map. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Provisioning state of the resource. 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 resource ID of the scope map to which the token will be associated with. - */ - scopeMapId?: string; - /** - * The credentials that can be used for authenticating the token. - */ - credentials?: TokenCredentialsProperties; - /** - * The status of the token example enabled or disabled. Possible values include: 'enabled', - * 'disabled' - */ - status?: TokenStatus; -} - -/** - * The parameters for updating a token. + * Optional Parameters. */ -export interface TokenUpdateParameters { - /** - * The resource ID of the scope map to which the token will be associated with. - */ - scopeMapId?: string; +export interface ConnectedRegistriesListOptionalParams extends msRest.RequestOptionsBase { /** - * The status of the token example enabled or disabled. Possible values include: 'enabled', - * 'disabled' - */ - status?: TokenStatus; - /** - * The credentials that can be used for authenticating the token. + * An OData filter expression that describes a subset of connectedRegistries to return. The + * parameters that can be filtered are parent.id (the resource id of the connectedRegistry + * parent), mode, and connectionState. The supported operator is eq. */ - credentials?: TokenCredentialsProperties; + filter?: string; } /** - * The parameters used to generate credentials for a specified token or user of a container - * registry. + * Optional Parameters. */ -export interface GenerateCredentialsParameters { - /** - * The resource ID of the token for which credentials have to be generated. - */ - tokenId?: string; - /** - * The expiry date of the generated credentials after which the credentials become invalid. - */ - expiry?: Date; +export interface ConnectedRegistriesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * Specifies name of the password which should be regenerated if any -- password1 or password2. - * Possible values include: 'password1', 'password2' + * An OData filter expression that describes a subset of connectedRegistries to return. The + * parameters that can be filtered are parent.id (the resource id of the connectedRegistry + * parent), mode, and connectionState. The supported operator is eq. */ - name?: TokenPasswordName; + filter?: string; } /** - * The response from the GenerateCredentials operation. + * Optional Parameters. */ -export interface GenerateCredentialsResult { +export interface RunsListOptionalParams extends msRest.RequestOptionsBase { /** - * The username for a container registry. + * 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. */ - username?: string; + filter?: string; /** - * The list of passwords for a container registry. + * $top is supported for get list of runs, which limits the maximum number of runs to return. */ - passwords?: TokenPassword[]; + top?: number; } /** * Optional Parameters. */ -export interface RunsListOptionalParams extends msRest.RequestOptionsBase { +export interface RunsListNextOptionalParams extends msRest.RequestOptionsBase { /** * The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed * string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. @@ -3120,6 +3558,18 @@ export interface ContainerRegistryManagementClientOptions extends AzureServiceCl baseUri?: string; } +/** + * @interface + * The result of a request to list connected registries for a container registry. + * @extends Array + */ +export interface ConnectedRegistryListResult extends Array { + /** + * The URI that can be used to request the next list of connected registries. + */ + nextLink?: string; +} + /** * @interface * The result of a request to list export pipelines for a container registry. @@ -3216,6 +3666,30 @@ export interface ReplicationListResult extends Array { nextLink?: string; } +/** + * @interface + * The result of a request to list scope maps for a container registry. + * @extends Array + */ +export interface ScopeMapListResult extends Array { + /** + * The URI that can be used to request the next list of scope maps. + */ + nextLink?: string; +} + +/** + * @interface + * The result of a request to list tokens for a container registry. + * @extends Array + */ +export interface TokenListResult extends Array { + /** + * The URI that can be used to request the next list of tokens. + */ + nextLink?: string; +} + /** * @interface * The result of a request to list webhooks for a container registry. @@ -3289,28 +3763,84 @@ export interface TaskListResult extends Array { } /** - * @interface - * The result of a request to list scope maps for a container registry. - * @extends Array + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} */ -export interface ScopeMapListResult extends Array { - /** - * The URI that can be used to request the next list of scope maps. - */ - nextLink?: string; -} +export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for ConnectedRegistryMode. + * Possible values include: 'Registry', 'Mirror' + * @readonly + * @enum {string} + */ +export type ConnectedRegistryMode = 'Registry' | 'Mirror'; + +/** + * Defines values for ConnectionState. + * Possible values include: 'Online', 'Offline', 'Syncing', 'Unhealthy' + * @readonly + * @enum {string} + */ +export type ConnectionState = 'Online' | 'Offline' | 'Syncing' | 'Unhealthy'; + +/** + * Defines values for ActivationStatus. + * Possible values include: 'Active', 'Inactive' + * @readonly + * @enum {string} + */ +export type ActivationStatus = 'Active' | 'Inactive'; + +/** + * Defines values for TlsStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type TlsStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for CertificateType. + * Possible values include: 'LocalDirectory' + * @readonly + * @enum {string} + */ +export type CertificateType = 'LocalDirectory'; + +/** + * Defines values for LogLevel. + * Possible values include: 'Debug', 'Information', 'Warning', 'Error', 'None' + * @readonly + * @enum {string} + */ +export type LogLevel = 'Debug' | 'Information' | 'Warning' | 'Error' | 'None'; + +/** + * Defines values for AuditLogStatus. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type AuditLogStatus = 'Enabled' | 'Disabled'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** - * @interface - * The result of a request to list tokens for a container registry. - * @extends Array + * Defines values for LastModifiedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} */ -export interface TokenListResult extends Array { - /** - * The URI that can be used to request the next list of tokens. - */ - nextLink?: string; -} +export type LastModifiedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for ResourceIdentityType. @@ -3330,14 +3860,6 @@ export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAs */ export type PipelineOptions = 'OverwriteTags' | 'OverwriteBlobs' | 'DeleteSourceBlobOnSuccess' | 'ContinueOnErrors'; -/** - * Defines values for ProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; - /** * Defines values for ImportMode. * Possible values include: 'NoForce', 'Force' @@ -3458,6 +3980,22 @@ export type EncryptionStatus = 'enabled' | 'disabled'; */ export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +/** + * Defines values for NetworkRuleBypassOptions. + * Possible values include: 'AzureServices', 'None' + * @readonly + * @enum {string} + */ +export type NetworkRuleBypassOptions = 'AzureServices' | 'None'; + +/** + * Defines values for ZoneRedundancy. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type ZoneRedundancy = 'Enabled' | 'Disabled'; + /** * Defines values for PasswordName. * Possible values include: 'password', 'password2' @@ -3474,6 +4012,30 @@ export type PasswordName = 'password' | 'password2'; */ export type RegistryUsageUnit = 'Count' | 'Bytes'; +/** + * Defines values for TokenCertificateName. + * Possible values include: 'certificate1', 'certificate2' + * @readonly + * @enum {string} + */ +export type TokenCertificateName = 'certificate1' | 'certificate2'; + +/** + * Defines values for TokenPasswordName. + * Possible values include: 'password1', 'password2' + * @readonly + * @enum {string} + */ +export type TokenPasswordName = 'password1' | 'password2'; + +/** + * Defines values for TokenStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} + */ +export type TokenStatus = 'enabled' | 'disabled'; + /** * Defines values for WebhookStatus. * Possible values include: 'enabled', 'disabled' @@ -3604,28 +4166,144 @@ export type SourceRegistryLoginMode = 'None' | 'Default'; export type SecretObjectType = 'Opaque' | 'Vaultsecret'; /** - * Defines values for TokenCertificateName. - * Possible values include: 'certificate1', 'certificate2' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type TokenCertificateName = 'certificate1' | 'certificate2'; +export type ConnectedRegistriesGetResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; /** - * Defines values for TokenPasswordName. - * Possible values include: 'password1', 'password2' - * @readonly - * @enum {string} + * Contains response data for the create operation. */ -export type TokenPasswordName = 'password1' | 'password2'; +export type ConnectedRegistriesCreateResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; /** - * Defines values for TokenStatus. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type TokenStatus = 'enabled' | 'disabled'; +export type ConnectedRegistriesUpdateResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ConnectedRegistriesListResponse = ConnectedRegistryListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistryListResult; + }; +}; + +/** + * Contains response data for the beginCreate operation. + */ +export type ConnectedRegistriesBeginCreateResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ConnectedRegistriesBeginUpdateResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistryListResult; + }; +}; /** * Contains response data for the get operation. @@ -3928,9 +4606,9 @@ export type RegistriesListPrivateLinkResourcesResponse = PrivateLinkResourceList }; /** - * Contains response data for the scheduleRun operation. + * Contains response data for the generateCredentials operation. */ -export type RegistriesScheduleRunResponse = Run & { +export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult & { /** * The underlying HTTP response. */ @@ -3943,14 +4621,14 @@ export type RegistriesScheduleRunResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: GenerateCredentialsResult; }; }; /** - * Contains response data for the getBuildSourceUploadUrl operation. + * Contains response data for the scheduleRun operation. */ -export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & { +export type RegistriesScheduleRunResponse = Run & { /** * The underlying HTTP response. */ @@ -3963,14 +4641,14 @@ export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & /** * The response body as parsed JSON or XML */ - parsedBody: SourceUploadDefinition; + parsedBody: Run; }; }; /** - * Contains response data for the generateCredentials operation. + * Contains response data for the getBuildSourceUploadUrl operation. */ -export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult & { +export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & { /** * The underlying HTTP response. */ @@ -3983,7 +4661,7 @@ export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult & /** * The response body as parsed JSON or XML */ - parsedBody: GenerateCredentialsResult; + parsedBody: SourceUploadDefinition; }; }; @@ -4028,9 +4706,9 @@ export type RegistriesBeginUpdateResponse = Registry & { }; /** - * Contains response data for the beginScheduleRun operation. + * Contains response data for the beginGenerateCredentials operation. */ -export type RegistriesBeginScheduleRunResponse = Run & { +export type RegistriesBeginGenerateCredentialsResponse = GenerateCredentialsResult & { /** * The underlying HTTP response. */ @@ -4043,14 +4721,14 @@ export type RegistriesBeginScheduleRunResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: GenerateCredentialsResult; }; }; /** - * Contains response data for the beginGenerateCredentials operation. + * Contains response data for the beginScheduleRun operation. */ -export type RegistriesBeginGenerateCredentialsResponse = GenerateCredentialsResult & { +export type RegistriesBeginScheduleRunResponse = Run & { /** * The underlying HTTP response. */ @@ -4063,7 +4741,7 @@ export type RegistriesBeginGenerateCredentialsResponse = GenerateCredentialsResu /** * The response body as parsed JSON or XML */ - parsedBody: GenerateCredentialsResult; + parsedBody: Run; }; }; @@ -4610,7 +5288,7 @@ export type ReplicationsListNextResponse = ReplicationListResult & { /** * Contains response data for the get operation. */ -export type WebhooksGetResponse = Webhook & { +export type ScopeMapsGetResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4623,14 +5301,14 @@ export type WebhooksGetResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMap; }; }; /** * Contains response data for the create operation. */ -export type WebhooksCreateResponse = Webhook & { +export type ScopeMapsCreateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4643,14 +5321,14 @@ export type WebhooksCreateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMap; }; }; /** * Contains response data for the update operation. */ -export type WebhooksUpdateResponse = Webhook & { +export type ScopeMapsUpdateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4663,14 +5341,14 @@ export type WebhooksUpdateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMap; }; }; /** * Contains response data for the list operation. */ -export type WebhooksListResponse = WebhookListResult & { +export type ScopeMapsListResponse = ScopeMapListResult & { /** * The underlying HTTP response. */ @@ -4683,14 +5361,14 @@ export type WebhooksListResponse = WebhookListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WebhookListResult; + parsedBody: ScopeMapListResult; }; }; /** - * Contains response data for the ping operation. + * Contains response data for the beginCreate operation. */ -export type WebhooksPingResponse = EventInfo & { +export type ScopeMapsBeginCreateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4703,14 +5381,14 @@ export type WebhooksPingResponse = EventInfo & { /** * The response body as parsed JSON or XML */ - parsedBody: EventInfo; + parsedBody: ScopeMap; }; }; /** - * Contains response data for the getCallbackConfig operation. + * Contains response data for the beginUpdate operation. */ -export type WebhooksGetCallbackConfigResponse = CallbackConfig & { +export type ScopeMapsBeginUpdateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4723,14 +5401,14 @@ export type WebhooksGetCallbackConfigResponse = CallbackConfig & { /** * The response body as parsed JSON or XML */ - parsedBody: CallbackConfig; + parsedBody: ScopeMap; }; }; /** - * Contains response data for the listEvents operation. + * Contains response data for the listNext operation. */ -export type WebhooksListEventsResponse = EventListResult & { +export type ScopeMapsListNextResponse = ScopeMapListResult & { /** * The underlying HTTP response. */ @@ -4743,14 +5421,14 @@ export type WebhooksListEventsResponse = EventListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventListResult; + parsedBody: ScopeMapListResult; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the get operation. */ -export type WebhooksBeginCreateResponse = Webhook & { +export type TokensGetResponse = Token & { /** * The underlying HTTP response. */ @@ -4763,14 +5441,14 @@ export type WebhooksBeginCreateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: Token; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the create operation. */ -export type WebhooksBeginUpdateResponse = Webhook & { +export type TokensCreateResponse = Token & { /** * The underlying HTTP response. */ @@ -4783,14 +5461,14 @@ export type WebhooksBeginUpdateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: Token; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the update operation. */ -export type WebhooksListNextResponse = WebhookListResult & { +export type TokensUpdateResponse = Token & { /** * The underlying HTTP response. */ @@ -4803,14 +5481,14 @@ export type WebhooksListNextResponse = WebhookListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WebhookListResult; + parsedBody: Token; }; }; /** - * Contains response data for the listEventsNext operation. + * Contains response data for the list operation. */ -export type WebhooksListEventsNextResponse = EventListResult & { +export type TokensListResponse = TokenListResult & { /** * The underlying HTTP response. */ @@ -4823,14 +5501,14 @@ export type WebhooksListEventsNextResponse = EventListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventListResult; + parsedBody: TokenListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreate operation. */ -export type AgentPoolsGetResponse = AgentPool & { +export type TokensBeginCreateResponse = Token & { /** * The underlying HTTP response. */ @@ -4843,14 +5521,14 @@ export type AgentPoolsGetResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: Token; }; }; /** - * Contains response data for the create operation. + * Contains response data for the beginUpdate operation. */ -export type AgentPoolsCreateResponse = AgentPool & { +export type TokensBeginUpdateResponse = Token & { /** * The underlying HTTP response. */ @@ -4863,14 +5541,14 @@ export type AgentPoolsCreateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: Token; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listNext operation. */ -export type AgentPoolsUpdateResponse = AgentPool & { +export type TokensListNextResponse = TokenListResult & { /** * The underlying HTTP response. */ @@ -4883,14 +5561,14 @@ export type AgentPoolsUpdateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: TokenListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type AgentPoolsListResponse = AgentPoolListResult & { +export type WebhooksGetResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4903,14 +5581,14 @@ export type AgentPoolsListResponse = AgentPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolListResult; + parsedBody: Webhook; }; }; /** - * Contains response data for the getQueueStatus operation. + * Contains response data for the create operation. */ -export type AgentPoolsGetQueueStatusResponse = AgentPoolQueueStatus & { +export type WebhooksCreateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4923,14 +5601,14 @@ export type AgentPoolsGetQueueStatusResponse = AgentPoolQueueStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolQueueStatus; + parsedBody: Webhook; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the update operation. */ -export type AgentPoolsBeginCreateResponse = AgentPool & { +export type WebhooksUpdateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4943,14 +5621,14 @@ export type AgentPoolsBeginCreateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: Webhook; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the list operation. */ -export type AgentPoolsBeginUpdateResponse = AgentPool & { +export type WebhooksListResponse = WebhookListResult & { /** * The underlying HTTP response. */ @@ -4963,14 +5641,14 @@ export type AgentPoolsBeginUpdateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: WebhookListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the ping operation. */ -export type AgentPoolsListNextResponse = AgentPoolListResult & { +export type WebhooksPingResponse = EventInfo & { /** * The underlying HTTP response. */ @@ -4983,14 +5661,14 @@ export type AgentPoolsListNextResponse = AgentPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolListResult; + parsedBody: EventInfo; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getCallbackConfig operation. */ -export type RunsListResponse = RunListResult & { +export type WebhooksGetCallbackConfigResponse = CallbackConfig & { /** * The underlying HTTP response. */ @@ -5003,14 +5681,14 @@ export type RunsListResponse = RunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunListResult; + parsedBody: CallbackConfig; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listEvents operation. */ -export type RunsGetResponse = Run & { +export type WebhooksListEventsResponse = EventListResult & { /** * The underlying HTTP response. */ @@ -5023,14 +5701,14 @@ export type RunsGetResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: EventListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreate operation. */ -export type RunsUpdateResponse = Run & { +export type WebhooksBeginCreateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -5043,14 +5721,14 @@ export type RunsUpdateResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: Webhook; }; }; /** - * Contains response data for the getLogSasUrl operation. + * Contains response data for the beginUpdate operation. */ -export type RunsGetLogSasUrlResponse = RunGetLogResult & { +export type WebhooksBeginUpdateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -5063,14 +5741,14 @@ export type RunsGetLogSasUrlResponse = RunGetLogResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunGetLogResult; + parsedBody: Webhook; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listNext operation. */ -export type RunsBeginUpdateResponse = Run & { +export type WebhooksListNextResponse = WebhookListResult & { /** * The underlying HTTP response. */ @@ -5083,14 +5761,14 @@ export type RunsBeginUpdateResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: WebhookListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listEventsNext operation. */ -export type RunsListNextResponse = RunListResult & { +export type WebhooksListEventsNextResponse = EventListResult & { /** * The underlying HTTP response. */ @@ -5103,14 +5781,14 @@ export type RunsListNextResponse = RunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunListResult; + parsedBody: EventListResult; }; }; /** * Contains response data for the get operation. */ -export type TaskRunsGetResponse = TaskRun & { +export type AgentPoolsGetResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -5123,14 +5801,14 @@ export type TaskRunsGetResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPool; }; }; /** * Contains response data for the create operation. */ -export type TaskRunsCreateResponse = TaskRun & { +export type AgentPoolsCreateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -5143,14 +5821,14 @@ export type TaskRunsCreateResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPool; }; }; /** * Contains response data for the update operation. */ -export type TaskRunsUpdateResponse = TaskRun & { +export type AgentPoolsUpdateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -5163,14 +5841,14 @@ export type TaskRunsUpdateResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPool; }; }; /** - * Contains response data for the getDetails operation. + * Contains response data for the list operation. */ -export type TaskRunsGetDetailsResponse = TaskRun & { +export type AgentPoolsListResponse = AgentPoolListResult & { /** * The underlying HTTP response. */ @@ -5183,14 +5861,14 @@ export type TaskRunsGetDetailsResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPoolListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getQueueStatus operation. */ -export type TaskRunsListResponse = TaskRunListResult & { +export type AgentPoolsGetQueueStatusResponse = AgentPoolQueueStatus & { /** * The underlying HTTP response. */ @@ -5203,14 +5881,14 @@ export type TaskRunsListResponse = TaskRunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRunListResult; + parsedBody: AgentPoolQueueStatus; }; }; /** * Contains response data for the beginCreate operation. */ -export type TaskRunsBeginCreateResponse = TaskRun & { +export type AgentPoolsBeginCreateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -5223,14 +5901,14 @@ export type TaskRunsBeginCreateResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPool; }; }; /** * Contains response data for the beginUpdate operation. */ -export type TaskRunsBeginUpdateResponse = TaskRun & { +export type AgentPoolsBeginUpdateResponse = AgentPool & { /** * The underlying HTTP response. */ @@ -5243,14 +5921,14 @@ export type TaskRunsBeginUpdateResponse = TaskRun & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRun; + parsedBody: AgentPool; }; }; /** * Contains response data for the listNext operation. */ -export type TaskRunsListNextResponse = TaskRunListResult & { +export type AgentPoolsListNextResponse = AgentPoolListResult & { /** * The underlying HTTP response. */ @@ -5263,14 +5941,14 @@ export type TaskRunsListNextResponse = TaskRunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskRunListResult; + parsedBody: AgentPoolListResult; }; }; /** * Contains response data for the list operation. */ -export type TasksListResponse = TaskListResult & { +export type RunsListResponse = RunListResult & { /** * The underlying HTTP response. */ @@ -5283,14 +5961,14 @@ export type TasksListResponse = TaskListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskListResult; + parsedBody: RunListResult; }; }; /** * Contains response data for the get operation. */ -export type TasksGetResponse = Task & { +export type RunsGetResponse = Run & { /** * The underlying HTTP response. */ @@ -5303,14 +5981,14 @@ export type TasksGetResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: Run; }; }; /** - * Contains response data for the create operation. + * Contains response data for the update operation. */ -export type TasksCreateResponse = Task & { +export type RunsUpdateResponse = Run & { /** * The underlying HTTP response. */ @@ -5323,14 +6001,14 @@ export type TasksCreateResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: Run; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getLogSasUrl operation. */ -export type TasksUpdateResponse = Task & { +export type RunsGetLogSasUrlResponse = RunGetLogResult & { /** * The underlying HTTP response. */ @@ -5343,14 +6021,14 @@ export type TasksUpdateResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: RunGetLogResult; }; }; /** - * Contains response data for the getDetails operation. + * Contains response data for the beginUpdate operation. */ -export type TasksGetDetailsResponse = Task & { +export type RunsBeginUpdateResponse = Run & { /** * The underlying HTTP response. */ @@ -5363,14 +6041,14 @@ export type TasksGetDetailsResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: Run; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listNext operation. */ -export type TasksBeginCreateResponse = Task & { +export type RunsListNextResponse = RunListResult & { /** * The underlying HTTP response. */ @@ -5383,14 +6061,14 @@ export type TasksBeginCreateResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: RunListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type TasksBeginUpdateResponse = Task & { +export type TaskRunsGetResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5403,14 +6081,14 @@ export type TasksBeginUpdateResponse = Task & { /** * The response body as parsed JSON or XML */ - parsedBody: Task; + parsedBody: TaskRun; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type TasksListNextResponse = TaskListResult & { +export type TaskRunsCreateResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5423,14 +6101,14 @@ export type TasksListNextResponse = TaskListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TaskListResult; + parsedBody: TaskRun; }; }; /** - * Contains response data for the get operation. + * Contains response data for the update operation. */ -export type ScopeMapsGetResponse = ScopeMap & { +export type TaskRunsUpdateResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5443,14 +6121,14 @@ export type ScopeMapsGetResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: TaskRun; }; }; /** - * Contains response data for the create operation. + * Contains response data for the getDetails operation. */ -export type ScopeMapsCreateResponse = ScopeMap & { +export type TaskRunsGetDetailsResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5463,14 +6141,14 @@ export type ScopeMapsCreateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: TaskRun; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type ScopeMapsUpdateResponse = ScopeMap & { +export type TaskRunsListResponse = TaskRunListResult & { /** * The underlying HTTP response. */ @@ -5483,14 +6161,14 @@ export type ScopeMapsUpdateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: TaskRunListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginCreate operation. */ -export type ScopeMapsListResponse = ScopeMapListResult & { +export type TaskRunsBeginCreateResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5503,14 +6181,14 @@ export type ScopeMapsListResponse = ScopeMapListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMapListResult; + parsedBody: TaskRun; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the beginUpdate operation. */ -export type ScopeMapsBeginCreateResponse = ScopeMap & { +export type TaskRunsBeginUpdateResponse = TaskRun & { /** * The underlying HTTP response. */ @@ -5523,14 +6201,14 @@ export type ScopeMapsBeginCreateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: TaskRun; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listNext operation. */ -export type ScopeMapsBeginUpdateResponse = ScopeMap & { +export type TaskRunsListNextResponse = TaskRunListResult & { /** * The underlying HTTP response. */ @@ -5543,14 +6221,14 @@ export type ScopeMapsBeginUpdateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: TaskRunListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type ScopeMapsListNextResponse = ScopeMapListResult & { +export type TasksListResponse = TaskListResult & { /** * The underlying HTTP response. */ @@ -5563,14 +6241,14 @@ export type ScopeMapsListNextResponse = ScopeMapListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMapListResult; + parsedBody: TaskListResult; }; }; /** * Contains response data for the get operation. */ -export type TokensGetResponse = Token & { +export type TasksGetResponse = Task & { /** * The underlying HTTP response. */ @@ -5583,14 +6261,14 @@ export type TokensGetResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Task; }; }; /** * Contains response data for the create operation. */ -export type TokensCreateResponse = Token & { +export type TasksCreateResponse = Task & { /** * The underlying HTTP response. */ @@ -5603,14 +6281,14 @@ export type TokensCreateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Task; }; }; /** * Contains response data for the update operation. */ -export type TokensUpdateResponse = Token & { +export type TasksUpdateResponse = Task & { /** * The underlying HTTP response. */ @@ -5623,14 +6301,14 @@ export type TokensUpdateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Task; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getDetails operation. */ -export type TokensListResponse = TokenListResult & { +export type TasksGetDetailsResponse = Task & { /** * The underlying HTTP response. */ @@ -5643,14 +6321,14 @@ export type TokensListResponse = TokenListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TokenListResult; + parsedBody: Task; }; }; /** * Contains response data for the beginCreate operation. */ -export type TokensBeginCreateResponse = Token & { +export type TasksBeginCreateResponse = Task & { /** * The underlying HTTP response. */ @@ -5663,14 +6341,14 @@ export type TokensBeginCreateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Task; }; }; /** * Contains response data for the beginUpdate operation. */ -export type TokensBeginUpdateResponse = Token & { +export type TasksBeginUpdateResponse = Task & { /** * The underlying HTTP response. */ @@ -5683,14 +6361,14 @@ export type TokensBeginUpdateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Task; }; }; /** * Contains response data for the listNext operation. */ -export type TokensListNextResponse = TokenListResult & { +export type TasksListNextResponse = TaskListResult & { /** * The underlying HTTP response. */ @@ -5703,6 +6381,6 @@ export type TokensListNextResponse = TokenListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TokenListResult; + parsedBody: TaskListResult; }; }; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index 6669d495a51b..e0c5a070f0d2 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,20 +12,15 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const UserIdentityProperties: msRest.CompositeMapper = { - serializedName: "UserIdentityProperties", +export const ActivationProperties: msRest.CompositeMapper = { + serializedName: "ActivationProperties", type: { name: "Composite", - className: "UserIdentityProperties", + className: "ActivationProperties", modelProperties: { - principalId: { - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - serializedName: "clientId", + status: { + readOnly: true, + serializedName: "status", type: { name: "String" } @@ -34,104 +29,96 @@ export const UserIdentityProperties: msRest.CompositeMapper = { } }; -export const IdentityProperties: msRest.CompositeMapper = { - serializedName: "IdentityProperties", +export const SyncProperties: msRest.CompositeMapper = { + serializedName: "SyncProperties", type: { name: "Composite", - className: "IdentityProperties", + className: "SyncProperties", modelProperties: { - principalId: { - serializedName: "principalId", + tokenId: { + required: true, + serializedName: "tokenId", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", + schedule: { + serializedName: "schedule", type: { name: "String" } }, - type: { - serializedName: "type", + syncWindow: { + serializedName: "syncWindow", type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] + name: "TimeSpan" } }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + messageTtl: { + required: true, + serializedName: "messageTtl", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "UserIdentityProperties" - } - } + name: "TimeSpan" + } + }, + lastSyncTime: { + readOnly: true, + serializedName: "lastSyncTime", + type: { + name: "DateTime" + } + }, + gatewayEndpoint: { + readOnly: true, + serializedName: "gatewayEndpoint", + type: { + name: "String" } } } } }; -export const ExportPipelineTargetProperties: msRest.CompositeMapper = { - serializedName: "ExportPipelineTargetProperties", +export const ParentProperties: msRest.CompositeMapper = { + serializedName: "ParentProperties", type: { name: "Composite", - className: "ExportPipelineTargetProperties", + className: "ParentProperties", modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - uri: { - serializedName: "uri", + id: { + serializedName: "id", type: { name: "String" } }, - keyVaultUri: { + syncProperties: { required: true, - serializedName: "keyVaultUri", + serializedName: "syncProperties", type: { - name: "String" + name: "Composite", + className: "SyncProperties" } } } } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", +export const TlsCertificateProperties: msRest.CompositeMapper = { + serializedName: "TlsCertificateProperties", type: { name: "Composite", - className: "ProxyResource", + className: "TlsCertificateProperties", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + type: { readOnly: true, - serializedName: "name", + serializedName: "type", type: { name: "String" } }, - type: { + location: { readOnly: true, - serializedName: "type", + serializedName: "location", type: { name: "String" } @@ -140,65 +127,72 @@ export const ProxyResource: msRest.CompositeMapper = { } }; -export const ExportPipeline: msRest.CompositeMapper = { - serializedName: "ExportPipeline", +export const TlsProperties: msRest.CompositeMapper = { + serializedName: "TlsProperties", type: { name: "Composite", - className: "ExportPipeline", + className: "TlsProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - identity: { - serializedName: "identity", + status: { + readOnly: true, + serializedName: "status", type: { - name: "Composite", - className: "IdentityProperties" + name: "String" } }, - target: { - required: true, - serializedName: "properties.target", + certificate: { + readOnly: true, + serializedName: "certificate", type: { name: "Composite", - className: "ExportPipelineTargetProperties" + className: "TlsCertificateProperties" } - }, - options: { - serializedName: "properties.options", + } + } + } +}; + +export const LoginServerProperties: msRest.CompositeMapper = { + serializedName: "LoginServerProperties", + type: { + name: "Composite", + className: "LoginServerProperties", + modelProperties: { + host: { + readOnly: true, + serializedName: "host", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - provisioningState: { + tls: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "tls", type: { - name: "String" + name: "Composite", + className: "TlsProperties" } } } } }; -export const ImportSourceCredentials: msRest.CompositeMapper = { - serializedName: "ImportSourceCredentials", +export const LoggingProperties: msRest.CompositeMapper = { + serializedName: "LoggingProperties", type: { name: "Composite", - className: "ImportSourceCredentials", + className: "LoggingProperties", modelProperties: { - username: { - serializedName: "username", + logLevel: { + serializedName: "logLevel", + defaultValue: 'Information', type: { name: "String" } }, - password: { - required: true, - serializedName: "password", + auditLogStatus: { + serializedName: "auditLogStatus", + defaultValue: 'Disabled', type: { name: "String" } @@ -207,34 +201,43 @@ export const ImportSourceCredentials: msRest.CompositeMapper = { } }; -export const ImportSource: msRest.CompositeMapper = { - serializedName: "ImportSource", +export const StatusDetailProperties: msRest.CompositeMapper = { + serializedName: "StatusDetailProperties", type: { name: "Composite", - className: "ImportSource", + className: "StatusDetailProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - registryUri: { - serializedName: "registryUri", + code: { + readOnly: true, + serializedName: "code", type: { name: "String" } }, - credentials: { - serializedName: "credentials", + description: { + readOnly: true, + serializedName: "description", type: { - name: "Composite", - className: "ImportSourceCredentials" + name: "String" } }, - sourceImage: { - required: true, - serializedName: "sourceImage", + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + correlationId: { + readOnly: true, + serializedName: "correlationId", type: { name: "String" } @@ -243,149 +246,105 @@ export const ImportSource: msRest.CompositeMapper = { } }; -export const ImportImageParameters: msRest.CompositeMapper = { - serializedName: "ImportImageParameters", +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", type: { name: "Composite", - className: "ImportImageParameters", + className: "ProxyResource", modelProperties: { - source: { - required: true, - serializedName: "source", + id: { + readOnly: true, + serializedName: "id", type: { - name: "Composite", - className: "ImportSource" + name: "String" } }, - targetTags: { - serializedName: "targetTags", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - untaggedTargetRepositories: { - serializedName: "untaggedTargetRepositories", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - mode: { - serializedName: "mode", - defaultValue: 'NoForce', + systemData: { + readOnly: true, + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const ImportPipelineSourceProperties: msRest.CompositeMapper = { - serializedName: "ImportPipelineSourceProperties", +export const ConnectedRegistry: msRest.CompositeMapper = { + serializedName: "ConnectedRegistry", type: { name: "Composite", - className: "ImportPipelineSourceProperties", + className: "ConnectedRegistry", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'AzureStorageBlobContainer', + ...ProxyResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - uri: { - serializedName: "uri", + mode: { + required: true, + serializedName: "properties.mode", type: { name: "String" } }, - keyVaultUri: { - required: true, - serializedName: "keyVaultUri", + version: { + readOnly: true, + serializedName: "properties.version", type: { name: "String" } - } - } - } -}; - -export const PipelineSourceTriggerProperties: msRest.CompositeMapper = { - serializedName: "PipelineSourceTriggerProperties", - type: { - name: "Composite", - className: "PipelineSourceTriggerProperties", - modelProperties: { - status: { - required: true, - serializedName: "status", - defaultValue: 'Enabled', + }, + connectionState: { + readOnly: true, + serializedName: "properties.connectionState", type: { name: "String" } - } - } - } -}; - -export const PipelineTriggerProperties: msRest.CompositeMapper = { - serializedName: "PipelineTriggerProperties", - type: { - name: "Composite", - className: "PipelineTriggerProperties", - modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", - type: { - name: "Composite", - className: "PipelineSourceTriggerProperties" - } - } - } - } -}; - -export const ImportPipeline: msRest.CompositeMapper = { - serializedName: "ImportPipeline", - type: { - name: "Composite", - className: "ImportPipeline", - modelProperties: { - ...ProxyResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + lastActivityTime: { + readOnly: true, + serializedName: "properties.lastActivityTime", type: { - name: "Composite", - className: "IdentityProperties" + name: "DateTime" } }, - source: { - required: true, - serializedName: "properties.source", + activation: { + readOnly: true, + serializedName: "properties.activation", type: { name: "Composite", - className: "ImportPipelineSourceProperties" + className: "ActivationProperties" } }, - trigger: { - serializedName: "properties.trigger", + parent: { + required: true, + serializedName: "properties.parent", type: { name: "Composite", - className: "PipelineTriggerProperties" + className: "ParentProperties" } }, - options: { - serializedName: "properties.options", + clientTokenIds: { + serializedName: "properties.clientTokenIds", type: { name: "Sequence", element: { @@ -395,229 +354,235 @@ export const ImportPipeline: msRest.CompositeMapper = { } } }, - provisioningState: { + loginServer: { + serializedName: "properties.loginServer", + type: { + name: "Composite", + className: "LoginServerProperties" + } + }, + logging: { + serializedName: "properties.logging", + type: { + name: "Composite", + className: "LoggingProperties" + } + }, + statusDetails: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "properties.statusDetails", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StatusDetailProperties" + } + } } } } } }; -export const RegistryNameCheckRequest: msRest.CompositeMapper = { - serializedName: "RegistryNameCheckRequest", +export const SystemData: msRest.CompositeMapper = { + serializedName: "SystemData", type: { name: "Composite", - className: "RegistryNameCheckRequest", + className: "SystemData", modelProperties: { - name: { - required: true, - serializedName: "name", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'Microsoft.ContainerRegistry/registries', + createdByType: { + serializedName: "createdByType", type: { name: "String" } - } - } - } -}; - -export const RegistryNameStatus: msRest.CompositeMapper = { - serializedName: "RegistryNameStatus", - type: { - name: "Composite", - className: "RegistryNameStatus", - modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", + }, + createdAt: { + serializedName: "createdAt", type: { - name: "Boolean" + name: "DateTime" } }, - reason: { - serializedName: "reason", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - message: { - serializedName: "message", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { name: "String" } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } } } } }; -export const OperationDisplayDefinition: msRest.CompositeMapper = { - serializedName: "OperationDisplayDefinition", +export const SyncUpdateProperties: msRest.CompositeMapper = { + serializedName: "SyncUpdateProperties", type: { name: "Composite", - className: "OperationDisplayDefinition", + className: "SyncUpdateProperties", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", + schedule: { + serializedName: "schedule", type: { name: "String" } }, - operation: { - serializedName: "operation", + syncWindow: { + serializedName: "syncWindow", type: { - name: "String" + name: "TimeSpan" } }, - description: { - serializedName: "description", + messageTtl: { + serializedName: "messageTtl", type: { - name: "String" + name: "TimeSpan" } } } } }; -export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = { - serializedName: "OperationMetricSpecificationDefinition", +export const ConnectedRegistryUpdateParameters: msRest.CompositeMapper = { + serializedName: "ConnectedRegistryUpdateParameters", type: { name: "Composite", - className: "OperationMetricSpecificationDefinition", + className: "ConnectedRegistryUpdateParameters", modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - displayDescription: { - serializedName: "displayDescription", - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", + syncProperties: { + serializedName: "properties.syncProperties", type: { - name: "String" + name: "Composite", + className: "SyncUpdateProperties" } }, - aggregationType: { - serializedName: "aggregationType", + logging: { + serializedName: "properties.logging", type: { - name: "String" + name: "Composite", + className: "LoggingProperties" } }, - internalMetricName: { - serializedName: "internalMetricName", + clientTokenIds: { + serializedName: "properties.clientTokenIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const OperationServiceSpecificationDefinition: msRest.CompositeMapper = { - serializedName: "OperationServiceSpecificationDefinition", +export const UserIdentityProperties: msRest.CompositeMapper = { + serializedName: "UserIdentityProperties", type: { name: "Composite", - className: "OperationServiceSpecificationDefinition", + className: "UserIdentityProperties", modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", + principalId: { + serializedName: "principalId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationMetricSpecificationDefinition" - } - } + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" } } } } }; -export const OperationDefinition: msRest.CompositeMapper = { - serializedName: "OperationDefinition", +export const IdentityProperties: msRest.CompositeMapper = { + serializedName: "IdentityProperties", type: { name: "Composite", - className: "OperationDefinition", + className: "IdentityProperties", modelProperties: { - origin: { - serializedName: "origin", + principalId: { + serializedName: "principalId", type: { name: "String" } }, - name: { - serializedName: "name", + tenantId: { + serializedName: "tenantId", type: { name: "String" } }, - display: { - serializedName: "display", + type: { + serializedName: "type", type: { - name: "Composite", - className: "OperationDisplayDefinition" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned, UserAssigned", + "None" + ] } }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { - name: "Composite", - className: "OperationServiceSpecificationDefinition" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserIdentityProperties" + } + } } } } } }; -export const PipelineRunSourceProperties: msRest.CompositeMapper = { - serializedName: "PipelineRunSourceProperties", +export const ExportPipelineTargetProperties: msRest.CompositeMapper = { + serializedName: "ExportPipelineTargetProperties", type: { name: "Composite", - className: "PipelineRunSourceProperties", + className: "ExportPipelineTargetProperties", modelProperties: { type: { serializedName: "type", - defaultValue: 'AzureStorageBlob', type: { name: "String" } }, - name: { - serializedName: "name", + uri: { + serializedName: "uri", + type: { + name: "String" + } + }, + keyVaultUri: { + required: true, + serializedName: "keyVaultUri", type: { name: "String" } @@ -626,43 +591,36 @@ export const PipelineRunSourceProperties: msRest.CompositeMapper = { } }; -export const PipelineRunTargetProperties: msRest.CompositeMapper = { - serializedName: "PipelineRunTargetProperties", +export const ExportPipeline: msRest.CompositeMapper = { + serializedName: "ExportPipeline", type: { name: "Composite", - className: "PipelineRunTargetProperties", + className: "ExportPipeline", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'AzureStorageBlob', + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - name: { - serializedName: "name", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } - } - } - } -}; - -export const PipelineRunRequest: msRest.CompositeMapper = { - serializedName: "PipelineRunRequest", - type: { - name: "Composite", - className: "PipelineRunRequest", - modelProperties: { - pipelineResourceId: { - serializedName: "pipelineResourceId", + }, + target: { + required: true, + serializedName: "properties.target", type: { - name: "String" + name: "Composite", + className: "ExportPipelineTargetProperties" } }, - artifacts: { - serializedName: "artifacts", + options: { + serializedName: "properties.options", type: { name: "Sequence", element: { @@ -672,22 +630,9 @@ export const PipelineRunRequest: msRest.CompositeMapper = { } } }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "PipelineRunSourceProperties" - } - }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "PipelineRunTargetProperties" - } - }, - catalogDigest: { - serializedName: "catalogDigest", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } @@ -696,69 +641,81 @@ export const PipelineRunRequest: msRest.CompositeMapper = { } }; -export const ProgressProperties: msRest.CompositeMapper = { - serializedName: "ProgressProperties", +export const ImportSourceCredentials: msRest.CompositeMapper = { + serializedName: "ImportSourceCredentials", type: { name: "Composite", - className: "ProgressProperties", + className: "ImportSourceCredentials", modelProperties: { - percentage: { - serializedName: "percentage", + username: { + serializedName: "username", type: { name: "String" } - } - } - } -}; - -export const PipelineSourceTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "PipelineSourceTriggerDescriptor", - type: { - name: "Composite", - className: "PipelineSourceTriggerDescriptor", - modelProperties: { - timestamp: { - serializedName: "timestamp", + }, + password: { + required: true, + serializedName: "password", type: { - name: "DateTime" + name: "String" } } } } }; -export const PipelineTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "PipelineTriggerDescriptor", +export const ImportSource: msRest.CompositeMapper = { + serializedName: "ImportSource", type: { name: "Composite", - className: "PipelineTriggerDescriptor", + className: "ImportSource", modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", + resourceId: { + serializedName: "resourceId", + type: { + name: "String" + } + }, + registryUri: { + serializedName: "registryUri", + type: { + name: "String" + } + }, + credentials: { + serializedName: "credentials", type: { name: "Composite", - className: "PipelineSourceTriggerDescriptor" + className: "ImportSourceCredentials" + } + }, + sourceImage: { + required: true, + serializedName: "sourceImage", + type: { + name: "String" } } } } }; -export const PipelineRunResponse: msRest.CompositeMapper = { - serializedName: "PipelineRunResponse", +export const ImportImageParameters: msRest.CompositeMapper = { + serializedName: "ImportImageParameters", type: { name: "Composite", - className: "PipelineRunResponse", + className: "ImportImageParameters", modelProperties: { - status: { - serializedName: "status", + source: { + required: true, + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "ImportSource" } }, - importedArtifacts: { - serializedName: "importedArtifacts", + targetTags: { + serializedName: "targetTags", type: { name: "Sequence", element: { @@ -768,54 +725,20 @@ export const PipelineRunResponse: msRest.CompositeMapper = { } } }, - progress: { - serializedName: "progress", - type: { - name: "Composite", - className: "ProgressProperties" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - finishTime: { - serializedName: "finishTime", - type: { - name: "DateTime" - } - }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ImportPipelineSourceProperties" - } - }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "ExportPipelineTargetProperties" - } - }, - catalogDigest: { - serializedName: "catalogDigest", - type: { - name: "String" - } - }, - trigger: { - serializedName: "trigger", + untaggedTargetRepositories: { + serializedName: "untaggedTargetRepositories", type: { - name: "Composite", - className: "PipelineTriggerDescriptor" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - pipelineRunErrorMessage: { - serializedName: "pipelineRunErrorMessage", + mode: { + serializedName: "mode", + defaultValue: 'NoForce', type: { name: "String" } @@ -824,37 +747,28 @@ export const PipelineRunResponse: msRest.CompositeMapper = { } }; -export const PipelineRun: msRest.CompositeMapper = { - serializedName: "PipelineRun", +export const ImportPipelineSourceProperties: msRest.CompositeMapper = { + serializedName: "ImportPipelineSourceProperties", type: { name: "Composite", - className: "PipelineRun", + className: "ImportPipelineSourceProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + type: { + serializedName: "type", + defaultValue: 'AzureStorageBlobContainer', type: { name: "String" } }, - request: { - serializedName: "properties.request", - type: { - name: "Composite", - className: "PipelineRunRequest" - } - }, - response: { - readOnly: true, - serializedName: "properties.response", + uri: { + serializedName: "uri", type: { - name: "Composite", - className: "PipelineRunResponse" + name: "String" } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + keyVaultUri: { + required: true, + serializedName: "keyVaultUri", type: { name: "String" } @@ -863,14 +777,16 @@ export const PipelineRun: msRest.CompositeMapper = { } }; -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", +export const PipelineSourceTriggerProperties: msRest.CompositeMapper = { + serializedName: "PipelineSourceTriggerProperties", type: { name: "Composite", - className: "PrivateEndpoint", + className: "PipelineSourceTriggerProperties", modelProperties: { - id: { - serializedName: "id", + status: { + required: true, + serializedName: "status", + defaultValue: 'Enabled', type: { name: "String" } @@ -879,53 +795,67 @@ export const PrivateEndpoint: msRest.CompositeMapper = { } }; -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const PipelineTriggerProperties: msRest.CompositeMapper = { + serializedName: "PipelineTriggerProperties", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "PipelineTriggerProperties", modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", + sourceTrigger: { + serializedName: "sourceTrigger", type: { - name: "String" + name: "Composite", + className: "PipelineSourceTriggerProperties" } } } } }; -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", +export const ImportPipeline: msRest.CompositeMapper = { + serializedName: "ImportPipeline", type: { name: "Composite", - className: "PrivateEndpointConnection", + className: "ImportPipeline", modelProperties: { ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + location: { + serializedName: "location", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", type: { name: "Composite", - className: "PrivateEndpoint" + className: "IdentityProperties" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + source: { + required: true, + serializedName: "properties.source", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" + className: "ImportPipelineSourceProperties" + } + }, + trigger: { + serializedName: "properties.trigger", + type: { + name: "Composite", + className: "PipelineTriggerProperties" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -939,22 +869,29 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const RegistryNameCheckRequest: msRest.CompositeMapper = { + serializedName: "RegistryNameCheckRequest", type: { name: "Composite", - className: "Sku", + className: "RegistryNameCheckRequest", modelProperties: { name: { required: true, serializedName: "name", + constraints: { + MaxLength: 50, + MinLength: 5, + Pattern: /^[a-zA-Z0-9]*$/ + }, type: { name: "String" } }, - tier: { - readOnly: true, - serializedName: "tier", + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.ContainerRegistry/registries', type: { name: "String" } @@ -963,46 +900,60 @@ export const Sku: msRest.CompositeMapper = { } }; -export const Status: msRest.CompositeMapper = { - serializedName: "Status", +export const RegistryNameStatus: msRest.CompositeMapper = { + serializedName: "RegistryNameStatus", type: { name: "Composite", - className: "Status", + className: "RegistryNameStatus", modelProperties: { - displayStatus: { - readOnly: true, - serializedName: "displayStatus", + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "String" + name: "Boolean" } }, - message: { - readOnly: true, - serializedName: "message", + reason: { + serializedName: "reason", type: { name: "String" } }, - timestamp: { - readOnly: true, - serializedName: "timestamp", + message: { + serializedName: "message", type: { - name: "DateTime" + name: "String" } } } } }; -export const StorageAccountProperties: msRest.CompositeMapper = { - serializedName: "StorageAccountProperties", +export const OperationDisplayDefinition: msRest.CompositeMapper = { + serializedName: "OperationDisplayDefinition", type: { name: "Composite", - className: "StorageAccountProperties", + className: "OperationDisplayDefinition", modelProperties: { - id: { - required: true, - serializedName: "id", + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -1011,22 +962,44 @@ export const StorageAccountProperties: msRest.CompositeMapper = { } }; -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", +export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationMetricSpecificationDefinition", type: { name: "Composite", - className: "VirtualNetworkRule", + className: "OperationMetricSpecificationDefinition", modelProperties: { - action: { - serializedName: "action", - defaultValue: 'Allow', + name: { + serializedName: "name", type: { name: "String" } }, - virtualNetworkResourceId: { - required: true, - serializedName: "id", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + internalMetricName: { + serializedName: "internalMetricName", type: { name: "String" } @@ -1035,22 +1008,26 @@ export const VirtualNetworkRule: msRest.CompositeMapper = { } }; -export const IPRule: msRest.CompositeMapper = { - serializedName: "IPRule", +export const OperationLogSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationLogSpecificationDefinition", type: { name: "Composite", - className: "IPRule", + className: "OperationLogSpecificationDefinition", modelProperties: { - action: { - serializedName: "action", - defaultValue: 'Allow', + name: { + serializedName: "name", type: { name: "String" } }, - iPAddressOrRange: { - required: true, - serializedName: "value", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", type: { name: "String" } @@ -1059,40 +1036,32 @@ export const IPRule: msRest.CompositeMapper = { } }; -export const NetworkRuleSet: msRest.CompositeMapper = { - serializedName: "NetworkRuleSet", +export const OperationServiceSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationServiceSpecificationDefinition", type: { name: "Composite", - className: "NetworkRuleSet", + className: "OperationServiceSpecificationDefinition", modelProperties: { - defaultAction: { - required: true, - serializedName: "defaultAction", - defaultValue: 'Allow', - type: { - name: "String" - } - }, - virtualNetworkRules: { - serializedName: "virtualNetworkRules", + metricSpecifications: { + serializedName: "metricSpecifications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualNetworkRule" + className: "OperationMetricSpecificationDefinition" } } } }, - ipRules: { - serializedName: "ipRules", + logSpecifications: { + serializedName: "logSpecifications", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IPRule" + className: "OperationLogSpecificationDefinition" } } } @@ -1101,39 +1070,57 @@ export const NetworkRuleSet: msRest.CompositeMapper = { } }; -export const QuarantinePolicy: msRest.CompositeMapper = { - serializedName: "QuarantinePolicy", +export const OperationDefinition: msRest.CompositeMapper = { + serializedName: "OperationDefinition", type: { name: "Composite", - className: "QuarantinePolicy", + className: "OperationDefinition", modelProperties: { - status: { - serializedName: "status", - defaultValue: 'disabled', + origin: { + serializedName: "origin", type: { name: "String" } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplayDefinition" + } + }, + serviceSpecification: { + serializedName: "properties.serviceSpecification", + type: { + name: "Composite", + className: "OperationServiceSpecificationDefinition" + } } } } }; -export const TrustPolicy: msRest.CompositeMapper = { - serializedName: "TrustPolicy", +export const PipelineRunSourceProperties: msRest.CompositeMapper = { + serializedName: "PipelineRunSourceProperties", type: { name: "Composite", - className: "TrustPolicy", + className: "PipelineRunSourceProperties", modelProperties: { type: { serializedName: "type", - defaultValue: 'Notary', + defaultValue: 'AzureStorageBlob', type: { name: "String" } }, - status: { - serializedName: "status", - defaultValue: 'disabled', + name: { + serializedName: "name", type: { name: "String" } @@ -1142,89 +1129,84 @@ export const TrustPolicy: msRest.CompositeMapper = { } }; -export const RetentionPolicy: msRest.CompositeMapper = { - serializedName: "RetentionPolicy", +export const PipelineRunTargetProperties: msRest.CompositeMapper = { + serializedName: "PipelineRunTargetProperties", type: { name: "Composite", - className: "RetentionPolicy", + className: "PipelineRunTargetProperties", modelProperties: { - days: { - serializedName: "days", - defaultValue: 7, + type: { + serializedName: "type", + defaultValue: 'AzureStorageBlob', type: { - name: "Number" + name: "String" } }, - lastUpdatedTime: { - readOnly: true, - serializedName: "lastUpdatedTime", + name: { + serializedName: "name", type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", - defaultValue: 'disabled', - type: { - name: "String" + name: "String" } } } } }; -export const Policies: msRest.CompositeMapper = { - serializedName: "Policies", +export const PipelineRunRequest: msRest.CompositeMapper = { + serializedName: "PipelineRunRequest", type: { name: "Composite", - className: "Policies", + className: "PipelineRunRequest", modelProperties: { - quarantinePolicy: { - serializedName: "quarantinePolicy", + pipelineResourceId: { + serializedName: "pipelineResourceId", type: { - name: "Composite", - className: "QuarantinePolicy" + name: "String" } }, - trustPolicy: { - serializedName: "trustPolicy", + artifacts: { + serializedName: "artifacts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + source: { + serializedName: "source", type: { name: "Composite", - className: "TrustPolicy" + className: "PipelineRunSourceProperties" } }, - retentionPolicy: { - serializedName: "retentionPolicy", + target: { + serializedName: "target", type: { name: "Composite", - className: "RetentionPolicy" + className: "PipelineRunTargetProperties" + } + }, + catalogDigest: { + serializedName: "catalogDigest", + type: { + name: "String" } } } } }; -export const KeyVaultProperties: msRest.CompositeMapper = { - serializedName: "KeyVaultProperties", +export const ProgressProperties: msRest.CompositeMapper = { + serializedName: "ProgressProperties", type: { name: "Composite", - className: "KeyVaultProperties", + className: "ProgressProperties", modelProperties: { - keyIdentifier: { - serializedName: "keyIdentifier", - type: { - name: "String" - } - }, - versionedKeyIdentifier: { - readOnly: true, - serializedName: "versionedKeyIdentifier", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", + percentage: { + serializedName: "percentage", type: { name: "String" } @@ -1233,198 +1215,165 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }; -export const EncryptionProperty: msRest.CompositeMapper = { - serializedName: "EncryptionProperty", +export const PipelineSourceTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "PipelineSourceTriggerDescriptor", type: { name: "Composite", - className: "EncryptionProperty", + className: "PipelineSourceTriggerDescriptor", modelProperties: { - status: { - serializedName: "status", + timestamp: { + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } - }, - keyVaultProperties: { - serializedName: "keyVaultProperties", + } + } + } +}; + +export const PipelineTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "PipelineTriggerDescriptor", + type: { + name: "Composite", + className: "PipelineTriggerDescriptor", + modelProperties: { + sourceTrigger: { + serializedName: "sourceTrigger", type: { name: "Composite", - className: "KeyVaultProperties" + className: "PipelineSourceTriggerDescriptor" } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const PipelineRunResponse: msRest.CompositeMapper = { + serializedName: "PipelineRunResponse", type: { name: "Composite", - className: "Resource", + className: "PipelineRunResponse", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - required: true, - serializedName: "location", + status: { + serializedName: "status", type: { name: "String" } }, - tags: { - serializedName: "tags", + importedArtifacts: { + serializedName: "importedArtifacts", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } - } - } - } -}; - -export const Registry: msRest.CompositeMapper = { - serializedName: "Registry", - type: { - name: "Composite", - className: "Registry", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } }, - identity: { - serializedName: "identity", + progress: { + serializedName: "progress", type: { name: "Composite", - className: "IdentityProperties" + className: "ProgressProperties" } }, - loginServer: { - readOnly: true, - serializedName: "properties.loginServer", + startTime: { + serializedName: "startTime", type: { - name: "String" + name: "DateTime" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + finishTime: { + serializedName: "finishTime", type: { name: "DateTime" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + source: { + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "ImportPipelineSourceProperties" } }, - status: { - readOnly: true, - serializedName: "properties.status", + target: { + serializedName: "target", type: { name: "Composite", - className: "Status" + className: "ExportPipelineTargetProperties" } }, - adminUserEnabled: { - serializedName: "properties.adminUserEnabled", - defaultValue: false, + catalogDigest: { + serializedName: "catalogDigest", type: { - name: "Boolean" + name: "String" } }, - storageAccount: { - serializedName: "properties.storageAccount", + trigger: { + serializedName: "trigger", type: { name: "Composite", - className: "StorageAccountProperties" + className: "PipelineTriggerDescriptor" } }, - networkRuleSet: { - serializedName: "properties.networkRuleSet", + pipelineRunErrorMessage: { + serializedName: "pipelineRunErrorMessage", type: { - name: "Composite", - className: "NetworkRuleSet" + name: "String" } - }, - policies: { - serializedName: "properties.policies", + } + } + } +}; + +export const PipelineRun: msRest.CompositeMapper = { + serializedName: "PipelineRun", + type: { + name: "Composite", + className: "PipelineRun", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Composite", - className: "Policies" + name: "String" } }, - encryption: { - serializedName: "properties.encryption", + request: { + serializedName: "properties.request", type: { name: "Composite", - className: "EncryptionProperty" + className: "PipelineRunRequest" } }, - dataEndpointEnabled: { - serializedName: "properties.dataEndpointEnabled", + response: { + readOnly: true, + serializedName: "properties.response", type: { - name: "Boolean" + name: "Composite", + className: "PipelineRunResponse" } }, - dataEndpointHostNames: { - readOnly: true, - serializedName: "properties.dataEndpointHostNames", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - privateEndpointConnections: { - readOnly: true, - serializedName: "properties.privateEndpointConnections", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - defaultValue: 'Enabled', + } + } + } +}; + +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } @@ -1433,72 +1382,58 @@ export const Registry: msRest.CompositeMapper = { } }; -export const RegistryUpdateParameters: msRest.CompositeMapper = { - serializedName: "RegistryUpdateParameters", +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", type: { name: "Composite", - className: "RegistryUpdateParameters", + className: "PrivateLinkServiceConnectionState", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - identity: { - serializedName: "identity", + status: { + serializedName: "status", type: { - name: "Composite", - className: "IdentityProperties" + name: "String" } }, - adminUserEnabled: { - serializedName: "properties.adminUserEnabled", + description: { + serializedName: "description", type: { - name: "Boolean" + name: "String" } }, - networkRuleSet: { - serializedName: "properties.networkRuleSet", + actionsRequired: { + serializedName: "actionsRequired", type: { - name: "Composite", - className: "NetworkRuleSet" + name: "String" } - }, - policies: { - serializedName: "properties.policies", + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "Policies" + className: "PrivateEndpoint" } }, - encryption: { - serializedName: "properties.encryption", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "EncryptionProperty" - } - }, - dataEndpointEnabled: { - serializedName: "properties.dataEndpointEnabled", - type: { - name: "Boolean" + className: "PrivateLinkServiceConnectionState" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } @@ -1507,24 +1442,22 @@ export const RegistryUpdateParameters: msRest.CompositeMapper = { } }; -export const RegistryPassword: msRest.CompositeMapper = { - serializedName: "RegistryPassword", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "RegistryPassword", + className: "Sku", modelProperties: { name: { + required: true, serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "password", - "password2" - ] + name: "String" } }, - value: { - serializedName: "value", + tier: { + readOnly: true, + serializedName: "tier", type: { name: "String" } @@ -1533,81 +1466,77 @@ export const RegistryPassword: msRest.CompositeMapper = { } }; -export const RegistryListCredentialsResult: msRest.CompositeMapper = { - serializedName: "RegistryListCredentialsResult", +export const Status: msRest.CompositeMapper = { + serializedName: "Status", type: { name: "Composite", - className: "RegistryListCredentialsResult", + className: "Status", modelProperties: { - username: { - serializedName: "username", + displayStatus: { + readOnly: true, + serializedName: "displayStatus", type: { name: "String" } }, - passwords: { - serializedName: "passwords", + message: { + readOnly: true, + serializedName: "message", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegistryPassword" - } - } + name: "String" + } + }, + timestamp: { + readOnly: true, + serializedName: "timestamp", + type: { + name: "DateTime" } } } } }; -export const RegenerateCredentialParameters: msRest.CompositeMapper = { - serializedName: "RegenerateCredentialParameters", +export const VirtualNetworkRule: msRest.CompositeMapper = { + serializedName: "VirtualNetworkRule", type: { name: "Composite", - className: "RegenerateCredentialParameters", + className: "VirtualNetworkRule", modelProperties: { - name: { + action: { + serializedName: "action", + defaultValue: 'Allow', + type: { + name: "String" + } + }, + virtualNetworkResourceId: { required: true, - serializedName: "name", + serializedName: "id", type: { - name: "Enum", - allowedValues: [ - "password", - "password2" - ] + name: "String" } } } } }; -export const RegistryUsage: msRest.CompositeMapper = { - serializedName: "RegistryUsage", +export const IPRule: msRest.CompositeMapper = { + serializedName: "IPRule", type: { name: "Composite", - className: "RegistryUsage", + className: "IPRule", modelProperties: { - name: { - serializedName: "name", + action: { + serializedName: "action", + defaultValue: 'Allow', type: { name: "String" } }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", + iPAddressOrRange: { + required: true, + serializedName: "value", type: { name: "String" } @@ -1616,20 +1545,40 @@ export const RegistryUsage: msRest.CompositeMapper = { } }; -export const RegistryUsageListResult: msRest.CompositeMapper = { - serializedName: "RegistryUsageListResult", +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", type: { name: "Composite", - className: "RegistryUsageListResult", + className: "NetworkRuleSet", modelProperties: { - value: { - serializedName: "value", + defaultAction: { + required: true, + serializedName: "defaultAction", + defaultValue: 'Allow', + type: { + name: "String" + } + }, + virtualNetworkRules: { + serializedName: "virtualNetworkRules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegistryUsage" + className: "VirtualNetworkRule" + } + } + } + }, + ipRules: { + serializedName: "ipRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IPRule" } } } @@ -1638,283 +1587,320 @@ export const RegistryUsageListResult: msRest.CompositeMapper = { } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const QuarantinePolicy: msRest.CompositeMapper = { + serializedName: "QuarantinePolicy", type: { name: "Composite", - className: "PrivateLinkResource", + className: "QuarantinePolicy", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + status: { + serializedName: "status", + defaultValue: 'disabled', type: { name: "String" } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", + } + } + } +}; + +export const TrustPolicy: msRest.CompositeMapper = { + serializedName: "TrustPolicy", + type: { + name: "Composite", + className: "TrustPolicy", + modelProperties: { + type: { + serializedName: "type", + defaultValue: 'Notary', type: { name: "String" } }, - groupId: { - serializedName: "properties.groupId", + status: { + serializedName: "status", + defaultValue: 'disabled', type: { name: "String" } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } }; -export const Replication: msRest.CompositeMapper = { - serializedName: "Replication", +export const RetentionPolicy: msRest.CompositeMapper = { + serializedName: "RetentionPolicy", type: { name: "Composite", - className: "Replication", + className: "RetentionPolicy", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + days: { + serializedName: "days", + defaultValue: 7, type: { - name: "String" + name: "Number" } }, - status: { + lastUpdatedTime: { readOnly: true, - serializedName: "properties.status", + serializedName: "lastUpdatedTime", type: { - name: "Composite", - className: "Status" + name: "DateTime" } }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", - defaultValue: true, + status: { + serializedName: "status", + defaultValue: 'disabled', type: { - name: "Boolean" + name: "String" } } } } }; -export const ReplicationUpdateParameters: msRest.CompositeMapper = { - serializedName: "ReplicationUpdateParameters", +export const Policies: msRest.CompositeMapper = { + serializedName: "Policies", type: { name: "Composite", - className: "ReplicationUpdateParameters", + className: "Policies", modelProperties: { - tags: { - serializedName: "tags", + quarantinePolicy: { + serializedName: "quarantinePolicy", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "QuarantinePolicy" } }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", + trustPolicy: { + serializedName: "trustPolicy", type: { - name: "Boolean" + name: "Composite", + className: "TrustPolicy" + } + }, + retentionPolicy: { + serializedName: "retentionPolicy", + type: { + name: "Composite", + className: "RetentionPolicy" } } } } }; -export const Webhook: msRest.CompositeMapper = { - serializedName: "Webhook", +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", type: { name: "Composite", - className: "Webhook", + className: "KeyVaultProperties", modelProperties: { - ...Resource.type.modelProperties, - status: { - serializedName: "properties.status", + keyIdentifier: { + serializedName: "keyIdentifier", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", + versionedKeyIdentifier: { + readOnly: true, + serializedName: "versionedKeyIdentifier", type: { name: "String" } }, - actions: { - required: true, - serializedName: "properties.actions", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - provisioningState: { + keyRotationEnabled: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "keyRotationEnabled", type: { - name: "String" + name: "Boolean" + } + }, + lastKeyRotationTimestamp: { + readOnly: true, + serializedName: "lastKeyRotationTimestamp", + type: { + name: "DateTime" } } } } }; -export const WebhookCreateParameters: msRest.CompositeMapper = { - serializedName: "WebhookCreateParameters", +export const EncryptionProperty: msRest.CompositeMapper = { + serializedName: "EncryptionProperty", type: { name: "Composite", - className: "WebhookCreateParameters", + className: "EncryptionProperty", modelProperties: { - tags: { - serializedName: "tags", + status: { + serializedName: "status", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - location: { - required: true, - serializedName: "location", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "String" + name: "Composite", + className: "KeyVaultProperties" } - }, - serviceUri: { - required: true, - serializedName: "properties.serviceUri", + } + } + } +}; + +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - customHeaders: { - serializedName: "properties.customHeaders", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - status: { - serializedName: "properties.status", + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - actions: { - required: true, - serializedName: "properties.actions", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } }; -export const WebhookUpdateParameters: msRest.CompositeMapper = { - serializedName: "WebhookUpdateParameters", +export const Registry: msRest.CompositeMapper = { + serializedName: "Registry", type: { name: "Composite", - className: "WebhookUpdateParameters", + className: "Registry", modelProperties: { - tags: { - serializedName: "tags", + ...Resource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "Sku" } }, - serviceUri: { - serializedName: "properties.serviceUri", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - customHeaders: { - serializedName: "properties.customHeaders", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + loginServer: { + readOnly: true, + serializedName: "properties.loginServer", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" } }, status: { + readOnly: true, serializedName: "properties.status", type: { - name: "String" + name: "Composite", + className: "Status" } }, - scope: { - serializedName: "properties.scope", + adminUserEnabled: { + serializedName: "properties.adminUserEnabled", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - actions: { - serializedName: "properties.actions", + networkRuleSet: { + serializedName: "properties.networkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet" + } + }, + policies: { + serializedName: "properties.policies", + type: { + name: "Composite", + className: "Policies" + } + }, + encryption: { + serializedName: "properties.encryption", + type: { + name: "Composite", + className: "EncryptionProperty" + } + }, + dataEndpointEnabled: { + serializedName: "properties.dataEndpointEnabled", + type: { + name: "Boolean" + } + }, + dataEndpointHostNames: { + readOnly: true, + serializedName: "properties.dataEndpointHostNames", type: { name: "Sequence", element: { @@ -1923,42 +1909,66 @@ export const WebhookUpdateParameters: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const EventInfo: msRest.CompositeMapper = { - serializedName: "EventInfo", - type: { - name: "Composite", - className: "EventInfo", - modelProperties: { - id: { - serializedName: "id", + }, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + networkRuleBypassOptions: { + serializedName: "properties.networkRuleBypassOptions", + defaultValue: 'AzureServices', + type: { + name: "String" + } + }, + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + defaultValue: 'Disabled', type: { name: "String" } + }, + anonymousPullEnabled: { + serializedName: "properties.anonymousPullEnabled", + type: { + name: "Boolean" + } } } } }; -export const CallbackConfig: msRest.CompositeMapper = { - serializedName: "CallbackConfig", +export const RegistryUpdateParameters: msRest.CompositeMapper = { + serializedName: "RegistryUpdateParameters", type: { name: "Composite", - className: "CallbackConfig", + className: "RegistryUpdateParameters", modelProperties: { - serviceUri: { - required: true, - serializedName: "serviceUri", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - customHeaders: { - serializedName: "customHeaders", + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { @@ -1967,107 +1977,88 @@ export const CallbackConfig: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const Target: msRest.CompositeMapper = { - serializedName: "Target", - type: { - name: "Composite", - className: "Target", - modelProperties: { - mediaType: { - serializedName: "mediaType", + }, + sku: { + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - size: { - serializedName: "size", + adminUserEnabled: { + serializedName: "properties.adminUserEnabled", type: { - name: "Number" + name: "Boolean" } }, - digest: { - serializedName: "digest", + networkRuleSet: { + serializedName: "properties.networkRuleSet", type: { - name: "String" + name: "Composite", + className: "NetworkRuleSet" } }, - length: { - serializedName: "length", + policies: { + serializedName: "properties.policies", type: { - name: "Number" + name: "Composite", + className: "Policies" } }, - repository: { - serializedName: "repository", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "EncryptionProperty" } }, - url: { - serializedName: "url", + dataEndpointEnabled: { + serializedName: "properties.dataEndpointEnabled", type: { - name: "String" + name: "Boolean" } }, - tag: { - serializedName: "tag", + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - name: { - serializedName: "name", + networkRuleBypassOptions: { + serializedName: "properties.networkRuleBypassOptions", + defaultValue: 'AzureServices', type: { name: "String" } }, - version: { - serializedName: "version", + anonymousPullEnabled: { + serializedName: "properties.anonymousPullEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const Request: msRest.CompositeMapper = { - serializedName: "Request", +export const RegistryPassword: msRest.CompositeMapper = { + serializedName: "RegistryPassword", type: { name: "Composite", - className: "Request", + className: "RegistryPassword", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - addr: { - serializedName: "addr", - type: { - name: "String" - } - }, - host: { - serializedName: "host", - type: { - name: "String" - } - }, - method: { - serializedName: "method", + name: { + serializedName: "name", type: { - name: "String" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } }, - useragent: { - serializedName: "useragent", + value: { + serializedName: "value", type: { name: "String" } @@ -2076,183 +2067,200 @@ export const Request: msRest.CompositeMapper = { } }; -export const Actor: msRest.CompositeMapper = { - serializedName: "Actor", +export const RegistryListCredentialsResult: msRest.CompositeMapper = { + serializedName: "RegistryListCredentialsResult", type: { name: "Composite", - className: "Actor", + className: "RegistryListCredentialsResult", modelProperties: { - name: { - serializedName: "name", + username: { + serializedName: "username", type: { name: "String" } + }, + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryPassword" + } + } + } } } } }; -export const Source: msRest.CompositeMapper = { - serializedName: "Source", +export const RegenerateCredentialParameters: msRest.CompositeMapper = { + serializedName: "RegenerateCredentialParameters", type: { name: "Composite", - className: "Source", + className: "RegenerateCredentialParameters", modelProperties: { - addr: { - serializedName: "addr", - type: { - name: "String" - } - }, - instanceID: { - serializedName: "instanceID", + name: { + required: true, + serializedName: "name", type: { - name: "String" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } } } } }; -export const EventContent: msRest.CompositeMapper = { - serializedName: "EventContent", +export const RegistryUsage: msRest.CompositeMapper = { + serializedName: "RegistryUsage", type: { name: "Composite", - className: "EventContent", + className: "RegistryUsage", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - }, - action: { - serializedName: "action", + name: { + serializedName: "name", type: { name: "String" } }, - target: { - serializedName: "target", + limit: { + serializedName: "limit", type: { - name: "Composite", - className: "Target" + name: "Number" } }, - request: { - serializedName: "request", + currentValue: { + serializedName: "currentValue", type: { - name: "Composite", - className: "Request" + name: "Number" } }, - actor: { - serializedName: "actor", + unit: { + serializedName: "unit", type: { - name: "Composite", - className: "Actor" + name: "String" } - }, - source: { - serializedName: "source", + } + } + } +}; + +export const RegistryUsageListResult: msRest.CompositeMapper = { + serializedName: "RegistryUsageListResult", + type: { + name: "Composite", + className: "RegistryUsageListResult", + modelProperties: { + value: { + serializedName: "value", type: { - name: "Composite", - className: "Source" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryUsage" + } + } } } } } }; -export const EventRequestMessage: msRest.CompositeMapper = { - serializedName: "EventRequestMessage", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "EventRequestMessage", + className: "PrivateLinkResource", modelProperties: { - content: { - serializedName: "content", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Composite", - className: "EventContent" + name: "String" } }, - headers: { - serializedName: "headers", + id: { + serializedName: "id", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - method: { - serializedName: "method", + name: { + serializedName: "name", type: { name: "String" } }, - requestUri: { - serializedName: "requestUri", + groupId: { + serializedName: "properties.groupId", type: { name: "String" } }, - version: { - serializedName: "version", + requiredMembers: { + serializedName: "properties.requiredMembers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const EventResponseMessage: msRest.CompositeMapper = { - serializedName: "EventResponseMessage", +export const Replication: msRest.CompositeMapper = { + serializedName: "Replication", type: { name: "Composite", - className: "EventResponseMessage", + className: "Replication", modelProperties: { - content: { - serializedName: "content", + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - headers: { - serializedName: "headers", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - reasonPhrase: { - serializedName: "reasonPhrase", + status: { + readOnly: true, + serializedName: "properties.status", type: { - name: "String" + name: "Composite", + className: "Status" } }, - statusCode: { - serializedName: "statusCode", + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + defaultValue: true, type: { - name: "String" + name: "Boolean" } }, - version: { - serializedName: "version", + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + defaultValue: 'Disabled', type: { name: "String" } @@ -2261,60 +2269,58 @@ export const EventResponseMessage: msRest.CompositeMapper = { } }; -export const Event: msRest.CompositeMapper = { - serializedName: "Event", +export const ReplicationUpdateParameters: msRest.CompositeMapper = { + serializedName: "ReplicationUpdateParameters", type: { name: "Composite", - className: "Event", + className: "ReplicationUpdateParameters", modelProperties: { - ...EventInfo.type.modelProperties, - eventRequestMessage: { - serializedName: "eventRequestMessage", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "EventRequestMessage" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - eventResponseMessage: { - serializedName: "eventResponseMessage", + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", type: { - name: "Composite", - className: "EventResponseMessage" + name: "Boolean" } } } } }; -export const AgentPool: msRest.CompositeMapper = { - serializedName: "AgentPool", +export const ScopeMap: msRest.CompositeMapper = { + serializedName: "ScopeMap", type: { name: "Composite", - className: "AgentPool", + className: "ScopeMap", modelProperties: { - ...Resource.type.modelProperties, - count: { - serializedName: "properties.count", - type: { - name: "Number" - } - }, - tier: { - serializedName: "properties.tier", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - os: { - serializedName: "properties.os", + scopeMapType: { + readOnly: true, + serializedName: "properties.type", type: { name: "String" } }, - virtualNetworkSubnetResourceId: { - serializedName: "properties.virtualNetworkSubnetResourceId", + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, provisioningState: { @@ -2323,28 +2329,40 @@ export const AgentPool: msRest.CompositeMapper = { type: { name: "String" } + }, + actions: { + required: true, + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } }; -export const AgentPoolUpdateParameters: msRest.CompositeMapper = { - serializedName: "AgentPoolUpdateParameters", +export const ScopeMapUpdateParameters: msRest.CompositeMapper = { + serializedName: "ScopeMapUpdateParameters", type: { name: "Composite", - className: "AgentPoolUpdateParameters", + className: "ScopeMapUpdateParameters", modelProperties: { - count: { - serializedName: "properties.count", + description: { + serializedName: "properties.description", type: { - name: "Number" + name: "String" } }, - tags: { - serializedName: "tags", + actions: { + serializedName: "properties.actions", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } @@ -2355,49 +2373,32 @@ export const AgentPoolUpdateParameters: msRest.CompositeMapper = { } }; -export const AgentPoolQueueStatus: msRest.CompositeMapper = { - serializedName: "AgentPoolQueueStatus", +export const TokenCertificate: msRest.CompositeMapper = { + serializedName: "TokenCertificate", type: { name: "Composite", - className: "AgentPoolQueueStatus", + className: "TokenCertificate", modelProperties: { - count: { - serializedName: "count", + name: { + serializedName: "name", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const RunRequest: msRest.CompositeMapper = { - serializedName: "RunRequest", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "RunRequest", - className: "RunRequest", - modelProperties: { - isArchiveEnabled: { - serializedName: "isArchiveEnabled", - defaultValue: false, + }, + expiry: { + serializedName: "expiry", type: { - name: "Boolean" + name: "DateTime" } }, - agentPoolName: { - serializedName: "agentPoolName", + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } }, - type: { - required: true, - serializedName: "type", + encodedPemCertificate: { + serializedName: "encodedPemCertificate", type: { name: "String" } @@ -2406,32 +2407,33 @@ export const RunRequest: msRest.CompositeMapper = { } }; -export const ImageDescriptor: msRest.CompositeMapper = { - serializedName: "ImageDescriptor", +export const TokenPassword: msRest.CompositeMapper = { + serializedName: "TokenPassword", type: { name: "Composite", - className: "ImageDescriptor", + className: "TokenPassword", modelProperties: { - registry: { - serializedName: "registry", + creationTime: { + serializedName: "creationTime", type: { - name: "String" + name: "DateTime" } }, - repository: { - serializedName: "repository", + expiry: { + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } }, - tag: { - serializedName: "tag", + name: { + serializedName: "name", type: { name: "String" } }, - digest: { - serializedName: "digest", + value: { + readOnly: true, + serializedName: "value", type: { name: "String" } @@ -2440,32 +2442,32 @@ export const ImageDescriptor: msRest.CompositeMapper = { } }; -export const ImageUpdateTrigger: msRest.CompositeMapper = { - serializedName: "ImageUpdateTrigger", +export const TokenCredentialsProperties: msRest.CompositeMapper = { + serializedName: "TokenCredentialsProperties", type: { name: "Composite", - className: "ImageUpdateTrigger", + className: "TokenCredentialsProperties", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - timestamp: { - serializedName: "timestamp", + certificates: { + serializedName: "certificates", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenCertificate" + } + } } }, - images: { - serializedName: "images", + passwords: { + serializedName: "passwords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageDescriptor" + className: "TokenPassword" } } } @@ -2474,50 +2476,64 @@ export const ImageUpdateTrigger: msRest.CompositeMapper = { } }; -export const SourceTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "SourceTriggerDescriptor", +export const Token: msRest.CompositeMapper = { + serializedName: "Token", type: { name: "Composite", - className: "SourceTriggerDescriptor", + className: "Token", modelProperties: { - id: { - serializedName: "id", + ...ProxyResource.type.modelProperties, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - eventType: { - serializedName: "eventType", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - commitId: { - serializedName: "commitId", + scopeMapId: { + serializedName: "properties.scopeMapId", type: { name: "String" } }, - pullRequestId: { - serializedName: "pullRequestId", + credentials: { + serializedName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "TokenCredentialsProperties" } }, - repositoryUrl: { - serializedName: "repositoryUrl", + status: { + serializedName: "properties.status", type: { name: "String" } - }, - branchName: { - serializedName: "branchName", + } + } + } +}; + +export const ActiveDirectoryObject: msRest.CompositeMapper = { + serializedName: "ActiveDirectoryObject", + type: { + name: "Composite", + className: "ActiveDirectoryObject", + modelProperties: { + objectId: { + serializedName: "objectId", type: { name: "String" } }, - providerType: { - serializedName: "providerType", + tenantId: { + serializedName: "tenantId", type: { name: "String" } @@ -2526,49 +2542,55 @@ export const SourceTriggerDescriptor: msRest.CompositeMapper = { } }; -export const TimerTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "TimerTriggerDescriptor", +export const TokenUpdateParameters: msRest.CompositeMapper = { + serializedName: "TokenUpdateParameters", type: { name: "Composite", - className: "TimerTriggerDescriptor", + className: "TokenUpdateParameters", modelProperties: { - timerTriggerName: { - serializedName: "timerTriggerName", + scopeMapId: { + serializedName: "properties.scopeMapId", type: { name: "String" } }, - scheduleOccurrence: { - serializedName: "scheduleOccurrence", + status: { + serializedName: "properties.status", type: { name: "String" } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "TokenCredentialsProperties" + } } } } }; -export const PlatformProperties: msRest.CompositeMapper = { - serializedName: "PlatformProperties", +export const GenerateCredentialsParameters: msRest.CompositeMapper = { + serializedName: "GenerateCredentialsParameters", type: { name: "Composite", - className: "PlatformProperties", + className: "GenerateCredentialsParameters", modelProperties: { - os: { - required: true, - serializedName: "os", + tokenId: { + serializedName: "tokenId", type: { name: "String" } }, - architecture: { - serializedName: "architecture", + expiry: { + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } }, - variant: { - serializedName: "variant", + name: { + serializedName: "name", type: { name: "String" } @@ -2577,255 +2599,307 @@ export const PlatformProperties: msRest.CompositeMapper = { } }; -export const AgentProperties: msRest.CompositeMapper = { - serializedName: "AgentProperties", +export const GenerateCredentialsResult: msRest.CompositeMapper = { + serializedName: "GenerateCredentialsResult", type: { name: "Composite", - className: "AgentProperties", + className: "GenerateCredentialsResult", modelProperties: { - cpu: { - serializedName: "cpu", + username: { + serializedName: "username", type: { - name: "Number" + name: "String" + } + }, + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenPassword" + } + } } } } } }; -export const Run: msRest.CompositeMapper = { - serializedName: "Run", +export const Webhook: msRest.CompositeMapper = { + serializedName: "Webhook", type: { name: "Composite", - className: "Run", + className: "Webhook", modelProperties: { - ...ProxyResource.type.modelProperties, - runId: { - serializedName: "properties.runId", - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, status: { serializedName: "properties.status", type: { name: "String" } }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", + scope: { + serializedName: "properties.scope", type: { - name: "DateTime" + name: "String" } }, - runType: { - serializedName: "properties.runType", + actions: { + required: true, + serializedName: "properties.actions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - agentPoolName: { - serializedName: "properties.agentPoolName", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } - }, - createTime: { - serializedName: "properties.createTime", + } + } + } +}; + +export const WebhookCreateParameters: msRest.CompositeMapper = { + serializedName: "WebhookCreateParameters", + type: { + name: "Composite", + className: "WebhookCreateParameters", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "DateTime" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - startTime: { - serializedName: "properties.startTime", + location: { + required: true, + serializedName: "location", type: { - name: "DateTime" + name: "String" } }, - finishTime: { - serializedName: "properties.finishTime", + serviceUri: { + required: true, + serializedName: "properties.serviceUri", type: { - name: "DateTime" + name: "String" } }, - outputImages: { - serializedName: "properties.outputImages", + customHeaders: { + serializedName: "properties.customHeaders", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "ImageDescriptor" + name: "String" } } } }, - task: { - serializedName: "properties.task", + status: { + serializedName: "properties.status", type: { name: "String" } }, - imageUpdateTrigger: { - serializedName: "properties.imageUpdateTrigger", - type: { - name: "Composite", - className: "ImageUpdateTrigger" - } - }, - sourceTrigger: { - serializedName: "properties.sourceTrigger", - type: { - name: "Composite", - className: "SourceTriggerDescriptor" - } - }, - timerTrigger: { - serializedName: "properties.timerTrigger", + scope: { + serializedName: "properties.scope", type: { - name: "Composite", - className: "TimerTriggerDescriptor" + name: "String" } }, - platform: { - serializedName: "properties.platform", + actions: { + required: true, + serializedName: "properties.actions", type: { - name: "Composite", - className: "PlatformProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - agentConfiguration: { - serializedName: "properties.agentConfiguration", + } + } + } +}; + +export const WebhookUpdateParameters: msRest.CompositeMapper = { + serializedName: "WebhookUpdateParameters", + type: { + name: "Composite", + className: "WebhookUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "AgentProperties" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - sourceRegistryAuth: { - serializedName: "properties.sourceRegistryAuth", + serviceUri: { + serializedName: "properties.serviceUri", type: { name: "String" } }, - customRegistries: { - serializedName: "properties.customRegistries", + customHeaders: { + serializedName: "properties.customHeaders", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - runErrorMessage: { - readOnly: true, - serializedName: "properties.runErrorMessage", + status: { + serializedName: "properties.status", type: { name: "String" } }, - updateTriggerToken: { - serializedName: "properties.updateTriggerToken", + scope: { + serializedName: "properties.scope", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + actions: { + serializedName: "properties.actions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } - }, - isArchiveEnabled: { - serializedName: "properties.isArchiveEnabled", - defaultValue: false, + } + } + } +}; + +export const EventInfo: msRest.CompositeMapper = { + serializedName: "EventInfo", + type: { + name: "Composite", + className: "EventInfo", + modelProperties: { + id: { + serializedName: "id", type: { - name: "Boolean" + name: "String" } } } } }; -export const SourceUploadDefinition: msRest.CompositeMapper = { - serializedName: "SourceUploadDefinition", +export const CallbackConfig: msRest.CompositeMapper = { + serializedName: "CallbackConfig", type: { name: "Composite", - className: "SourceUploadDefinition", + className: "CallbackConfig", modelProperties: { - uploadUrl: { - serializedName: "uploadUrl", + serviceUri: { + required: true, + serializedName: "serviceUri", type: { name: "String" } }, - relativePath: { - serializedName: "relativePath", + customHeaders: { + serializedName: "customHeaders", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const RunFilter: msRest.CompositeMapper = { - serializedName: "RunFilter", +export const Target: msRest.CompositeMapper = { + serializedName: "Target", type: { name: "Composite", - className: "RunFilter", + className: "Target", modelProperties: { - runId: { - serializedName: "runId", + mediaType: { + serializedName: "mediaType", type: { name: "String" } }, - runType: { - serializedName: "runType", + size: { + serializedName: "size", type: { - name: "String" + name: "Number" } }, - status: { - serializedName: "status", + digest: { + serializedName: "digest", type: { name: "String" } }, - createTime: { - serializedName: "createTime", + length: { + serializedName: "length", type: { - name: "DateTime" + name: "Number" } }, - finishTime: { - serializedName: "finishTime", + repository: { + serializedName: "repository", type: { - name: "DateTime" + name: "String" } }, - outputImageManifests: { - serializedName: "outputImageManifests", + url: { + serializedName: "url", type: { name: "String" } }, - isArchiveEnabled: { - serializedName: "isArchiveEnabled", + tag: { + serializedName: "tag", type: { - name: "Boolean" + name: "String" } }, - taskName: { - serializedName: "taskName", + name: { + serializedName: "name", type: { name: "String" } }, - agentPoolName: { - serializedName: "agentPoolName", + version: { + serializedName: "version", type: { name: "String" } @@ -2834,30 +2908,600 @@ export const RunFilter: msRest.CompositeMapper = { } }; -export const RunUpdateParameters: msRest.CompositeMapper = { - serializedName: "RunUpdateParameters", +export const Request: msRest.CompositeMapper = { + serializedName: "Request", type: { name: "Composite", - className: "RunUpdateParameters", + className: "Request", modelProperties: { - isArchiveEnabled: { - serializedName: "isArchiveEnabled", + id: { + serializedName: "id", + type: { + name: "String" + } + }, + addr: { + serializedName: "addr", + type: { + name: "String" + } + }, + host: { + serializedName: "host", + type: { + name: "String" + } + }, + method: { + serializedName: "method", + type: { + name: "String" + } + }, + useragent: { + serializedName: "useragent", + type: { + name: "String" + } + } + } + } +}; + +export const Actor: msRest.CompositeMapper = { + serializedName: "Actor", + type: { + name: "Composite", + className: "Actor", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const Source: msRest.CompositeMapper = { + serializedName: "Source", + type: { + name: "Composite", + className: "Source", + modelProperties: { + addr: { + serializedName: "addr", + type: { + name: "String" + } + }, + instanceID: { + serializedName: "instanceID", + type: { + name: "String" + } + } + } + } +}; + +export const EventContent: msRest.CompositeMapper = { + serializedName: "EventContent", + type: { + name: "Composite", + className: "EventContent", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "Composite", + className: "Target" + } + }, + request: { + serializedName: "request", + type: { + name: "Composite", + className: "Request" + } + }, + actor: { + serializedName: "actor", + type: { + name: "Composite", + className: "Actor" + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "Source" + } + } + } + } +}; + +export const EventRequestMessage: msRest.CompositeMapper = { + serializedName: "EventRequestMessage", + type: { + name: "Composite", + className: "EventRequestMessage", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "Composite", + className: "EventContent" + } + }, + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + method: { + serializedName: "method", + type: { + name: "String" + } + }, + requestUri: { + serializedName: "requestUri", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const EventResponseMessage: msRest.CompositeMapper = { + serializedName: "EventResponseMessage", + type: { + name: "Composite", + className: "EventResponseMessage", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "String" + } + }, + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + reasonPhrase: { + serializedName: "reasonPhrase", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const Event: msRest.CompositeMapper = { + serializedName: "Event", + type: { + name: "Composite", + className: "Event", + modelProperties: { + ...EventInfo.type.modelProperties, + eventRequestMessage: { + serializedName: "eventRequestMessage", + type: { + name: "Composite", + className: "EventRequestMessage" + } + }, + eventResponseMessage: { + serializedName: "eventResponseMessage", + type: { + name: "Composite", + className: "EventResponseMessage" + } + } + } + } +}; + +export const InnerErrorDescription: msRest.CompositeMapper = { + serializedName: "InnerErrorDescription", + type: { + name: "Composite", + className: "InnerErrorDescription", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponseBody: msRest.CompositeMapper = { + serializedName: "ErrorResponseBody", + type: { + name: "Composite", + className: "ErrorResponseBody", + modelProperties: { + code: { + required: true, + serializedName: "code", + type: { + name: "String" + } + }, + message: { + required: true, + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Composite", + className: "InnerErrorDescription" + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseBody" + } + } + } + } +}; + +export const AgentPool: msRest.CompositeMapper = { + serializedName: "AgentPool", + type: { + name: "Composite", + className: "AgentPool", + modelProperties: { + ...Resource.type.modelProperties, + count: { + serializedName: "properties.count", + type: { + name: "Number" + } + }, + tier: { + serializedName: "properties.tier", + type: { + name: "String" + } + }, + os: { + serializedName: "properties.os", + type: { + name: "String" + } + }, + virtualNetworkSubnetResourceId: { + serializedName: "properties.virtualNetworkSubnetResourceId", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + } + } + } +}; + +export const AgentPoolUpdateParameters: msRest.CompositeMapper = { + serializedName: "AgentPoolUpdateParameters", + type: { + name: "Composite", + className: "AgentPoolUpdateParameters", + modelProperties: { + count: { + serializedName: "properties.count", + type: { + name: "Number" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const AgentPoolQueueStatus: msRest.CompositeMapper = { + serializedName: "AgentPoolQueueStatus", + type: { + name: "Composite", + className: "AgentPoolQueueStatus", + modelProperties: { + count: { + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const RunRequest: msRest.CompositeMapper = { + serializedName: "RunRequest", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "RunRequest", + className: "RunRequest", + modelProperties: { + isArchiveEnabled: { + serializedName: "isArchiveEnabled", + defaultValue: false, type: { name: "Boolean" } + }, + agentPoolName: { + serializedName: "agentPoolName", + type: { + name: "String" + } + }, + logTemplate: { + serializedName: "logTemplate", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ImageDescriptor: msRest.CompositeMapper = { + serializedName: "ImageDescriptor", + type: { + name: "Composite", + className: "ImageDescriptor", + modelProperties: { + registry: { + serializedName: "registry", + type: { + name: "String" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + }, + digest: { + serializedName: "digest", + type: { + name: "String" + } + } + } + } +}; + +export const ImageUpdateTrigger: msRest.CompositeMapper = { + serializedName: "ImageUpdateTrigger", + type: { + name: "Composite", + className: "ImageUpdateTrigger", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + images: { + serializedName: "images", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ImageDescriptor" + } + } + } + } + } + } +}; + +export const SourceTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "SourceTriggerDescriptor", + type: { + name: "Composite", + className: "SourceTriggerDescriptor", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + eventType: { + serializedName: "eventType", + type: { + name: "String" + } + }, + commitId: { + serializedName: "commitId", + type: { + name: "String" + } + }, + pullRequestId: { + serializedName: "pullRequestId", + type: { + name: "String" + } + }, + repositoryUrl: { + serializedName: "repositoryUrl", + type: { + name: "String" + } + }, + branchName: { + serializedName: "branchName", + type: { + name: "String" + } + }, + providerType: { + serializedName: "providerType", + type: { + name: "String" + } } } } }; -export const RunGetLogResult: msRest.CompositeMapper = { - serializedName: "RunGetLogResult", +export const TimerTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "TimerTriggerDescriptor", type: { name: "Composite", - className: "RunGetLogResult", + className: "TimerTriggerDescriptor", modelProperties: { - logLink: { - serializedName: "logLink", + timerTriggerName: { + serializedName: "timerTriggerName", + type: { + name: "String" + } + }, + scheduleOccurrence: { + serializedName: "scheduleOccurrence", type: { name: "String" } @@ -2866,44 +3510,27 @@ export const RunGetLogResult: msRest.CompositeMapper = { } }; -export const TaskRun: msRest.CompositeMapper = { - serializedName: "TaskRun", +export const PlatformProperties: msRest.CompositeMapper = { + serializedName: "PlatformProperties", type: { name: "Composite", - className: "TaskRun", + className: "PlatformProperties", modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + os: { + required: true, + serializedName: "os", type: { name: "String" } }, - runRequest: { - serializedName: "properties.runRequest", - type: { - name: "Composite", - className: "RunRequest" - } - }, - runResult: { - readOnly: true, - serializedName: "properties.runResult", + architecture: { + serializedName: "architecture", type: { - name: "Composite", - className: "Run" + name: "String" } }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + variant: { + serializedName: "variant", type: { name: "String" } @@ -2912,280 +3539,199 @@ export const TaskRun: msRest.CompositeMapper = { } }; -export const TaskRunUpdateParameters: msRest.CompositeMapper = { - serializedName: "TaskRunUpdateParameters", +export const AgentProperties: msRest.CompositeMapper = { + serializedName: "AgentProperties", type: { name: "Composite", - className: "TaskRunUpdateParameters", + className: "AgentProperties", modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - runRequest: { - serializedName: "properties.runRequest", - type: { - name: "Composite", - className: "RunRequest" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", + cpu: { + serializedName: "cpu", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Number" } } } } }; -export const BaseImageDependency: msRest.CompositeMapper = { - serializedName: "BaseImageDependency", +export const Run: msRest.CompositeMapper = { + serializedName: "Run", type: { name: "Composite", - className: "BaseImageDependency", + className: "Run", modelProperties: { - type: { - serializedName: "type", + ...ProxyResource.type.modelProperties, + runId: { + serializedName: "properties.runId", type: { name: "String" } }, - registry: { - serializedName: "registry", + status: { + serializedName: "properties.status", type: { name: "String" } }, - repository: { - serializedName: "repository", + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", type: { - name: "String" + name: "DateTime" } }, - tag: { - serializedName: "tag", + runType: { + serializedName: "properties.runType", type: { name: "String" } }, - digest: { - serializedName: "digest", + agentPoolName: { + serializedName: "properties.agentPoolName", type: { name: "String" } - } - } - } -}; - -export const TaskStepProperties: msRest.CompositeMapper = { - serializedName: "TaskStepProperties", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "TaskStepProperties", - className: "TaskStepProperties", - modelProperties: { - baseImageDependencies: { - readOnly: true, - serializedName: "baseImageDependencies", + }, + createTime: { + serializedName: "properties.createTime", + type: { + name: "DateTime" + } + }, + startTime: { + serializedName: "properties.startTime", + type: { + name: "DateTime" + } + }, + finishTime: { + serializedName: "properties.finishTime", + type: { + name: "DateTime" + } + }, + outputImages: { + serializedName: "properties.outputImages", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BaseImageDependency" + className: "ImageDescriptor" } } } }, - contextPath: { - serializedName: "contextPath", + task: { + serializedName: "properties.task", type: { name: "String" } }, - contextAccessToken: { - serializedName: "contextAccessToken", + imageUpdateTrigger: { + serializedName: "properties.imageUpdateTrigger", type: { - name: "String" + name: "Composite", + className: "ImageUpdateTrigger" } }, - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const TimerTrigger: msRest.CompositeMapper = { - serializedName: "TimerTrigger", - type: { - name: "Composite", - className: "TimerTrigger", - modelProperties: { - schedule: { - required: true, - serializedName: "schedule", + sourceTrigger: { + serializedName: "properties.sourceTrigger", type: { - name: "String" + name: "Composite", + className: "SourceTriggerDescriptor" } }, - status: { - serializedName: "status", - defaultValue: 'Enabled', + timerTrigger: { + serializedName: "properties.timerTrigger", type: { - name: "String" + name: "Composite", + className: "TimerTriggerDescriptor" } }, - name: { - required: true, - serializedName: "name", + platform: { + serializedName: "properties.platform", type: { - name: "String" + name: "Composite", + className: "PlatformProperties" } - } - } - } -}; - -export const AuthInfo: msRest.CompositeMapper = { - serializedName: "AuthInfo", - type: { - name: "Composite", - className: "AuthInfo", - modelProperties: { - tokenType: { - required: true, - serializedName: "tokenType", + }, + agentConfiguration: { + serializedName: "properties.agentConfiguration", type: { - name: "String" + name: "Composite", + className: "AgentProperties" } }, - token: { - required: true, - serializedName: "token", + sourceRegistryAuth: { + serializedName: "properties.sourceRegistryAuth", type: { name: "String" } }, - refreshToken: { - serializedName: "refreshToken", + customRegistries: { + serializedName: "properties.customRegistries", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - scope: { - serializedName: "scope", + runErrorMessage: { + readOnly: true, + serializedName: "properties.runErrorMessage", type: { name: "String" } }, - expiresIn: { - serializedName: "expiresIn", - type: { - name: "Number" - } - } - } - } -}; - -export const SourceProperties: msRest.CompositeMapper = { - serializedName: "SourceProperties", - type: { - name: "Composite", - className: "SourceProperties", - modelProperties: { - sourceControlType: { - required: true, - serializedName: "sourceControlType", + updateTriggerToken: { + serializedName: "properties.updateTriggerToken", type: { name: "String" } }, - repositoryUrl: { - required: true, - serializedName: "repositoryUrl", + logArtifact: { + readOnly: true, + serializedName: "properties.logArtifact", type: { - name: "String" + name: "Composite", + className: "ImageDescriptor" } }, - branch: { - serializedName: "branch", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String" } }, - sourceControlAuthProperties: { - serializedName: "sourceControlAuthProperties", + isArchiveEnabled: { + serializedName: "properties.isArchiveEnabled", + defaultValue: false, type: { - name: "Composite", - className: "AuthInfo" + name: "Boolean" } } } } }; -export const SourceTrigger: msRest.CompositeMapper = { - serializedName: "SourceTrigger", +export const SourceUploadDefinition: msRest.CompositeMapper = { + serializedName: "SourceUploadDefinition", type: { name: "Composite", - className: "SourceTrigger", + className: "SourceUploadDefinition", modelProperties: { - sourceRepository: { - required: true, - serializedName: "sourceRepository", - type: { - name: "Composite", - className: "SourceProperties" - } - }, - sourceTriggerEvents: { - required: true, - serializedName: "sourceTriggerEvents", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - status: { - serializedName: "status", - defaultValue: 'Enabled', + uploadUrl: { + serializedName: "uploadUrl", type: { name: "String" } }, - name: { - required: true, - serializedName: "name", + relativePath: { + serializedName: "relativePath", type: { name: "String" } @@ -3194,120 +3740,62 @@ export const SourceTrigger: msRest.CompositeMapper = { } }; -export const BaseImageTrigger: msRest.CompositeMapper = { - serializedName: "BaseImageTrigger", +export const RunFilter: msRest.CompositeMapper = { + serializedName: "RunFilter", type: { name: "Composite", - className: "BaseImageTrigger", + className: "RunFilter", modelProperties: { - baseImageTriggerType: { - required: true, - serializedName: "baseImageTriggerType", - type: { - name: "String" - } - }, - updateTriggerEndpoint: { - serializedName: "updateTriggerEndpoint", + runId: { + serializedName: "runId", type: { name: "String" } }, - updateTriggerPayloadType: { - serializedName: "updateTriggerPayloadType", + runType: { + serializedName: "runType", type: { name: "String" } }, status: { serializedName: "status", - defaultValue: 'Enabled', type: { name: "String" } }, - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const TriggerProperties: msRest.CompositeMapper = { - serializedName: "TriggerProperties", - type: { - name: "Composite", - className: "TriggerProperties", - modelProperties: { - timerTriggers: { - serializedName: "timerTriggers", + createTime: { + serializedName: "createTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimerTrigger" - } - } + name: "DateTime" } }, - sourceTriggers: { - serializedName: "sourceTriggers", + finishTime: { + serializedName: "finishTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SourceTrigger" - } - } + name: "DateTime" } }, - baseImageTrigger: { - serializedName: "baseImageTrigger", + outputImageManifests: { + serializedName: "outputImageManifests", type: { - name: "Composite", - className: "BaseImageTrigger" + name: "String" } - } - } - } -}; - -export const SourceRegistryCredentials: msRest.CompositeMapper = { - serializedName: "SourceRegistryCredentials", - type: { - name: "Composite", - className: "SourceRegistryCredentials", - modelProperties: { - loginMode: { - serializedName: "loginMode", + }, + isArchiveEnabled: { + serializedName: "isArchiveEnabled", type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const SecretObject: msRest.CompositeMapper = { - serializedName: "SecretObject", - type: { - name: "Composite", - className: "SecretObject", - modelProperties: { - value: { - serializedName: "value", + }, + taskName: { + serializedName: "taskName", type: { name: "String" } }, - type: { - serializedName: "type", + agentPoolName: { + serializedName: "agentPoolName", type: { name: "String" } @@ -3316,72 +3804,51 @@ export const SecretObject: msRest.CompositeMapper = { } }; -export const CustomRegistryCredentials: msRest.CompositeMapper = { - serializedName: "CustomRegistryCredentials", +export const RunUpdateParameters: msRest.CompositeMapper = { + serializedName: "RunUpdateParameters", type: { name: "Composite", - className: "CustomRegistryCredentials", + className: "RunUpdateParameters", modelProperties: { - userName: { - serializedName: "userName", - type: { - name: "Composite", - className: "SecretObject" - } - }, - password: { - serializedName: "password", - type: { - name: "Composite", - className: "SecretObject" - } - }, - identity: { - serializedName: "identity", + isArchiveEnabled: { + serializedName: "isArchiveEnabled", type: { - name: "String" + name: "Boolean" } } } } }; -export const Credentials: msRest.CompositeMapper = { - serializedName: "Credentials", +export const RunGetLogResult: msRest.CompositeMapper = { + serializedName: "RunGetLogResult", type: { name: "Composite", - className: "Credentials", + className: "RunGetLogResult", modelProperties: { - sourceRegistry: { - serializedName: "sourceRegistry", + logLink: { + serializedName: "logLink", type: { - name: "Composite", - className: "SourceRegistryCredentials" + name: "String" } }, - customRegistries: { - serializedName: "customRegistries", + logArtifactLink: { + serializedName: "logArtifactLink", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CustomRegistryCredentials" - } - } + name: "String" } } } } }; -export const Task: msRest.CompositeMapper = { - serializedName: "Task", +export const TaskRun: msRest.CompositeMapper = { + serializedName: "TaskRun", type: { name: "Composite", - className: "Task", + className: "TaskRun", modelProperties: { - ...Resource.type.modelProperties, + ...ProxyResource.type.modelProperties, identity: { serializedName: "identity", type: { @@ -3390,103 +3857,122 @@ export const Task: msRest.CompositeMapper = { } }, provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - status: { - serializedName: "properties.status", + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - platform: { - required: true, - serializedName: "properties.platform", + runRequest: { + serializedName: "properties.runRequest", type: { name: "Composite", - className: "PlatformProperties" + className: "RunRequest" } }, - agentConfiguration: { - serializedName: "properties.agentConfiguration", + runResult: { + readOnly: true, + serializedName: "properties.runResult", type: { name: "Composite", - className: "AgentProperties" + className: "Run" } }, - agentPoolName: { - serializedName: "properties.agentPoolName", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { name: "String" } }, - timeout: { - serializedName: "properties.timeout", - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, + location: { + serializedName: "location", type: { - name: "Number" + name: "String" } - }, - step: { - required: true, - serializedName: "properties.step", + } + } + } +}; + +export const TaskRunUpdateParameters: msRest.CompositeMapper = { + serializedName: "TaskRunUpdateParameters", + type: { + name: "Composite", + className: "TaskRunUpdateParameters", + modelProperties: { + identity: { + serializedName: "identity", type: { name: "Composite", - className: "TaskStepProperties" + className: "IdentityProperties" } }, - trigger: { - serializedName: "properties.trigger", + runRequest: { + serializedName: "properties.runRequest", type: { name: "Composite", - className: "TriggerProperties" + className: "RunRequest" } }, - credentials: { - serializedName: "properties.credentials", + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { - name: "Composite", - className: "Credentials" + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const PlatformUpdateParameters: msRest.CompositeMapper = { - serializedName: "PlatformUpdateParameters", +export const BaseImageDependency: msRest.CompositeMapper = { + serializedName: "BaseImageDependency", type: { name: "Composite", - className: "PlatformUpdateParameters", + className: "BaseImageDependency", modelProperties: { - os: { - serializedName: "os", + type: { + serializedName: "type", type: { name: "String" } }, - architecture: { - serializedName: "architecture", + registry: { + serializedName: "registry", type: { name: "String" } }, - variant: { - serializedName: "variant", + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + }, + digest: { + serializedName: "digest", type: { name: "String" } @@ -3495,17 +3981,30 @@ export const PlatformUpdateParameters: msRest.CompositeMapper = { } }; -export const TaskStepUpdateParameters: msRest.CompositeMapper = { - serializedName: "TaskStepUpdateParameters", +export const TaskStepProperties: msRest.CompositeMapper = { + serializedName: "TaskStepProperties", type: { name: "Composite", polymorphicDiscriminator: { serializedName: "type", clientName: "type" }, - uberParent: "TaskStepUpdateParameters", - className: "TaskStepUpdateParameters", + uberParent: "TaskStepProperties", + className: "TaskStepProperties", modelProperties: { + baseImageDependencies: { + readOnly: true, + serializedName: "baseImageDependencies", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaseImageDependency" + } + } + } + }, contextPath: { serializedName: "contextPath", type: { @@ -3529,13 +4028,14 @@ export const TaskStepUpdateParameters: msRest.CompositeMapper = { } }; -export const TimerTriggerUpdateParameters: msRest.CompositeMapper = { - serializedName: "TimerTriggerUpdateParameters", +export const TimerTrigger: msRest.CompositeMapper = { + serializedName: "TimerTrigger", type: { name: "Composite", - className: "TimerTriggerUpdateParameters", + className: "TimerTrigger", modelProperties: { schedule: { + required: true, serializedName: "schedule", type: { name: "String" @@ -3559,19 +4059,21 @@ export const TimerTriggerUpdateParameters: msRest.CompositeMapper = { } }; -export const AuthInfoUpdateParameters: msRest.CompositeMapper = { - serializedName: "AuthInfoUpdateParameters", +export const AuthInfo: msRest.CompositeMapper = { + serializedName: "AuthInfo", type: { name: "Composite", - className: "AuthInfoUpdateParameters", + className: "AuthInfo", modelProperties: { tokenType: { + required: true, serializedName: "tokenType", type: { name: "String" } }, token: { + required: true, serializedName: "token", type: { name: "String" @@ -3599,19 +4101,21 @@ export const AuthInfoUpdateParameters: msRest.CompositeMapper = { } }; -export const SourceUpdateParameters: msRest.CompositeMapper = { - serializedName: "SourceUpdateParameters", +export const SourceProperties: msRest.CompositeMapper = { + serializedName: "SourceProperties", type: { name: "Composite", - className: "SourceUpdateParameters", + className: "SourceProperties", modelProperties: { sourceControlType: { + required: true, serializedName: "sourceControlType", type: { name: "String" } }, repositoryUrl: { + required: true, serializedName: "repositoryUrl", type: { name: "String" @@ -3627,27 +4131,29 @@ export const SourceUpdateParameters: msRest.CompositeMapper = { serializedName: "sourceControlAuthProperties", type: { name: "Composite", - className: "AuthInfoUpdateParameters" + className: "AuthInfo" } } } } }; -export const SourceTriggerUpdateParameters: msRest.CompositeMapper = { - serializedName: "SourceTriggerUpdateParameters", +export const SourceTrigger: msRest.CompositeMapper = { + serializedName: "SourceTrigger", type: { name: "Composite", - className: "SourceTriggerUpdateParameters", + className: "SourceTrigger", modelProperties: { sourceRepository: { + required: true, serializedName: "sourceRepository", type: { name: "Composite", - className: "SourceUpdateParameters" + className: "SourceProperties" } }, sourceTriggerEvents: { + required: true, serializedName: "sourceTriggerEvents", type: { name: "Sequence", @@ -3664,10 +4170,110 @@ export const SourceTriggerUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } - }, - name: { - required: true, - serializedName: "name", + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const BaseImageTrigger: msRest.CompositeMapper = { + serializedName: "BaseImageTrigger", + type: { + name: "Composite", + className: "BaseImageTrigger", + modelProperties: { + baseImageTriggerType: { + required: true, + serializedName: "baseImageTriggerType", + type: { + name: "String" + } + }, + updateTriggerEndpoint: { + serializedName: "updateTriggerEndpoint", + type: { + name: "String" + } + }, + updateTriggerPayloadType: { + serializedName: "updateTriggerPayloadType", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const TriggerProperties: msRest.CompositeMapper = { + serializedName: "TriggerProperties", + type: { + name: "Composite", + className: "TriggerProperties", + modelProperties: { + timerTriggers: { + serializedName: "timerTriggers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimerTrigger" + } + } + } + }, + sourceTriggers: { + serializedName: "sourceTriggers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceTrigger" + } + } + } + }, + baseImageTrigger: { + serializedName: "baseImageTrigger", + type: { + name: "Composite", + className: "BaseImageTrigger" + } + } + } + } +}; + +export const SourceRegistryCredentials: msRest.CompositeMapper = { + serializedName: "SourceRegistryCredentials", + type: { + name: "Composite", + className: "SourceRegistryCredentials", + modelProperties: { + loginMode: { + serializedName: "loginMode", type: { name: "String" } @@ -3676,40 +4282,50 @@ export const SourceTriggerUpdateParameters: msRest.CompositeMapper = { } }; -export const BaseImageTriggerUpdateParameters: msRest.CompositeMapper = { - serializedName: "BaseImageTriggerUpdateParameters", +export const SecretObject: msRest.CompositeMapper = { + serializedName: "SecretObject", type: { name: "Composite", - className: "BaseImageTriggerUpdateParameters", + className: "SecretObject", modelProperties: { - baseImageTriggerType: { - serializedName: "baseImageTriggerType", + value: { + serializedName: "value", type: { name: "String" } }, - updateTriggerEndpoint: { - serializedName: "updateTriggerEndpoint", + type: { + serializedName: "type", type: { name: "String" } - }, - updateTriggerPayloadType: { - serializedName: "updateTriggerPayloadType", + } + } + } +}; + +export const CustomRegistryCredentials: msRest.CompositeMapper = { + serializedName: "CustomRegistryCredentials", + type: { + name: "Composite", + className: "CustomRegistryCredentials", + modelProperties: { + userName: { + serializedName: "userName", type: { - name: "String" + name: "Composite", + className: "SecretObject" } }, - status: { - serializedName: "status", - defaultValue: 'Enabled', + password: { + serializedName: "password", type: { - name: "String" + name: "Composite", + className: "SecretObject" } }, - name: { - required: true, - serializedName: "name", + identity: { + serializedName: "identity", type: { name: "String" } @@ -3718,53 +4334,42 @@ export const BaseImageTriggerUpdateParameters: msRest.CompositeMapper = { } }; -export const TriggerUpdateParameters: msRest.CompositeMapper = { - serializedName: "TriggerUpdateParameters", +export const Credentials: msRest.CompositeMapper = { + serializedName: "Credentials", type: { name: "Composite", - className: "TriggerUpdateParameters", + className: "Credentials", modelProperties: { - timerTriggers: { - serializedName: "timerTriggers", + sourceRegistry: { + serializedName: "sourceRegistry", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimerTriggerUpdateParameters" - } - } + name: "Composite", + className: "SourceRegistryCredentials" } }, - sourceTriggers: { - serializedName: "sourceTriggers", + customRegistries: { + serializedName: "customRegistries", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "SourceTriggerUpdateParameters" + className: "CustomRegistryCredentials" } } } - }, - baseImageTrigger: { - serializedName: "baseImageTrigger", - type: { - name: "Composite", - className: "BaseImageTriggerUpdateParameters" - } } } } }; -export const TaskUpdateParameters: msRest.CompositeMapper = { - serializedName: "TaskUpdateParameters", +export const Task: msRest.CompositeMapper = { + serializedName: "Task", type: { name: "Composite", - className: "TaskUpdateParameters", + className: "Task", modelProperties: { + ...Resource.type.modelProperties, identity: { serializedName: "identity", type: { @@ -3772,6 +4377,20 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { className: "IdentityProperties" } }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, status: { serializedName: "properties.status", type: { @@ -3782,7 +4401,7 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.platform", type: { name: "Composite", - className: "PlatformUpdateParameters" + className: "PlatformProperties" } }, agentConfiguration: { @@ -3800,6 +4419,11 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { }, timeout: { serializedName: "properties.timeout", + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, type: { name: "Number" } @@ -3808,14 +4432,14 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.step", type: { name: "Composite", - className: "TaskStepUpdateParameters" + className: "TaskStepProperties" } }, trigger: { serializedName: "properties.trigger", type: { name: "Composite", - className: "TriggerUpdateParameters" + className: "TriggerProperties" } }, credentials: { @@ -3825,43 +4449,43 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { className: "Credentials" } }, - tags: { - serializedName: "tags", + logTemplate: { + serializedName: "properties.logTemplate", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" + } + }, + isSystemTask: { + serializedName: "properties.isSystemTask", + defaultValue: false, + type: { + name: "Boolean" } } } } }; -export const InnerErrorDescription: msRest.CompositeMapper = { - serializedName: "InnerErrorDescription", +export const PlatformUpdateParameters: msRest.CompositeMapper = { + serializedName: "PlatformUpdateParameters", type: { name: "Composite", - className: "InnerErrorDescription", + className: "PlatformUpdateParameters", modelProperties: { - code: { - required: true, - serializedName: "code", + os: { + serializedName: "os", type: { name: "String" } }, - message: { - required: true, - serializedName: "message", + architecture: { + serializedName: "architecture", type: { name: "String" } }, - target: { - serializedName: "target", + variant: { + serializedName: "variant", type: { name: "String" } @@ -3870,102 +4494,160 @@ export const InnerErrorDescription: msRest.CompositeMapper = { } }; -export const ErrorResponseBody: msRest.CompositeMapper = { - serializedName: "ErrorResponseBody", +export const TaskStepUpdateParameters: msRest.CompositeMapper = { + serializedName: "TaskStepUpdateParameters", type: { name: "Composite", - className: "ErrorResponseBody", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "TaskStepUpdateParameters", + className: "TaskStepUpdateParameters", modelProperties: { - code: { - required: true, - serializedName: "code", + contextPath: { + serializedName: "contextPath", type: { name: "String" } }, - message: { + contextAccessToken: { + serializedName: "contextAccessToken", + type: { + name: "String" + } + }, + type: { required: true, - serializedName: "message", + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TimerTriggerUpdateParameters: msRest.CompositeMapper = { + serializedName: "TimerTriggerUpdateParameters", + type: { + name: "Composite", + className: "TimerTriggerUpdateParameters", + modelProperties: { + schedule: { + serializedName: "schedule", type: { name: "String" } }, - target: { - serializedName: "target", + status: { + serializedName: "status", + defaultValue: 'Enabled', type: { name: "String" } }, - details: { - serializedName: "details", + name: { + required: true, + serializedName: "name", type: { - name: "Composite", - className: "InnerErrorDescription" + name: "String" } } } } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const AuthInfoUpdateParameters: msRest.CompositeMapper = { + serializedName: "AuthInfoUpdateParameters", type: { name: "Composite", - className: "ErrorResponse", + className: "AuthInfoUpdateParameters", modelProperties: { - error: { - serializedName: "error", + tokenType: { + serializedName: "tokenType", type: { - name: "Composite", - className: "ErrorResponseBody" + name: "String" + } + }, + token: { + serializedName: "token", + type: { + name: "String" + } + }, + refreshToken: { + serializedName: "refreshToken", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + type: { + name: "String" + } + }, + expiresIn: { + serializedName: "expiresIn", + type: { + name: "Number" } } } } }; -export const Argument: msRest.CompositeMapper = { - serializedName: "Argument", +export const SourceUpdateParameters: msRest.CompositeMapper = { + serializedName: "SourceUpdateParameters", type: { name: "Composite", - className: "Argument", + className: "SourceUpdateParameters", modelProperties: { - name: { - required: true, - serializedName: "name", + sourceControlType: { + serializedName: "sourceControlType", type: { name: "String" } }, - value: { - required: true, - serializedName: "value", + repositoryUrl: { + serializedName: "repositoryUrl", type: { name: "String" } }, - isSecret: { - serializedName: "isSecret", - defaultValue: false, + branch: { + serializedName: "branch", type: { - name: "Boolean" + name: "String" + } + }, + sourceControlAuthProperties: { + serializedName: "sourceControlAuthProperties", + type: { + name: "Composite", + className: "AuthInfoUpdateParameters" } } } } }; -export const DockerBuildRequest: msRest.CompositeMapper = { - serializedName: "DockerBuildRequest", +export const SourceTriggerUpdateParameters: msRest.CompositeMapper = { + serializedName: "SourceTriggerUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, - uberParent: "RunRequest", - className: "DockerBuildRequest", + className: "SourceTriggerUpdateParameters", modelProperties: { - ...RunRequest.type.modelProperties, - imageNames: { - serializedName: "imageNames", + sourceRepository: { + serializedName: "sourceRepository", + type: { + name: "Composite", + className: "SourceUpdateParameters" + } + }, + sourceTriggerEvents: { + serializedName: "sourceTriggerEvents", type: { name: "Sequence", element: { @@ -3975,311 +4657,280 @@ export const DockerBuildRequest: msRest.CompositeMapper = { } } }, - isPushEnabled: { - serializedName: "isPushEnabled", - defaultValue: true, - type: { - name: "Boolean" - } - }, - noCache: { - serializedName: "noCache", - defaultValue: false, + status: { + serializedName: "status", + defaultValue: 'Enabled', type: { - name: "Boolean" + name: "String" } }, - dockerFilePath: { + name: { required: true, - serializedName: "dockerFilePath", + serializedName: "name", type: { name: "String" } - }, - target: { - serializedName: "target", + } + } + } +}; + +export const BaseImageTriggerUpdateParameters: msRest.CompositeMapper = { + serializedName: "BaseImageTriggerUpdateParameters", + type: { + name: "Composite", + className: "BaseImageTriggerUpdateParameters", + modelProperties: { + baseImageTriggerType: { + serializedName: "baseImageTriggerType", type: { name: "String" } }, - argumentsProperty: { - serializedName: "arguments", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Argument" - } - } - } - }, - timeout: { - serializedName: "timeout", - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, - type: { - name: "Number" - } - }, - platform: { - required: true, - serializedName: "platform", + updateTriggerEndpoint: { + serializedName: "updateTriggerEndpoint", type: { - name: "Composite", - className: "PlatformProperties" + name: "String" } }, - agentConfiguration: { - serializedName: "agentConfiguration", + updateTriggerPayloadType: { + serializedName: "updateTriggerPayloadType", type: { - name: "Composite", - className: "AgentProperties" + name: "String" } }, - sourceLocation: { - serializedName: "sourceLocation", + status: { + serializedName: "status", + defaultValue: 'Enabled', type: { name: "String" } }, - credentials: { - serializedName: "credentials", + name: { + required: true, + serializedName: "name", type: { - name: "Composite", - className: "Credentials" + name: "String" } } } } }; -export const SetValue: msRest.CompositeMapper = { - serializedName: "SetValue", +export const TriggerUpdateParameters: msRest.CompositeMapper = { + serializedName: "TriggerUpdateParameters", type: { name: "Composite", - className: "SetValue", + className: "TriggerUpdateParameters", modelProperties: { - name: { - required: true, - serializedName: "name", + timerTriggers: { + serializedName: "timerTriggers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimerTriggerUpdateParameters" + } + } } }, - value: { - required: true, - serializedName: "value", + sourceTriggers: { + serializedName: "sourceTriggers", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SourceTriggerUpdateParameters" + } + } } }, - isSecret: { - serializedName: "isSecret", - defaultValue: false, + baseImageTrigger: { + serializedName: "baseImageTrigger", type: { - name: "Boolean" + name: "Composite", + className: "BaseImageTriggerUpdateParameters" } } } } }; -export const FileTaskRunRequest: msRest.CompositeMapper = { - serializedName: "FileTaskRunRequest", +export const TaskUpdateParameters: msRest.CompositeMapper = { + serializedName: "TaskUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, - uberParent: "RunRequest", - className: "FileTaskRunRequest", + className: "TaskUpdateParameters", modelProperties: { - ...RunRequest.type.modelProperties, - taskFilePath: { - required: true, - serializedName: "taskFilePath", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - valuesFilePath: { - serializedName: "valuesFilePath", + status: { + serializedName: "properties.status", type: { name: "String" } }, - values: { - serializedName: "values", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } - } - }, - timeout: { - serializedName: "timeout", - defaultValue: 3600, - constraints: { - InclusiveMaximum: 28800, - InclusiveMinimum: 300 - }, - type: { - name: "Number" - } - }, platform: { - required: true, - serializedName: "platform", + serializedName: "properties.platform", type: { name: "Composite", - className: "PlatformProperties" + className: "PlatformUpdateParameters" } }, agentConfiguration: { - serializedName: "agentConfiguration", + serializedName: "properties.agentConfiguration", type: { name: "Composite", className: "AgentProperties" } }, - sourceLocation: { - serializedName: "sourceLocation", + agentPoolName: { + serializedName: "properties.agentPoolName", type: { name: "String" } }, - credentials: { - serializedName: "credentials", + timeout: { + serializedName: "properties.timeout", type: { - name: "Composite", - className: "Credentials" + name: "Number" } - } - } - } -}; - -export const OverrideTaskStepProperties: msRest.CompositeMapper = { - serializedName: "OverrideTaskStepProperties", - type: { - name: "Composite", - className: "OverrideTaskStepProperties", - modelProperties: { - contextPath: { - serializedName: "contextPath", + }, + step: { + serializedName: "properties.step", type: { - name: "String" + name: "Composite", + className: "TaskStepUpdateParameters" } }, - file: { - serializedName: "file", + trigger: { + serializedName: "properties.trigger", type: { - name: "String" + name: "Composite", + className: "TriggerUpdateParameters" } }, - argumentsProperty: { - serializedName: "arguments", + credentials: { + serializedName: "properties.credentials", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Argument" - } - } + name: "Composite", + className: "Credentials" } }, - target: { - serializedName: "target", + logTemplate: { + serializedName: "properties.logTemplate", type: { name: "String" } }, - values: { - serializedName: "values", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "SetValue" + name: "String" } } } - }, - updateTriggerToken: { - serializedName: "updateTriggerToken", - type: { - name: "String" - } } } } }; -export const TaskRunRequest: msRest.CompositeMapper = { - serializedName: "TaskRunRequest", +export const Argument: msRest.CompositeMapper = { + serializedName: "Argument", type: { name: "Composite", - polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, - uberParent: "RunRequest", - className: "TaskRunRequest", + className: "Argument", modelProperties: { - ...RunRequest.type.modelProperties, - taskId: { + name: { required: true, - serializedName: "taskId", + serializedName: "name", type: { name: "String" } }, - overrideTaskStepProperties: { - serializedName: "overrideTaskStepProperties", + value: { + required: true, + serializedName: "value", type: { - name: "Composite", - className: "OverrideTaskStepProperties" + name: "String" + } + }, + isSecret: { + serializedName: "isSecret", + defaultValue: false, + type: { + name: "Boolean" } } } } }; -export const EncodedTaskRunRequest: msRest.CompositeMapper = { - serializedName: "EncodedTaskRunRequest", +export const DockerBuildRequest: msRest.CompositeMapper = { + serializedName: "DockerBuildRequest", type: { name: "Composite", polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, uberParent: "RunRequest", - className: "EncodedTaskRunRequest", + className: "DockerBuildRequest", modelProperties: { ...RunRequest.type.modelProperties, - encodedTaskContent: { + imageNames: { + serializedName: "imageNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isPushEnabled: { + serializedName: "isPushEnabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + noCache: { + serializedName: "noCache", + defaultValue: false, + type: { + name: "Boolean" + } + }, + dockerFilePath: { required: true, - serializedName: "encodedTaskContent", + serializedName: "dockerFilePath", type: { name: "String" } }, - encodedValuesContent: { - serializedName: "encodedValuesContent", + target: { + serializedName: "target", type: { name: "String" } }, - values: { - serializedName: "values", + argumentsProperty: { + serializedName: "arguments", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SetValue" + className: "Argument" } } } @@ -4327,78 +4978,46 @@ export const EncodedTaskRunRequest: msRest.CompositeMapper = { } }; -export const DockerBuildStep: msRest.CompositeMapper = { - serializedName: "Docker", +export const SetValue: msRest.CompositeMapper = { + serializedName: "SetValue", type: { name: "Composite", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, - uberParent: "TaskStepProperties", - className: "DockerBuildStep", + className: "SetValue", modelProperties: { - ...TaskStepProperties.type.modelProperties, - imageNames: { - serializedName: "imageNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isPushEnabled: { - serializedName: "isPushEnabled", - defaultValue: true, - type: { - name: "Boolean" - } - }, - noCache: { - serializedName: "noCache", - defaultValue: false, - type: { - name: "Boolean" - } - }, - dockerFilePath: { + name: { required: true, - serializedName: "dockerFilePath", + serializedName: "name", type: { name: "String" } }, - target: { - serializedName: "target", + value: { + required: true, + serializedName: "value", type: { name: "String" } }, - argumentsProperty: { - serializedName: "arguments", + isSecret: { + serializedName: "isSecret", + defaultValue: false, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Argument" - } - } + name: "Boolean" } } } } }; -export const FileTaskStep: msRest.CompositeMapper = { - serializedName: "FileTask", +export const FileTaskRunRequest: msRest.CompositeMapper = { + serializedName: "FileTaskRunRequest", type: { name: "Composite", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, - uberParent: "TaskStepProperties", - className: "FileTaskStep", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + uberParent: "RunRequest", + className: "FileTaskRunRequest", modelProperties: { - ...TaskStepProperties.type.modelProperties, + ...RunRequest.type.modelProperties, taskFilePath: { required: true, serializedName: "taskFilePath", @@ -4423,83 +5042,64 @@ export const FileTaskStep: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const EncodedTaskStep: msRest.CompositeMapper = { - serializedName: "EncodedTask", - type: { - name: "Composite", - polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, - uberParent: "TaskStepProperties", - className: "EncodedTaskStep", - modelProperties: { - ...TaskStepProperties.type.modelProperties, - encodedTaskContent: { - required: true, - serializedName: "encodedTaskContent", + }, + timeout: { + serializedName: "timeout", + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, type: { - name: "String" + name: "Number" } }, - encodedValuesContent: { - serializedName: "encodedValuesContent", + platform: { + required: true, + serializedName: "platform", type: { - name: "String" + name: "Composite", + className: "PlatformProperties" } }, - values: { - serializedName: "values", + agentConfiguration: { + serializedName: "agentConfiguration", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } + name: "Composite", + className: "AgentProperties" } - } - } - } -}; - -export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = { - serializedName: "Docker", - type: { - name: "Composite", - polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, - uberParent: "TaskStepUpdateParameters", - className: "DockerBuildStepUpdateParameters", - modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, - imageNames: { - serializedName: "imageNames", + }, + sourceLocation: { + serializedName: "sourceLocation", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - isPushEnabled: { - serializedName: "isPushEnabled", + credentials: { + serializedName: "credentials", type: { - name: "Boolean" + name: "Composite", + className: "Credentials" } - }, - noCache: { - serializedName: "noCache", + } + } + } +}; + +export const OverrideTaskStepProperties: msRest.CompositeMapper = { + serializedName: "OverrideTaskStepProperties", + type: { + name: "Composite", + className: "OverrideTaskStepProperties", + modelProperties: { + contextPath: { + serializedName: "contextPath", type: { - name: "Boolean" + name: "String" } }, - dockerFilePath: { - serializedName: "dockerFilePath", + file: { + serializedName: "file", type: { name: "String" } @@ -4521,58 +5121,67 @@ export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = { type: { name: "String" } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } + } + }, + updateTriggerToken: { + serializedName: "updateTriggerToken", + type: { + name: "String" + } } } } }; -export const FileTaskStepUpdateParameters: msRest.CompositeMapper = { - serializedName: "FileTask", +export const TaskRunRequest: msRest.CompositeMapper = { + serializedName: "TaskRunRequest", type: { name: "Composite", - polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, - uberParent: "TaskStepUpdateParameters", - className: "FileTaskStepUpdateParameters", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + uberParent: "RunRequest", + className: "TaskRunRequest", modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, - taskFilePath: { - serializedName: "taskFilePath", - type: { - name: "String" - } - }, - valuesFilePath: { - serializedName: "valuesFilePath", + ...RunRequest.type.modelProperties, + taskId: { + required: true, + serializedName: "taskId", type: { name: "String" } }, - values: { - serializedName: "values", + overrideTaskStepProperties: { + serializedName: "overrideTaskStepProperties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SetValue" - } - } + name: "Composite", + className: "OverrideTaskStepProperties" } } } } }; -export const EncodedTaskStepUpdateParameters: msRest.CompositeMapper = { - serializedName: "EncodedTask", +export const EncodedTaskRunRequest: msRest.CompositeMapper = { + serializedName: "EncodedTaskRunRequest", type: { name: "Composite", - polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, - uberParent: "TaskStepUpdateParameters", - className: "EncodedTaskStepUpdateParameters", + polymorphicDiscriminator: RunRequest.type.polymorphicDiscriminator, + uberParent: "RunRequest", + className: "EncodedTaskRunRequest", modelProperties: { - ...TaskStepUpdateParameters.type.modelProperties, + ...RunRequest.type.modelProperties, encodedTaskContent: { + required: true, serializedName: "encodedTaskContent", type: { name: "String" @@ -4595,75 +5204,61 @@ export const EncodedTaskStepUpdateParameters: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const ScopeMap: msRest.CompositeMapper = { - serializedName: "ScopeMap", - type: { - name: "Composite", - className: "ScopeMap", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + timeout: { + serializedName: "timeout", + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, type: { - name: "String" + name: "Number" } }, - scopeMapType: { - readOnly: true, - serializedName: "properties.type", + platform: { + required: true, + serializedName: "platform", type: { - name: "String" + name: "Composite", + className: "PlatformProperties" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + agentConfiguration: { + serializedName: "agentConfiguration", type: { - name: "DateTime" + name: "Composite", + className: "AgentProperties" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + sourceLocation: { + serializedName: "sourceLocation", type: { name: "String" } }, - actions: { - required: true, - serializedName: "properties.actions", + credentials: { + serializedName: "credentials", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "Credentials" } } } } }; -export const ScopeMapUpdateParameters: msRest.CompositeMapper = { - serializedName: "ScopeMapUpdateParameters", +export const DockerBuildStep: msRest.CompositeMapper = { + serializedName: "Docker", type: { name: "Composite", - className: "ScopeMapUpdateParameters", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + uberParent: "TaskStepProperties", + className: "DockerBuildStep", modelProperties: { - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - actions: { - serializedName: "properties.actions", + ...TaskStepProperties.type.modelProperties, + imageNames: { + serializedName: "imageNames", type: { name: "Sequence", element: { @@ -4672,135 +5267,118 @@ export const ScopeMapUpdateParameters: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const ActiveDirectoryObject: msRest.CompositeMapper = { - serializedName: "ActiveDirectoryObject", - type: { - name: "Composite", - className: "ActiveDirectoryObject", - modelProperties: { - objectId: { - serializedName: "objectId", - type: { - name: "String" - } }, - tenantId: { - serializedName: "tenantId", + isPushEnabled: { + serializedName: "isPushEnabled", + defaultValue: true, type: { - name: "String" + name: "Boolean" } - } - } - } -}; - -export const TokenCertificate: msRest.CompositeMapper = { - serializedName: "TokenCertificate", - type: { - name: "Composite", - className: "TokenCertificate", - modelProperties: { - name: { - serializedName: "name", + }, + noCache: { + serializedName: "noCache", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - expiry: { - serializedName: "expiry", + dockerFilePath: { + required: true, + serializedName: "dockerFilePath", type: { - name: "DateTime" + name: "String" } }, - thumbprint: { - serializedName: "thumbprint", + target: { + serializedName: "target", type: { name: "String" } }, - encodedPemCertificate: { - serializedName: "encodedPemCertificate", + argumentsProperty: { + serializedName: "arguments", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } } } } } }; -export const TokenPassword: msRest.CompositeMapper = { - serializedName: "TokenPassword", +export const FileTaskStep: msRest.CompositeMapper = { + serializedName: "FileTask", type: { name: "Composite", - className: "TokenPassword", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + uberParent: "TaskStepProperties", + className: "FileTaskStep", modelProperties: { - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - expiry: { - serializedName: "expiry", + ...TaskStepProperties.type.modelProperties, + taskFilePath: { + required: true, + serializedName: "taskFilePath", type: { - name: "DateTime" + name: "String" } }, - name: { - serializedName: "name", + valuesFilePath: { + serializedName: "valuesFilePath", type: { name: "String" } }, - value: { - readOnly: true, - serializedName: "value", + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } } } } } }; -export const TokenCredentialsProperties: msRest.CompositeMapper = { - serializedName: "TokenCredentialsProperties", +export const EncodedTaskStep: msRest.CompositeMapper = { + serializedName: "EncodedTask", type: { name: "Composite", - className: "TokenCredentialsProperties", + polymorphicDiscriminator: TaskStepProperties.type.polymorphicDiscriminator, + uberParent: "TaskStepProperties", + className: "EncodedTaskStep", modelProperties: { - activeDirectoryObject: { - serializedName: "activeDirectoryObject", + ...TaskStepProperties.type.modelProperties, + encodedTaskContent: { + required: true, + serializedName: "encodedTaskContent", type: { - name: "Composite", - className: "ActiveDirectoryObject" + name: "String" } }, - certificates: { - serializedName: "certificates", + encodedValuesContent: { + serializedName: "encodedValuesContent", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenCertificate" - } - } + name: "String" } }, - passwords: { - serializedName: "passwords", + values: { + serializedName: "values", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenPassword" + className: "SetValue" } } } @@ -4809,42 +5387,58 @@ export const TokenCredentialsProperties: msRest.CompositeMapper = { } }; -export const Token: msRest.CompositeMapper = { - serializedName: "Token", +export const DockerBuildStepUpdateParameters: msRest.CompositeMapper = { + serializedName: "Docker", type: { name: "Composite", - className: "Token", + polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, + uberParent: "TaskStepUpdateParameters", + className: "DockerBuildStepUpdateParameters", modelProperties: { - ...ProxyResource.type.modelProperties, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + ...TaskStepUpdateParameters.type.modelProperties, + imageNames: { + serializedName: "imageNames", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + isPushEnabled: { + serializedName: "isPushEnabled", type: { - name: "String" + name: "Boolean" } }, - scopeMapId: { - serializedName: "properties.scopeMapId", + noCache: { + serializedName: "noCache", + type: { + name: "Boolean" + } + }, + dockerFilePath: { + serializedName: "dockerFilePath", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", + argumentsProperty: { + serializedName: "arguments", type: { - name: "Composite", - className: "TokenCredentialsProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Argument" + } + } } }, - status: { - serializedName: "properties.status", + target: { + serializedName: "target", type: { name: "String" } @@ -4853,86 +5447,103 @@ export const Token: msRest.CompositeMapper = { } }; -export const TokenUpdateParameters: msRest.CompositeMapper = { - serializedName: "TokenUpdateParameters", +export const FileTaskStepUpdateParameters: msRest.CompositeMapper = { + serializedName: "FileTask", type: { name: "Composite", - className: "TokenUpdateParameters", + polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, + uberParent: "TaskStepUpdateParameters", + className: "FileTaskStepUpdateParameters", modelProperties: { - scopeMapId: { - serializedName: "properties.scopeMapId", + ...TaskStepUpdateParameters.type.modelProperties, + taskFilePath: { + serializedName: "taskFilePath", type: { name: "String" } }, - status: { - serializedName: "properties.status", + valuesFilePath: { + serializedName: "valuesFilePath", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", + values: { + serializedName: "values", type: { - name: "Composite", - className: "TokenCredentialsProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } } } } } }; -export const GenerateCredentialsParameters: msRest.CompositeMapper = { - serializedName: "GenerateCredentialsParameters", +export const EncodedTaskStepUpdateParameters: msRest.CompositeMapper = { + serializedName: "EncodedTask", type: { name: "Composite", - className: "GenerateCredentialsParameters", + polymorphicDiscriminator: TaskStepUpdateParameters.type.polymorphicDiscriminator, + uberParent: "TaskStepUpdateParameters", + className: "EncodedTaskStepUpdateParameters", modelProperties: { - tokenId: { - serializedName: "tokenId", + ...TaskStepUpdateParameters.type.modelProperties, + encodedTaskContent: { + serializedName: "encodedTaskContent", type: { name: "String" } }, - expiry: { - serializedName: "expiry", + encodedValuesContent: { + serializedName: "encodedValuesContent", type: { - name: "DateTime" + name: "String" } }, - name: { - serializedName: "name", + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SetValue" + } + } } } } } }; -export const GenerateCredentialsResult: msRest.CompositeMapper = { - serializedName: "GenerateCredentialsResult", +export const ConnectedRegistryListResult: msRest.CompositeMapper = { + serializedName: "ConnectedRegistryListResult", type: { name: "Composite", - className: "GenerateCredentialsResult", + className: "ConnectedRegistryListResult", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - passwords: { - serializedName: "passwords", + value: { + serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenPassword" + className: "ConnectedRegistry" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } @@ -5162,11 +5773,11 @@ export const ReplicationListResult: msRest.CompositeMapper = { } }; -export const WebhookListResult: msRest.CompositeMapper = { - serializedName: "WebhookListResult", +export const ScopeMapListResult: msRest.CompositeMapper = { + serializedName: "ScopeMapListResult", type: { name: "Composite", - className: "WebhookListResult", + className: "ScopeMapListResult", modelProperties: { value: { serializedName: "", @@ -5175,7 +5786,7 @@ export const WebhookListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Webhook" + className: "ScopeMap" } } } @@ -5190,11 +5801,11 @@ export const WebhookListResult: msRest.CompositeMapper = { } }; -export const EventListResult: msRest.CompositeMapper = { - serializedName: "EventListResult", +export const TokenListResult: msRest.CompositeMapper = { + serializedName: "TokenListResult", type: { name: "Composite", - className: "EventListResult", + className: "TokenListResult", modelProperties: { value: { serializedName: "", @@ -5203,7 +5814,7 @@ export const EventListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Event" + className: "Token" } } } @@ -5218,11 +5829,11 @@ export const EventListResult: msRest.CompositeMapper = { } }; -export const AgentPoolListResult: msRest.CompositeMapper = { - serializedName: "AgentPoolListResult", +export const WebhookListResult: msRest.CompositeMapper = { + serializedName: "WebhookListResult", type: { name: "Composite", - className: "AgentPoolListResult", + className: "WebhookListResult", modelProperties: { value: { serializedName: "", @@ -5231,7 +5842,7 @@ export const AgentPoolListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" + className: "Webhook" } } } @@ -5246,11 +5857,11 @@ export const AgentPoolListResult: msRest.CompositeMapper = { } }; -export const RunListResult: msRest.CompositeMapper = { - serializedName: "RunListResult", +export const EventListResult: msRest.CompositeMapper = { + serializedName: "EventListResult", type: { name: "Composite", - className: "RunListResult", + className: "EventListResult", modelProperties: { value: { serializedName: "", @@ -5259,7 +5870,7 @@ export const RunListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Run" + className: "Event" } } } @@ -5274,11 +5885,11 @@ export const RunListResult: msRest.CompositeMapper = { } }; -export const TaskRunListResult: msRest.CompositeMapper = { - serializedName: "TaskRunListResult", +export const AgentPoolListResult: msRest.CompositeMapper = { + serializedName: "AgentPoolListResult", type: { name: "Composite", - className: "TaskRunListResult", + className: "AgentPoolListResult", modelProperties: { value: { serializedName: "", @@ -5287,7 +5898,7 @@ export const TaskRunListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "TaskRun" + className: "AgentPool" } } } @@ -5302,11 +5913,11 @@ export const TaskRunListResult: msRest.CompositeMapper = { } }; -export const TaskListResult: msRest.CompositeMapper = { - serializedName: "TaskListResult", +export const RunListResult: msRest.CompositeMapper = { + serializedName: "RunListResult", type: { name: "Composite", - className: "TaskListResult", + className: "RunListResult", modelProperties: { value: { serializedName: "", @@ -5315,7 +5926,7 @@ export const TaskListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Task" + className: "Run" } } } @@ -5330,11 +5941,11 @@ export const TaskListResult: msRest.CompositeMapper = { } }; -export const ScopeMapListResult: msRest.CompositeMapper = { - serializedName: "ScopeMapListResult", +export const TaskRunListResult: msRest.CompositeMapper = { + serializedName: "TaskRunListResult", type: { name: "Composite", - className: "ScopeMapListResult", + className: "TaskRunListResult", modelProperties: { value: { serializedName: "", @@ -5343,7 +5954,7 @@ export const ScopeMapListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ScopeMap" + className: "TaskRun" } } } @@ -5358,11 +5969,11 @@ export const ScopeMapListResult: msRest.CompositeMapper = { } }; -export const TokenListResult: msRest.CompositeMapper = { - serializedName: "TokenListResult", +export const TaskListResult: msRest.CompositeMapper = { + serializedName: "TaskListResult", type: { name: "Composite", - className: "TokenListResult", + className: "TaskListResult", modelProperties: { value: { serializedName: "", @@ -5371,7 +5982,7 @@ export const TokenListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Token" + className: "Task" } } } diff --git a/sdk/containerregistry/arm-containerregistry/src/models/operationsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/operationsMappers.ts index 3c46c8651118..a94a27794e6f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/operationsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -12,6 +12,7 @@ export { OperationDefinition, OperationDisplayDefinition, OperationListResult, + OperationLogSpecificationDefinition, OperationMetricSpecificationDefinition, OperationServiceSpecificationDefinition } from "../models/mappers"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index e4868d2a59ba..9797097ef85f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -41,7 +40,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-12-01-preview', + defaultValue: '2020-11-01-preview', type: { name: "String" } @@ -59,13 +58,16 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; -export const apiVersion2: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", +export const connectedRegistryName: msRest.OperationURLParameter = { + parameterPath: "connectedRegistryName", mapper: { required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2019-05-01-preview', + serializedName: "connectedRegistryName", + constraints: { + MaxLength: 50, + MinLength: 5, + Pattern: /^[a-zA-Z0-9]*$/ + }, type: { name: "String" } @@ -247,6 +249,11 @@ export const taskRunName: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "taskRunName", + constraints: { + MaxLength: 50, + MinLength: 5, + Pattern: /^[a-zA-Z0-9-]*$/ + }, type: { name: "String" } diff --git a/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts index a6f9593651eb..77b4d941b08d 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -35,8 +36,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunListResult, PipelineRunRequest, @@ -70,13 +74,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts index a80e3a458518..253866cbea9e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -35,8 +36,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,13 +74,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts index 2d41555b3437..1e4e5e15ee3f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -43,8 +44,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -89,13 +93,17 @@ export { SourceTriggerDescriptor, SourceUploadDefinition, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts index 2971c20b9be4..502565c3b21e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -35,8 +36,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,13 +75,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts index 21a5b72c9e7e..55ead03d2848 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -16,6 +16,7 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -37,8 +38,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -74,13 +78,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts index c6811c5044b7..98185bb7e8c1 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -35,8 +36,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,13 +75,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts index 9793b8c421b5..bd9405aaafa0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -16,6 +16,7 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -37,8 +38,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,7 +75,9 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunListResult, @@ -80,6 +86,8 @@ export { TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts index d08d5820c381..3a3230c0b980 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -18,6 +18,7 @@ export { BaseImageTrigger, BaseImageTriggerUpdateParameters, BaseResource, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -42,8 +43,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -79,7 +83,9 @@ export { SourceTriggerUpdateParameters, SourceUpdateParameters, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskListResult, TaskRun, @@ -90,6 +96,8 @@ export { TimerTrigger, TimerTriggerDescriptor, TimerTriggerUpdateParameters, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts index ad7360923d51..2e274ddb779d 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,6 +17,7 @@ export { BaseImageTrigger, BaseResource, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -35,8 +36,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -69,13 +73,17 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunRequest, TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts index 8da5ba555d8a..37ef99ac9622 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -8,7 +8,7 @@ export { discriminators, - ActiveDirectoryObject, + ActivationProperties, Actor, AgentPool, AgentProperties, @@ -19,6 +19,7 @@ export { BaseResource, CallbackConfig, CloudError, + ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -43,8 +44,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -79,7 +83,9 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Target, Task, TaskRun, @@ -87,6 +93,8 @@ export { TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, + TlsCertificateProperties, + TlsProperties, Token, TokenCertificate, TokenCredentialsProperties, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts index 8a3c1081509d..4dd0e6d83ff5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/agentPools.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -449,6 +448,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts new file mode 100644 index 000000000000..29ec69cb5bbf --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts @@ -0,0 +1,464 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/connectedRegistriesMappers"; +import * as Parameters from "../models/parameters"; +import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; + +/** Class representing a ConnectedRegistries. */ +export class ConnectedRegistries { + private readonly client: ContainerRegistryManagementClientContext; + + /** + * Create a ConnectedRegistries. + * @param {ContainerRegistryManagementClientContext} client Reference to the service client. + */ + constructor(client: ContainerRegistryManagementClientContext) { + this.client = client; + } + + /** + * Gets the properties of the connected registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param callback The callback + */ + get(resourceGroupName: string, registryName: string, connectedRegistryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, registryName: string, connectedRegistryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + connectedRegistryName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param [options] The optional parameters + * @returns Promise + */ + create(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryCreateParameters: Models.ConnectedRegistry, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreate(resourceGroupName,registryName,connectedRegistryName,connectedRegistryCreateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,registryName,connectedRegistryName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryUpdateParameters: Models.ConnectedRegistryUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,registryName,connectedRegistryName,connectedRegistryUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Lists all connected registries for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: Models.ConnectedRegistriesListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: Models.ConnectedRegistriesListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: Models.ConnectedRegistriesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param [options] The optional parameters + * @returns Promise + */ + deactivate(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeactivate(resourceGroupName,registryName,connectedRegistryName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Creates a connected registry for a container registry with the specified parameters. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryCreateParameters The parameters for creating a connectedRegistry. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreate(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryCreateParameters: Models.ConnectedRegistry, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryCreateParameters, + options + }, + beginCreateOperationSpec, + options); + } + + /** + * Deletes a connected registry from a container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + registryName, + connectedRegistryName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Updates a connected registry with the specified parameters. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param connectedRegistryUpdateParameters The parameters for updating a connectedRegistry. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, registryName: string, connectedRegistryName: string, connectedRegistryUpdateParameters: Models.ConnectedRegistryUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + registryName, + connectedRegistryName, + connectedRegistryUpdateParameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Deactivates the connected registry instance. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param connectedRegistryName The name of the connected registry. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeactivate(resourceGroupName: string, registryName: string, connectedRegistryName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + registryName, + connectedRegistryName, + options + }, + beginDeactivateOperationSpec, + options); + } + + /** + * Lists all connected registries for the specified container registry. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(nextPageLink: string, options?: Models.ConnectedRegistriesListNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listNext(nextPageLink: string, options: Models.ConnectedRegistriesListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ConnectedRegistriesListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistryListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginCreateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectedRegistryCreateParameters", + mapper: { + ...Mappers.ConnectedRegistry, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + 201: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "connectedRegistryUpdateParameters", + mapper: { + ...Mappers.ConnectedRegistryUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistry + }, + 201: { + bodyMapper: Mappers.ConnectedRegistry + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginDeactivateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}/deactivate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.connectedRegistryName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion0, + Parameters.filter + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ConnectedRegistryListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts index c952f9f78504..d6f5b6f0537a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -315,6 +314,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts index 0c9b947fbb4f..97715b931a7f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -315,6 +314,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts index 3ddd95ccd214..2a0d142c45b5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -1,13 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ +export * from "./connectedRegistries"; export * from "./exportPipelines"; export * from "./registries"; export * from "./importPipelines"; @@ -15,10 +15,10 @@ export * from "./operations"; export * from "./pipelineRuns"; export * from "./privateEndpointConnections"; export * from "./replications"; +export * from "./scopeMaps"; +export * from "./tokens"; export * from "./webhooks"; export * from "./agentPools"; export * from "./runs"; export * from "./taskRuns"; export * from "./tasks"; -export * from "./scopeMaps"; -export * from "./tokens"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts b/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts index f3336832e747..5ccee4a0948a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts index 5802c113fb40..af27653cf2e3 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -315,6 +314,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts index e38c5f5c96f9..207016f80dd7 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -317,6 +316,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index d924ab5b4c41..01b19b81e1f4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -326,6 +325,19 @@ export class Registries { callback) as Promise; } + /** + * Generate keys for a token of a specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param generateCredentialsParameters The parameters for generating credentials. + * @param [options] The optional parameters + * @returns Promise + */ + generateCredentials(resourceGroupName: string, registryName: string, generateCredentialsParameters: Models.GenerateCredentialsParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginGenerateCredentials(resourceGroupName,registryName,generateCredentialsParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Schedules a new run based on the request parameters and add it to the run queue. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -371,19 +383,6 @@ export class Registries { callback) as Promise; } - /** - * Generate keys for a token of a specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param generateCredentialsParameters The parameters for generating credentials. - * @param [options] The optional parameters - * @returns Promise - */ - generateCredentials(resourceGroupName: string, registryName: string, generateCredentialsParameters: Models.GenerateCredentialsParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginGenerateCredentials(resourceGroupName,registryName,generateCredentialsParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - /** * Copies an image to this container registry from the specified container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -463,42 +462,42 @@ export class Registries { } /** - * Schedules a new run based on the request parameters and add it to the run queue. + * Generate keys for a token of a specified container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param runRequest The parameters of a run that needs to scheduled. + * @param generateCredentialsParameters The parameters for generating credentials. * @param [options] The optional parameters * @returns Promise */ - beginScheduleRun(resourceGroupName: string, registryName: string, runRequest: Models.RunRequestUnion, options?: msRest.RequestOptionsBase): Promise { + beginGenerateCredentials(resourceGroupName: string, registryName: string, generateCredentialsParameters: Models.GenerateCredentialsParameters, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, registryName, - runRequest, + generateCredentialsParameters, options }, - beginScheduleRunOperationSpec, + beginGenerateCredentialsOperationSpec, options); } /** - * Generate keys for a token of a specified container registry. + * Schedules a new run based on the request parameters and add it to the run queue. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param generateCredentialsParameters The parameters for generating credentials. + * @param runRequest The parameters of a run that needs to scheduled. * @param [options] The optional parameters * @returns Promise */ - beginGenerateCredentials(resourceGroupName: string, registryName: string, generateCredentialsParameters: Models.GenerateCredentialsParameters, options?: msRest.RequestOptionsBase): Promise { + beginScheduleRun(resourceGroupName: string, registryName: string, runRequest: Models.RunRequestUnion, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, registryName, - generateCredentialsParameters, + runRequest, options }, - beginGenerateCredentialsOperationSpec, + beginScheduleRunOperationSpec, options); } @@ -949,67 +948,67 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const beginScheduleRunOperationSpec: msRest.OperationSpec = { +const beginGenerateCredentialsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.registryName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], requestBody: { - parameterPath: "runRequest", + parameterPath: "generateCredentialsParameters", mapper: { - ...Mappers.RunRequest, + ...Mappers.GenerateCredentialsParameters, required: true } }, responses: { 200: { - bodyMapper: Mappers.Run + bodyMapper: Mappers.GenerateCredentialsResult }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer }; -const beginGenerateCredentialsOperationSpec: msRest.OperationSpec = { +const beginScheduleRunOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.registryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage ], requestBody: { - parameterPath: "generateCredentialsParameters", + parameterPath: "runRequest", mapper: { - ...Mappers.GenerateCredentialsParameters, + ...Mappers.RunRequest, required: true } }, responses: { 200: { - bodyMapper: Mappers.GenerateCredentialsResult + bodyMapper: Mappers.Run }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1022,6 +1021,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1043,6 +1045,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1064,6 +1069,9 @@ const listPrivateLinkResourcesNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts index 81ce0b1451ba..1892af4f6d46 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/replications.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -387,6 +386,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts index c0da70dd209a..16a9fcc29435 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/runs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -206,7 +205,7 @@ export class Runs { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.RunsListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -217,8 +216,8 @@ export class Runs { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.RunsListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.RunsListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -378,6 +377,11 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts index 9c89ef449eeb..b04f6e4a112f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.scopeMapName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.registryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +291,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.scopeMapName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -328,7 +327,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.scopeMapName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -354,7 +353,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.scopeMapName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -387,6 +386,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts index 91eb0fb2a635..e35838c33e4e 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/taskRuns.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -31,7 +30,7 @@ export class TaskRuns { * Gets the detailed information for a given task run. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param [options] The optional parameters * @returns Promise */ @@ -39,14 +38,14 @@ export class TaskRuns { /** * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param callback The callback */ get(resourceGroupName: string, registryName: string, taskRunName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param options The optional parameters * @param callback The callback */ @@ -67,7 +66,7 @@ export class TaskRuns { * Creates a task run for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The name of task run. + * @param taskRunName The name of the task run. * @param taskRun The parameters of a run that needs to scheduled. * @param [options] The optional parameters * @returns Promise @@ -81,7 +80,7 @@ export class TaskRuns { * Deletes a specified task run resource. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The task run name. + * @param taskRunName The name of the task run. * @param [options] The optional parameters * @returns Promise */ @@ -94,7 +93,7 @@ export class TaskRuns { * Updates a task run with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The task run name. + * @param taskRunName The name of the task run. * @param updateParameters The parameters for updating a task run. * @param [options] The optional parameters * @returns Promise @@ -108,7 +107,7 @@ export class TaskRuns { * Gets the detailed information for a given task run that includes all secrets. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param [options] The optional parameters * @returns Promise */ @@ -116,14 +115,14 @@ export class TaskRuns { /** * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param callback The callback */ getDetails(resourceGroupName: string, registryName: string, taskRunName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The run request name. + * @param taskRunName The name of the task run. * @param options The optional parameters * @param callback The callback */ @@ -176,7 +175,7 @@ export class TaskRuns { * Creates a task run for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The name of task run. + * @param taskRunName The name of the task run. * @param taskRun The parameters of a run that needs to scheduled. * @param [options] The optional parameters * @returns Promise @@ -198,7 +197,7 @@ export class TaskRuns { * Deletes a specified task run resource. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The task run name. + * @param taskRunName The name of the task run. * @param [options] The optional parameters * @returns Promise */ @@ -218,7 +217,7 @@ export class TaskRuns { * Updates a task run with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. - * @param taskRunName The task run name. + * @param taskRunName The name of the task run. * @param updateParameters The parameters for updating a task run. * @param [options] The optional parameters * @returns Promise @@ -449,6 +448,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts index b4e7ac93d557..6df0f1eb4259 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tasks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -449,6 +448,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion1 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts index 3a141523baaf..80f3a1e979c0 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -241,7 +240,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.tokenName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -266,7 +265,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.registryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +291,7 @@ const beginCreateOperationSpec: msRest.OperationSpec = { Parameters.tokenName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -328,7 +327,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.tokenName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -354,7 +353,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.tokenName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -387,6 +386,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts index 97a6a388abf8..d261329c0a81 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/webhooks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -601,6 +600,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -622,6 +624,9 @@ const listEventsNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ],