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 f4fd8ab3ba79..f7f335918d1a 100644 --- a/sdk/containerregistry/arm-containerregistry/README.md +++ b/sdk/containerregistry/arm-containerregistry/README.md @@ -1,11 +1,11 @@ ## Azure ContainerRegistryManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for ContainerRegistryManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for ContainerRegistryManagementClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-containerregistry @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,8 +36,7 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - -#### nodejs - Authentication, client creation, and get exportPipelines as an example written in JavaScript. +#### nodejs - Authentication, client creation, and list connectedRegistries as an example written in JavaScript. ##### Sample code @@ -53,8 +51,8 @@ const creds = new DefaultAzureCredential(); const client = new ContainerRegistryManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const registryName = "testregistryName"; -const exportPipelineName = "testexportPipelineName"; -client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => { +const filter = "testfilter"; +client.connectedRegistries.list(resourceGroupName, registryName, filter).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -63,7 +61,7 @@ client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName). }); ``` -#### browser - Authentication, client creation, and get exportPipelines as an example written in JavaScript. +#### browser - Authentication, client creation, and list connectedRegistries as an example written in JavaScript. In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. @@ -88,13 +86,13 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmContainerregistry.ContainerRegistryManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const registryName = "testregistryName"; - const exportPipelineName = "testexportPipelineName"; - client.exportPipelines.get(resourceGroupName, registryName, exportPipelineName).then((result) => { + const filter = "testfilter"; + client.connectedRegistries.list(resourceGroupName, registryName, filter).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { diff --git a/sdk/containerregistry/arm-containerregistry/package.json b/sdk/containerregistry/arm-containerregistry/package.json index a39ed6f0caef..e65ee5eb8abd 100644 --- a/sdk/containerregistry/arm-containerregistry/package.json +++ b/sdk/containerregistry/arm-containerregistry/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/containerregistry/arm-containerregistry", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/containerregistry/arm-containerregistry", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" 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 0a3143427278..2e187409f719 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 @@ -18,6 +17,7 @@ import { ContainerRegistryManagementClientContext } from "./containerRegistryMan class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext { // Operation groups + connectedRegistries: operations.ConnectedRegistries; exportPipelines: operations.ExportPipelines; registries: operations.Registries; importPipelines: operations.ImportPipelines; @@ -25,13 +25,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. @@ -46,6 +46,7 @@ class ContainerRegistryManagementClient extends ContainerRegistryManagementClien */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, 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); @@ -53,13 +54,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 da704dd55937..908c5e88c17c 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 @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-containerregistry"; const packageVersion = "8.1.1"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts index 154994c867f0..b8cd6d37f474 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, @@ -30,6 +31,7 @@ export { ErrorResponseBody, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -40,8 +42,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -74,13 +79,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..22b0218938f0 --- /dev/null +++ b/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts @@ -0,0 +1,102 @@ +/* + * 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, + ExportPolicy, + 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..e502fa093f0f 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, @@ -27,6 +28,7 @@ export { ExportPipeline, ExportPipelineListResult, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -36,8 +38,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,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/importPipelinesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts index 06141ad4dce9..f2870242a170 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -36,8 +38,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,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/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index 596438e9d934..7b7f0e8ffcab 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,328 @@ 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: 'ReadWrite', 'ReadOnly', '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[]; + /** + * The list of notifications subscription information for the connected registry. + */ + notificationsList?: string[]; +} + +/** + * 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[]; + /** + * The list of notifications subscription information for the connected registry. + */ + notificationsList?: string[]; +} + /** * An interface representing UserIdentityProperties. */ @@ -72,10 +394,37 @@ export interface ExportPipelineTargetProperties { } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags. + * An object that represents an export pipeline for a container registry. */ -export interface ProxyResource extends BaseResource { +export interface ExportPipeline extends ProxyResource { + /** + * The location of the export pipeline. + */ + location?: string; + /** + * The identity of the export pipeline. + */ + identity?: IdentityProperties; + /** + * The target properties of the export pipeline. + */ + target: ExportPipelineTargetProperties; + /** + * The list of all options configured for the pipeline. + */ + options?: PipelineOptions[]; + /** + * The provisioning state of the pipeline at the time the operation was called. Possible values + * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * An Azure resource. + */ +export interface Resource extends BaseResource { /** * The resource ID. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -91,30 +440,19 @@ export interface ProxyResource extends BaseResource { * **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 identity of the export pipeline. - */ - identity?: IdentityProperties; - /** - * The target properties of the export pipeline. + * The location of the resource. This cannot be changed after the resource is created. */ - target: ExportPipelineTargetProperties; + location: string; /** - * The list of all options configured for the pipeline. + * The tags of the resource. */ - options?: PipelineOptions[]; + tags?: { [propertyName: string]: string }; /** - * The provisioning state of the pipeline at the time the operation was called. Possible values - * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * 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 provisioningState?: ProvisioningState; + readonly systemData?: SystemData; } /** @@ -227,6 +565,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. */ @@ -252,40 +594,11 @@ export interface ImportPipeline extends ProxyResource { } /** - * A request to check whether a container registry name is available. + * The display information for a container registry operation. */ -export interface RegistryNameCheckRequest { +export interface OperationDisplayDefinition { /** - * The name of the container registry. - */ - name: string; -} - -/** - * The result of a request to check the availability of a container registry name. - */ -export interface RegistryNameStatus { - /** - * The value that indicates whether the name is available. - */ - nameAvailable?: boolean; - /** - * If any, the reason that the name is not available. - */ - reason?: string; - /** - * If any, the error message that provides more detail for the reason that the name is not - * available. - */ - message?: string; -} - -/** - * The display information for a container registry operation. - */ -export interface OperationDisplayDefinition { - /** - * The resource provider name: Microsoft.ContainerRegistry. + * The resource provider name: Microsoft.ContainerRegistry. */ provider?: string; /** @@ -332,6 +645,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 +671,10 @@ export interface OperationServiceSpecificationDefinition { * A list of Azure Monitoring metrics definition. */ metricSpecifications?: OperationMetricSpecificationDefinition[]; + /** + * A list of Azure Monitoring log definitions. + */ + logSpecifications?: OperationLogSpecificationDefinition[]; } /** @@ -362,6 +697,41 @@ export interface OperationDefinition { * The definition of Azure Monitoring service. */ serviceSpecification?: OperationServiceSpecificationDefinition; + /** + * This property indicates if the operation is an action or a data action + * ref: + * https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#management-and-data-operations + */ + isDataAction?: boolean; +} + +/** + * A request to check whether a container registry name is available. + */ +export interface RegistryNameCheckRequest { + /** + * The name of the container registry. + */ + name: string; +} + +/** + * The result of a request to check the availability of a container registry name. + */ +export interface RegistryNameStatus { + /** + * The value that indicates whether the name is available. + */ + nameAvailable?: boolean; + /** + * If any, the reason that the name is not available. + */ + reason?: string; + /** + * If any, the error message that provides more detail for the reason that the name is not + * available. + */ + message?: string; } /** @@ -615,16 +985,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. */ @@ -720,6 +1080,17 @@ export interface RetentionPolicy { status?: PolicyStatus; } +/** + * The export policy for a container registry. + */ +export interface ExportPolicy { + /** + * The value that indicates whether the policy is enabled or not. Possible values include: + * 'enabled', 'disabled'. Default value: 'enabled'. + */ + status?: ExportPolicyStatus; +} + /** * The policies for a container registry. */ @@ -736,6 +1107,10 @@ export interface Policies { * The retention policy for a container registry. */ retentionPolicy?: RetentionPolicy; + /** + * The export policy for a container registry. + */ + exportPolicy?: ExportPolicy; } /** @@ -756,6 +1131,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; } /** @@ -773,35 +1158,6 @@ export interface EncryptionProperty { keyVaultProperties?: KeyVaultProperties; } -/** - * An Azure resource. - */ -export interface Resource 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; - /** - * The location of the resource. This cannot be changed after the resource is created. - */ - location: string; - /** - * The tags of the resource. - */ - tags?: { [propertyName: string]: string }; -} - /** * An object that represents a container registry. */ @@ -839,11 +1195,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,12 +1226,30 @@ 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. Default value: false. + */ + anonymousPullEnabled?: boolean; } /** * The parameters for updating a container registry. */ export interface RegistryUpdateParameters { + /** + * The identity of the container registry. + */ + identity?: IdentityProperties; /** * The tags for the container registry. */ @@ -889,10 +1258,6 @@ export interface RegistryUpdateParameters { * 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. */ @@ -900,165 +1265,382 @@ export interface RegistryUpdateParameters { /** * The network rule set for a container registry. */ - networkRuleSet?: NetworkRuleSet; + networkRuleSet?: NetworkRuleSet; + /** + * The policies for a container registry. + */ + policies?: Policies; + /** + * The encryption settings of container registry. + */ + encryption?: EncryptionProperty; + /** + * Enable a single data endpoint per region for serving data. + */ + dataEndpointEnabled?: boolean; + /** + * Whether or not public network access is allowed for the container registry. Possible values + * 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; +} + +/** + * The quota usage for a container registry. + */ +export interface RegistryUsage { + /** + * The name of the usage. + */ + name?: string; + /** + * The limit of the usage. + */ + limit?: number; + /** + * The current value of the usage. + */ + currentValue?: number; + /** + * The unit of measurement. Possible values include: 'Count', 'Bytes' + */ + unit?: RegistryUsageUnit; +} + +/** + * The result of a request to get container registry quota usages. + */ +export interface RegistryUsageListResult { + /** + * The list of container registry quota usages. + */ + value?: RegistryUsage[]; +} + +/** + * A resource that supports private link capabilities. + */ +export interface PrivateLinkResource { + /** + * The resource type is private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The resource ID. + */ + id?: string; + /** + * The name of the resource. + */ + name?: string; + /** + * The private link resource group id. + */ + groupId?: string; + /** + * The private link resource required member names. + */ + requiredMembers?: string[]; + /** + * The private link resource Private link DNS zone name. + */ + requiredZoneNames?: string[]; +} + +/** + * The login password for the container registry. + */ +export interface RegistryPassword { + /** + * The password name. Possible values include: 'password', 'password2' + */ + name?: PasswordName; + /** + * The password value. + */ + value?: string; +} + +/** + * The response from the ListCredentials operation. + */ +export interface RegistryListCredentialsResult { + /** + * The username for a container registry. + */ + username?: string; + /** + * The list of passwords for a container registry. + */ + passwords?: RegistryPassword[]; +} + +/** + * The parameters used to regenerate the login credential. + */ +export interface RegenerateCredentialParameters { + /** + * Specifies name of the password which should be regenerated -- password or password2. Possible + * values include: 'password', 'password2' + */ + name: PasswordName; +} + +/** + * An object that represents a replication for a container registry. + */ +export interface Replication extends Resource { + /** + * The provisioning state of the replication at the time the operation was called. Possible + * values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; + /** + * The status of the replication at the time the operation was called. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: Status; + /** + * Specifies whether the replication's regional endpoint is enabled. Requests will not be routed + * to a replication whose regional endpoint is disabled, however its data will continue to be + * 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; +} + +/** + * The parameters for updating a replication. + */ +export interface ReplicationUpdateParameters { + /** + * The tags for the replication. + */ + tags?: { [propertyName: string]: string }; + /** + * Specifies whether the replication's regional endpoint is enabled. Requests will not be routed + * to a replication whose regional endpoint is disabled, however its data will continue to be + * synced with other replications. + */ + 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 { /** - * The policies for a container registry. + * Possible values include: 'certificate1', 'certificate2' */ - policies?: Policies; + name?: TokenCertificateName; /** - * The encryption settings of container registry. + * The expiry datetime of the certificate. */ - encryption?: EncryptionProperty; + expiry?: Date; /** - * Enable a single data endpoint per region for serving data. + * The thumbprint of the certificate. */ - dataEndpointEnabled?: boolean; + thumbprint?: string; /** - * Whether or not public network access is allowed for the container registry. Possible values - * include: 'Enabled', 'Disabled' + * Base 64 encoded string of the public certificate1 in PEM format that will be used for + * authenticating the token. */ - publicNetworkAccess?: PublicNetworkAccess; + encodedPemCertificate?: string; } /** - * The login password for the container registry. + * The password that will be used for authenticating the token of a container registry. */ -export interface RegistryPassword { +export interface TokenPassword { /** - * The password name. Possible values include: 'password', 'password2' + * The creation datetime of the password. */ - name?: PasswordName; + creationTime?: Date; /** - * The password value. + * The expiry datetime of the password. */ - value?: string; -} - -/** - * The response from the ListCredentials operation. - */ -export interface RegistryListCredentialsResult { + expiry?: Date; /** - * The username for a container registry. + * The password name "password1" or "password2". Possible values include: 'password1', + * 'password2' */ - username?: string; + name?: TokenPasswordName; /** - * The list of passwords for a container registry. + * The password value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - passwords?: RegistryPassword[]; + readonly value?: string; } /** - * The parameters used to regenerate the login credential. + * The properties of the credentials that can be used for authenticating the token. */ -export interface RegenerateCredentialParameters { - /** - * Specifies name of the password which should be regenerated -- password or password2. Possible - * values include: 'password', 'password2' - */ - name: PasswordName; +export interface TokenCredentialsProperties { + certificates?: TokenCertificate[]; + passwords?: TokenPassword[]; } /** - * The quota usage for a container registry. + * An object that represents a token for a container registry. */ -export interface RegistryUsage { +export interface Token extends ProxyResource { /** - * The name of the usage. + * The creation date of scope map. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: string; + readonly creationDate?: Date; /** - * The limit of the usage. + * 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.** */ - limit?: number; + readonly provisioningState?: ProvisioningState; /** - * The current value of the usage. + * The resource ID of the scope map to which the token will be associated with. */ - currentValue?: number; + scopeMapId?: string; /** - * The unit of measurement. Possible values include: 'Count', 'Bytes' + * The credentials that can be used for authenticating the token. */ - unit?: RegistryUsageUnit; -} - -/** - * The result of a request to get container registry quota usages. - */ -export interface RegistryUsageListResult { + credentials?: TokenCredentialsProperties; /** - * The list of container registry quota usages. + * The status of the token example enabled or disabled. Possible values include: 'enabled', + * 'disabled' */ - value?: RegistryUsage[]; + status?: TokenStatus; } /** - * A resource that supports private link capabilities. + * The Active Directory Object that will be used for authenticating the token of a container + * registry. */ -export interface PrivateLinkResource { - /** - * The resource type is private link resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; +export interface ActiveDirectoryObject { /** - * The resource ID. + * The user/group/application object ID for Active Directory Object that will be used for + * authenticating the token of a container registry. */ - id?: string; + objectId?: string; /** - * The name of the resource. + * The tenant ID of user/group/application object Active Directory Object that will be used for + * authenticating the token of a container registry. */ - name?: string; + tenantId?: string; +} + +/** + * The parameters for updating a token. + */ +export interface TokenUpdateParameters { /** - * The private link resource group id. + * The resource ID of the scope map to which the token will be associated with. */ - groupId?: string; + scopeMapId?: string; /** - * The private link resource required member names. + * The status of the token example enabled or disabled. Possible values include: 'enabled', + * 'disabled' */ - requiredMembers?: string[]; + status?: TokenStatus; /** - * The private link resource Private link DNS zone name. + * The credentials that can be used for authenticating the token. */ - requiredZoneNames?: string[]; + credentials?: TokenCredentialsProperties; } /** - * An object that represents a replication for a container registry. + * The parameters used to generate credentials for a specified token or user of a container + * registry. */ -export interface Replication extends Resource { +export interface GenerateCredentialsParameters { /** - * The provisioning state of the replication at the time the operation was called. Possible - * values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource ID of the token for which credentials have to be generated. */ - readonly provisioningState?: ProvisioningState; + tokenId?: string; /** - * The status of the replication at the time the operation was called. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The expiry date of the generated credentials after which the credentials become invalid. */ - readonly status?: Status; + expiry?: Date; /** - * Specifies whether the replication's regional endpoint is enabled. Requests will not be routed - * to a replication whose regional endpoint is disabled, however its data will continue to be - * synced with other replications. Default value: true. + * Specifies name of the password which should be regenerated if any -- password1 or password2. + * Possible values include: 'password1', 'password2' */ - regionEndpointEnabled?: boolean; + name?: TokenPasswordName; } /** - * The parameters for updating a replication. + * The response from the GenerateCredentials operation. */ -export interface ReplicationUpdateParameters { +export interface GenerateCredentialsResult { /** - * The tags for the replication. + * The username for a container registry. */ - tags?: { [propertyName: string]: string }; + username?: string; /** - * Specifies whether the replication's regional endpoint is enabled. Requests will not be routed - * to a replication whose regional endpoint is disabled, however its data will continue to be - * synced with other replications. + * The list of passwords for a container registry. */ - regionEndpointEnabled?: boolean; + passwords?: TokenPassword[]; } /** @@ -1168,20 +1750,6 @@ export interface EventInfo { id?: string; } -/** - * The configuration of service URI and custom headers for the webhook. - */ -export interface CallbackConfig { - /** - * The service URI for the webhook to post notifications. - */ - serviceUri: string; - /** - * Custom headers that will be added to the webhook notifications. - */ - customHeaders?: { [propertyName: string]: string }; -} - /** * The target of the event. */ @@ -1381,6 +1949,70 @@ export interface Event extends EventInfo { eventResponseMessage?: EventResponseMessage; } +/** + * The configuration of service URI and custom headers for the webhook. + */ +export interface CallbackConfig { + /** + * The service URI for the webhook to post notifications. + */ + serviceUri: string; + /** + * Custom headers that will be added to the webhook notifications. + */ + customHeaders?: { [propertyName: string]: string }; +} + +/** + * inner error. + */ +export interface InnerErrorDescription { + /** + * error code. + */ + code: string; + /** + * error message. + */ + message: string; + /** + * target of the particular error. + */ + target?: string; +} + +/** + * An error response from the Azure Container Registry service. + */ +export interface ErrorResponseBody { + /** + * 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. + */ + error?: ErrorResponseBody; +} + /** * The agentpool that has the ARM resource and properties. * The agentpool will have all information to create an agent pool. @@ -1455,7 +2087,11 @@ export interface RunRequest { /** * The dedicated agent pool for the run. */ - agentPoolName?: string; + agentPoolName?: string; + /** + * The template that describes the repository and tag information for run log artifact. + */ + logTemplate?: string; } /** @@ -1658,6 +2294,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 +2387,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 +2421,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 +2443,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 +2744,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 +2760,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 +2769,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 +3002,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. - */ - message: string; - /** - * target of the particular error. - */ - target?: string; -} - -/** - * An error response from the Azure Container Registry service. - */ -export interface ErrorResponseBody { - /** - * 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. + * The template that describes the repository and tag information for run log artifact. */ - details?: InnerErrorDescription; -} - -/** - * An error response from the Azure Container Registry service. - */ -export interface ErrorResponse { + logTemplate?: string; /** - * Azure container registry build API error body. + * The ARM resource tags. */ - error?: ErrorResponseBody; + tags?: { [propertyName: string]: string }; } /** @@ -2431,6 +3047,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 +3137,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 +3226,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 +3257,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 +3527,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; +export interface ConnectedRegistriesListNextOptionalParams extends msRest.RequestOptionsBase { /** - * 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' + * 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 +3587,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 +3695,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 +3792,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'; /** - * @interface - * The result of a request to list tokens for a container registry. - * @extends Array + * Defines values for ConnectedRegistryMode. + * Possible values include: 'ReadWrite', 'ReadOnly', 'Registry', 'Mirror' + * @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 ConnectedRegistryMode = 'ReadWrite' | 'ReadOnly' | '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'; + +/** + * Defines values for LastModifiedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type LastModifiedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** * Defines values for ResourceIdentityType. @@ -3330,14 +3889,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' @@ -3442,6 +3993,14 @@ export type PolicyStatus = 'enabled' | 'disabled'; */ export type TrustPolicyType = 'Notary'; +/** + * Defines values for ExportPolicyStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} + */ +export type ExportPolicyStatus = 'enabled' | 'disabled'; + /** * Defines values for EncryptionStatus. * Possible values include: 'enabled', 'disabled' @@ -3459,12 +4018,20 @@ export type EncryptionStatus = 'enabled' | 'disabled'; export type PublicNetworkAccess = 'Enabled' | 'Disabled'; /** - * Defines values for PasswordName. - * Possible values include: 'password', 'password2' + * Defines values for NetworkRuleBypassOptions. + * Possible values include: 'AzureServices', 'None' * @readonly * @enum {string} */ -export type PasswordName = 'password' | 'password2'; +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 RegistryUsageUnit. @@ -3474,6 +4041,38 @@ export type PasswordName = 'password' | 'password2'; */ export type RegistryUsageUnit = 'Count' | 'Bytes'; +/** + * Defines values for PasswordName. + * Possible values include: 'password', 'password2' + * @readonly + * @enum {string} + */ +export type PasswordName = 'password' | 'password2'; + +/** + * 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,33 +4203,109 @@ 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 list operation. */ -export type TokenCertificateName = 'certificate1' | 'certificate2'; +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; + }; +}; /** - * Defines values for TokenPasswordName. - * Possible values include: 'password1', 'password2' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type TokenPasswordName = 'password1' | 'password2'; +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; + }; +}; + +/** + * Contains response data for the create operation. + */ +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; + }; +}; + +/** + * Contains response data for the update operation. + */ +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 beginCreate operation. + */ +export type ConnectedRegistriesBeginCreateResponse = ConnectedRegistry & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TokenStatus. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} - */ -export type TokenStatus = 'enabled' | 'disabled'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ConnectedRegistry; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ExportPipelinesGetResponse = ExportPipeline & { +export type ConnectedRegistriesBeginUpdateResponse = ConnectedRegistry & { /** * The underlying HTTP response. */ @@ -3643,14 +4318,14 @@ export type ExportPipelinesGetResponse = ExportPipeline & { /** * The response body as parsed JSON or XML */ - parsedBody: ExportPipeline; + parsedBody: ConnectedRegistry; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listNext operation. */ -export type ExportPipelinesCreateResponse = ExportPipeline & { +export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult & { /** * The underlying HTTP response. */ @@ -3663,7 +4338,7 @@ export type ExportPipelinesCreateResponse = ExportPipeline & { /** * The response body as parsed JSON or XML */ - parsedBody: ExportPipeline; + parsedBody: ConnectedRegistryListResult; }; }; @@ -3688,9 +4363,9 @@ export type ExportPipelinesListResponse = ExportPipelineListResult & { }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the get operation. */ -export type ExportPipelinesBeginCreateResponse = ExportPipeline & { +export type ExportPipelinesGetResponse = ExportPipeline & { /** * The underlying HTTP response. */ @@ -3708,9 +4383,9 @@ export type ExportPipelinesBeginCreateResponse = ExportPipeline & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the create operation. */ -export type ExportPipelinesListNextResponse = ExportPipelineListResult & { +export type ExportPipelinesCreateResponse = ExportPipeline & { /** * The underlying HTTP response. */ @@ -3723,14 +4398,14 @@ export type ExportPipelinesListNextResponse = ExportPipelineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ExportPipelineListResult; + parsedBody: ExportPipeline; }; }; /** - * Contains response data for the checkNameAvailability operation. + * Contains response data for the beginCreate operation. */ -export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { +export type ExportPipelinesBeginCreateResponse = ExportPipeline & { /** * The underlying HTTP response. */ @@ -3743,14 +4418,14 @@ export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { /** * The response body as parsed JSON or XML */ - parsedBody: RegistryNameStatus; + parsedBody: ExportPipeline; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type RegistriesGetResponse = Registry & { +export type ExportPipelinesListNextResponse = ExportPipelineListResult & { /** * The underlying HTTP response. */ @@ -3763,14 +4438,14 @@ export type RegistriesGetResponse = Registry & { /** * The response body as parsed JSON or XML */ - parsedBody: Registry; + parsedBody: ExportPipelineListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the checkNameAvailability operation. */ -export type RegistriesCreateResponse = Registry & { +export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { /** * The underlying HTTP response. */ @@ -3783,14 +4458,14 @@ export type RegistriesCreateResponse = Registry & { /** * The response body as parsed JSON or XML */ - parsedBody: Registry; + parsedBody: RegistryNameStatus; }; }; /** - * Contains response data for the update operation. + * Contains response data for the list operation. */ -export type RegistriesUpdateResponse = Registry & { +export type RegistriesListResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -3803,7 +4478,7 @@ export type RegistriesUpdateResponse = Registry & { /** * The response body as parsed JSON or XML */ - parsedBody: Registry; + parsedBody: RegistryListResult; }; }; @@ -3828,9 +4503,9 @@ export type RegistriesListByResourceGroupResponse = RegistryListResult & { }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type RegistriesListResponse = RegistryListResult & { +export type RegistriesGetResponse = Registry & { /** * The underlying HTTP response. */ @@ -3843,14 +4518,14 @@ export type RegistriesListResponse = RegistryListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RegistryListResult; + parsedBody: Registry; }; }; /** - * Contains response data for the listCredentials operation. + * Contains response data for the create operation. */ -export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & { +export type RegistriesCreateResponse = Registry & { /** * The underlying HTTP response. */ @@ -3863,14 +4538,14 @@ export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & /** * The response body as parsed JSON or XML */ - parsedBody: RegistryListCredentialsResult; + parsedBody: Registry; }; }; /** - * Contains response data for the regenerateCredential operation. + * Contains response data for the update operation. */ -export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResult & { +export type RegistriesUpdateResponse = Registry & { /** * The underlying HTTP response. */ @@ -3883,7 +4558,7 @@ export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResu /** * The response body as parsed JSON or XML */ - parsedBody: RegistryListCredentialsResult; + parsedBody: Registry; }; }; @@ -3928,9 +4603,9 @@ export type RegistriesListPrivateLinkResourcesResponse = PrivateLinkResourceList }; /** - * Contains response data for the scheduleRun operation. + * Contains response data for the listCredentials operation. */ -export type RegistriesScheduleRunResponse = Run & { +export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & { /** * The underlying HTTP response. */ @@ -3943,14 +4618,14 @@ export type RegistriesScheduleRunResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: RegistryListCredentialsResult; }; }; /** - * Contains response data for the getBuildSourceUploadUrl operation. + * Contains response data for the regenerateCredential operation. */ -export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & { +export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResult & { /** * The underlying HTTP response. */ @@ -3963,7 +4638,7 @@ export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & /** * The response body as parsed JSON or XML */ - parsedBody: SourceUploadDefinition; + parsedBody: RegistryListCredentialsResult; }; }; @@ -3987,6 +4662,46 @@ export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult & }; }; +/** + * Contains response data for the scheduleRun operation. + */ +export type RegistriesScheduleRunResponse = Run & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Run; + }; +}; + +/** + * Contains response data for the getBuildSourceUploadUrl operation. + */ +export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SourceUploadDefinition; + }; +}; + /** * Contains response data for the beginCreate operation. */ @@ -4028,9 +4743,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 +4758,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,14 +4778,14 @@ export type RegistriesBeginGenerateCredentialsResponse = GenerateCredentialsResu /** * The response body as parsed JSON or XML */ - parsedBody: GenerateCredentialsResult; + parsedBody: Run; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listNext operation. */ -export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { +export type RegistriesListNextResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -4088,9 +4803,9 @@ export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type RegistriesListNextResponse = RegistryListResult & { +export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -4128,9 +4843,9 @@ export type RegistriesListPrivateLinkResourcesNextResponse = PrivateLinkResource }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ImportPipelinesGetResponse = ImportPipeline & { +export type ImportPipelinesListResponse = ImportPipelineListResult & { /** * The underlying HTTP response. */ @@ -4143,14 +4858,14 @@ export type ImportPipelinesGetResponse = ImportPipeline & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportPipeline; + parsedBody: ImportPipelineListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type ImportPipelinesCreateResponse = ImportPipeline & { +export type ImportPipelinesGetResponse = ImportPipeline & { /** * The underlying HTTP response. */ @@ -4168,9 +4883,9 @@ export type ImportPipelinesCreateResponse = ImportPipeline & { }; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type ImportPipelinesListResponse = ImportPipelineListResult & { +export type ImportPipelinesCreateResponse = ImportPipeline & { /** * The underlying HTTP response. */ @@ -4183,7 +4898,7 @@ export type ImportPipelinesListResponse = ImportPipelineListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ImportPipelineListResult; + parsedBody: ImportPipeline; }; }; @@ -4268,9 +4983,9 @@ export type OperationsListNextResponse = OperationListResult & { }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type PipelineRunsGetResponse = PipelineRun & { +export type PipelineRunsListResponse = PipelineRunListResult & { /** * The underlying HTTP response. */ @@ -4283,14 +4998,14 @@ export type PipelineRunsGetResponse = PipelineRun & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRun; + parsedBody: PipelineRunListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type PipelineRunsCreateResponse = PipelineRun & { +export type PipelineRunsGetResponse = PipelineRun & { /** * The underlying HTTP response. */ @@ -4308,9 +5023,9 @@ export type PipelineRunsCreateResponse = PipelineRun & { }; /** - * Contains response data for the list operation. + * Contains response data for the create operation. */ -export type PipelineRunsListResponse = PipelineRunListResult & { +export type PipelineRunsCreateResponse = PipelineRun & { /** * The underlying HTTP response. */ @@ -4323,7 +5038,7 @@ export type PipelineRunsListResponse = PipelineRunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRunListResult; + parsedBody: PipelineRun; }; }; @@ -4368,9 +5083,9 @@ export type PipelineRunsListNextResponse = PipelineRunListResult & { }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -4383,14 +5098,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4408,9 +5123,9 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -4423,7 +5138,7 @@ export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionLi /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: PrivateEndpointConnection; }; }; @@ -4468,9 +5183,9 @@ export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnecti }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ReplicationsGetResponse = Replication & { +export type ReplicationsListResponse = ReplicationListResult & { /** * The underlying HTTP response. */ @@ -4483,14 +5198,14 @@ export type ReplicationsGetResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: ReplicationListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type ReplicationsCreateResponse = Replication & { +export type ReplicationsGetResponse = Replication & { /** * The underlying HTTP response. */ @@ -4508,9 +5223,9 @@ export type ReplicationsCreateResponse = Replication & { }; /** - * Contains response data for the update operation. + * Contains response data for the create operation. */ -export type ReplicationsUpdateResponse = Replication & { +export type ReplicationsCreateResponse = Replication & { /** * The underlying HTTP response. */ @@ -4528,9 +5243,9 @@ export type ReplicationsUpdateResponse = Replication & { }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type ReplicationsListResponse = ReplicationListResult & { +export type ReplicationsUpdateResponse = Replication & { /** * The underlying HTTP response. */ @@ -4543,7 +5258,7 @@ export type ReplicationsListResponse = ReplicationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationListResult; + parsedBody: Replication; }; }; @@ -4608,9 +5323,9 @@ export type ReplicationsListNextResponse = ReplicationListResult & { }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type WebhooksGetResponse = Webhook & { +export type ScopeMapsListResponse = ScopeMapListResult & { /** * The underlying HTTP response. */ @@ -4623,14 +5338,14 @@ export type WebhooksGetResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMapListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the get operation. */ -export type WebhooksCreateResponse = Webhook & { +export type ScopeMapsGetResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4643,14 +5358,14 @@ export type WebhooksCreateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMap; }; }; /** - * Contains response data for the update operation. + * Contains response data for the create operation. */ -export type WebhooksUpdateResponse = Webhook & { +export type ScopeMapsCreateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4663,14 +5378,14 @@ export type WebhooksUpdateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: ScopeMap; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type WebhooksListResponse = WebhookListResult & { +export type ScopeMapsUpdateResponse = ScopeMap & { /** * The underlying HTTP response. */ @@ -4683,14 +5398,14 @@ export type WebhooksListResponse = WebhookListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: WebhookListResult; + parsedBody: ScopeMap; }; }; /** - * 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 +5418,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 +5438,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 +5458,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 list operation. */ -export type WebhooksBeginCreateResponse = Webhook & { +export type TokensListResponse = TokenListResult & { /** * The underlying HTTP response. */ @@ -4763,14 +5478,14 @@ export type WebhooksBeginCreateResponse = Webhook & { /** * The response body as parsed JSON or XML */ - parsedBody: Webhook; + parsedBody: TokenListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type WebhooksBeginUpdateResponse = Webhook & { +export type TokensGetResponse = Token & { /** * The underlying HTTP response. */ @@ -4783,14 +5498,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 create operation. */ -export type WebhooksListNextResponse = WebhookListResult & { +export type TokensCreateResponse = Token & { /** * The underlying HTTP response. */ @@ -4803,14 +5518,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 update operation. */ -export type WebhooksListEventsNextResponse = EventListResult & { +export type TokensUpdateResponse = Token & { /** * The underlying HTTP response. */ @@ -4823,14 +5538,14 @@ export type WebhooksListEventsNextResponse = EventListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventListResult; + parsedBody: Token; }; }; /** - * 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 +5558,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 +5578,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 +5598,14 @@ export type AgentPoolsUpdateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: TokenListResult; }; }; /** * Contains response data for the list operation. */ -export type AgentPoolsListResponse = AgentPoolListResult & { +export type WebhooksListResponse = WebhookListResult & { /** * The underlying HTTP response. */ @@ -4903,14 +5618,14 @@ export type AgentPoolsListResponse = AgentPoolListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPoolListResult; + parsedBody: WebhookListResult; }; }; /** - * Contains response data for the getQueueStatus operation. + * Contains response data for the get operation. */ -export type AgentPoolsGetQueueStatusResponse = AgentPoolQueueStatus & { +export type WebhooksGetResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4923,14 +5638,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 create operation. */ -export type AgentPoolsBeginCreateResponse = AgentPool & { +export type WebhooksCreateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4943,14 +5658,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 update operation. */ -export type AgentPoolsBeginUpdateResponse = AgentPool & { +export type WebhooksUpdateResponse = Webhook & { /** * The underlying HTTP response. */ @@ -4963,14 +5678,14 @@ export type AgentPoolsBeginUpdateResponse = AgentPool & { /** * The response body as parsed JSON or XML */ - parsedBody: AgentPool; + parsedBody: Webhook; }; }; /** - * 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 +5698,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 listEvents operation. */ -export type RunsListResponse = RunListResult & { +export type WebhooksListEventsResponse = EventListResult & { /** * The underlying HTTP response. */ @@ -5003,14 +5718,14 @@ export type RunsListResponse = RunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RunListResult; + parsedBody: EventListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getCallbackConfig operation. */ -export type RunsGetResponse = Run & { +export type WebhooksGetCallbackConfigResponse = CallbackConfig & { /** * The underlying HTTP response. */ @@ -5023,14 +5738,14 @@ export type RunsGetResponse = Run & { /** * The response body as parsed JSON or XML */ - parsedBody: Run; + parsedBody: CallbackConfig; }; }; /** - * 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 +5758,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 +5778,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 +5798,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 +5818,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 +5838,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 +5858,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 +5878,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 +5898,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 +5918,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 +5938,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 +5958,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 +5978,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 +5998,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 +6018,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 +6038,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 +6058,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 +6078,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 +6098,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 +6118,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 +6138,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 +6158,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 +6178,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 +6198,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 +6218,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 +6238,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 +6258,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 +6278,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 +6298,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 +6318,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 +6338,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 +6358,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 +6378,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 +6398,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 +6418,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..a09616d0af33 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,381 +246,365 @@ 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", + }, + lastActivityTime: { + readOnly: true, + serializedName: "properties.lastActivityTime", type: { - name: "Composite", - className: "PipelineSourceTriggerProperties" + name: "DateTime" } - } - } - } -}; - -export const ImportPipeline: msRest.CompositeMapper = { - serializedName: "ImportPipeline", - type: { - name: "Composite", - className: "ImportPipeline", - modelProperties: { - ...ProxyResource.type.modelProperties, - identity: { - serializedName: "identity", + }, + activation: { + readOnly: true, + serializedName: "properties.activation", type: { name: "Composite", - className: "IdentityProperties" + className: "ActivationProperties" } }, - source: { + parent: { required: true, - serializedName: "properties.source", + serializedName: "properties.parent", type: { name: "Composite", - className: "ImportPipelineSourceProperties" + className: "ParentProperties" } }, - trigger: { - serializedName: "properties.trigger", + clientTokenIds: { + serializedName: "properties.clientTokenIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + loginServer: { + serializedName: "properties.loginServer", type: { name: "Composite", - className: "PipelineTriggerProperties" + className: "LoginServerProperties" } }, - options: { - serializedName: "properties.options", + logging: { + serializedName: "properties.logging", + type: { + name: "Composite", + className: "LoggingProperties" + } + }, + statusDetails: { + readOnly: true, + serializedName: "properties.statusDetails", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "StatusDetailProperties" } } } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + notificationsList: { + serializedName: "properties.notificationsList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -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", + syncProperties: { + serializedName: "properties.syncProperties", type: { - name: "String" + name: "Composite", + className: "SyncUpdateProperties" } }, - unit: { - serializedName: "unit", + logging: { + serializedName: "properties.logging", type: { - name: "String" + name: "Composite", + className: "LoggingProperties" } }, - aggregationType: { - serializedName: "aggregationType", + clientTokenIds: { + serializedName: "properties.clientTokenIds", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - internalMetricName: { - serializedName: "internalMetricName", + notificationsList: { + serializedName: "properties.notificationsList", 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,21 +613,48 @@ 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: "Composite", + className: "IdentityProperties" + } + }, + target: { + required: true, + serializedName: "properties.target", + type: { + name: "Composite", + className: "ExportPipelineTargetProperties" + } + }, + options: { + serializedName: "properties.options", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } @@ -649,116 +663,138 @@ export const PipelineRunTargetProperties: msRest.CompositeMapper = { } }; -export const PipelineRunRequest: msRest.CompositeMapper = { - serializedName: "PipelineRunRequest", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "PipelineRunRequest", + className: "Resource", modelProperties: { - pipelineResourceId: { - serializedName: "pipelineResourceId", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - artifacts: { - serializedName: "artifacts", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - source: { - serializedName: "source", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Composite", - className: "PipelineRunSourceProperties" + name: "String" } }, - target: { - serializedName: "target", + location: { + required: true, + serializedName: "location", type: { - name: "Composite", - className: "PipelineRunTargetProperties" + name: "String" } }, - catalogDigest: { - serializedName: "catalogDigest", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" } } } } }; -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 +804,50 @@ 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", + untaggedTargetRepositories: { + serializedName: "untaggedTargetRepositories", type: { - name: "Composite", - className: "ImportPipelineSourceProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - target: { - serializedName: "target", + mode: { + serializedName: "mode", + defaultValue: 'NoForce', type: { - name: "Composite", - className: "ExportPipelineTargetProperties" + name: "String" } - }, - catalogDigest: { - serializedName: "catalogDigest", + } + } + } +}; + +export const ImportPipelineSourceProperties: msRest.CompositeMapper = { + serializedName: "ImportPipelineSourceProperties", + type: { + name: "Composite", + className: "ImportPipelineSourceProperties", + modelProperties: { + type: { + serializedName: "type", + defaultValue: 'AzureStorageBlobContainer', type: { name: "String" } }, - trigger: { - serializedName: "trigger", + uri: { + serializedName: "uri", type: { - name: "Composite", - className: "PipelineTriggerDescriptor" + name: "String" } }, - pipelineRunErrorMessage: { - serializedName: "pipelineRunErrorMessage", + keyVaultUri: { + required: true, + serializedName: "keyVaultUri", type: { name: "String" } @@ -824,37 +856,16 @@ export const PipelineRunResponse: msRest.CompositeMapper = { } }; -export const PipelineRun: msRest.CompositeMapper = { - serializedName: "PipelineRun", +export const PipelineSourceTriggerProperties: msRest.CompositeMapper = { + serializedName: "PipelineSourceTriggerProperties", type: { name: "Composite", - className: "PipelineRun", + className: "PipelineSourceTriggerProperties", modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - request: { - serializedName: "properties.request", - type: { - name: "Composite", - className: "PipelineRunRequest" - } - }, - response: { - readOnly: true, - serializedName: "properties.response", - type: { - name: "Composite", - className: "PipelineRunResponse" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", + status: { + required: true, + serializedName: "status", + defaultValue: 'Enabled', type: { name: "String" } @@ -863,69 +874,67 @@ export const PipelineRun: msRest.CompositeMapper = { } }; -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", +export const PipelineTriggerProperties: msRest.CompositeMapper = { + serializedName: "PipelineTriggerProperties", type: { name: "Composite", - className: "PrivateEndpoint", + className: "PipelineTriggerProperties", modelProperties: { - id: { - serializedName: "id", + sourceTrigger: { + serializedName: "sourceTrigger", type: { - name: "String" + name: "Composite", + className: "PipelineSourceTriggerProperties" } } } } }; -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", +export const ImportPipeline: msRest.CompositeMapper = { + serializedName: "ImportPipeline", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState", + className: "ImportPipeline", modelProperties: { - status: { - serializedName: "status", + ...ProxyResource.type.modelProperties, + location: { + serializedName: "location", type: { name: "String" } }, - description: { - serializedName: "description", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - actionsRequired: { - serializedName: "actionsRequired", + source: { + required: true, + serializedName: "properties.source", type: { - name: "String" + name: "Composite", + className: "ImportPipelineSourceProperties" } - } - } - } -}; - -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", + }, + trigger: { + serializedName: "properties.trigger", type: { name: "Composite", - className: "PrivateEndpoint" + className: "PipelineTriggerProperties" } }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", + options: { + serializedName: "properties.options", type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, provisioningState: { @@ -939,22 +948,32 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { } }; -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", +export const OperationDisplayDefinition: msRest.CompositeMapper = { + serializedName: "OperationDisplayDefinition", type: { name: "Composite", - className: "Sku", + className: "OperationDisplayDefinition", modelProperties: { - name: { - required: true, - serializedName: "name", + provider: { + serializedName: "provider", type: { name: "String" } }, - tier: { - readOnly: true, - serializedName: "tier", + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -963,70 +982,44 @@ export const Sku: msRest.CompositeMapper = { } }; -export const Status: msRest.CompositeMapper = { - serializedName: "Status", +export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationMetricSpecificationDefinition", type: { name: "Composite", - className: "Status", + className: "OperationMetricSpecificationDefinition", modelProperties: { - displayStatus: { - readOnly: true, - serializedName: "displayStatus", + name: { + serializedName: "name", type: { name: "String" } }, - message: { - readOnly: true, - serializedName: "message", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - timestamp: { - readOnly: true, - serializedName: "timestamp", + displayDescription: { + serializedName: "displayDescription", type: { - name: "DateTime" + name: "String" } - } - } - } -}; - -export const StorageAccountProperties: msRest.CompositeMapper = { - serializedName: "StorageAccountProperties", - type: { - name: "Composite", - className: "StorageAccountProperties", - modelProperties: { - id: { - required: true, - serializedName: "id", + }, + unit: { + serializedName: "unit", type: { name: "String" } - } - } - } -}; - -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - action: { - serializedName: "action", - defaultValue: 'Allow', + }, + aggregationType: { + serializedName: "aggregationType", type: { name: "String" } }, - virtualNetworkResourceId: { - required: true, - serializedName: "id", + internalMetricName: { + serializedName: "internalMetricName", type: { name: "String" } @@ -1035,22 +1028,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 +1056,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 +1090,71 @@ 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" + } + }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } } } } }; -export const TrustPolicy: msRest.CompositeMapper = { - serializedName: "TrustPolicy", +export const RegistryNameCheckRequest: msRest.CompositeMapper = { + serializedName: "RegistryNameCheckRequest", type: { name: "Composite", - className: "TrustPolicy", + className: "RegistryNameCheckRequest", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'Notary', + name: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 50, + MinLength: 5, + Pattern: /^[a-zA-Z0-9]*$/ + }, type: { name: "String" } }, - status: { - serializedName: "status", - defaultValue: 'disabled', + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'Microsoft.ContainerRegistry/registries', type: { name: "String" } @@ -1142,29 +1163,26 @@ export const TrustPolicy: msRest.CompositeMapper = { } }; -export const RetentionPolicy: msRest.CompositeMapper = { - serializedName: "RetentionPolicy", +export const RegistryNameStatus: msRest.CompositeMapper = { + serializedName: "RegistryNameStatus", type: { name: "Composite", - className: "RetentionPolicy", + className: "RegistryNameStatus", modelProperties: { - days: { - serializedName: "days", - defaultValue: 7, + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "Number" + name: "Boolean" } }, - lastUpdatedTime: { - readOnly: true, - serializedName: "lastUpdatedTime", + reason: { + serializedName: "reason", type: { - name: "DateTime" + name: "String" } }, - status: { - serializedName: "status", - defaultValue: 'disabled', + message: { + serializedName: "message", type: { name: "String" } @@ -1173,58 +1191,44 @@ export const RetentionPolicy: msRest.CompositeMapper = { } }; -export const Policies: msRest.CompositeMapper = { - serializedName: "Policies", +export const PipelineRunSourceProperties: msRest.CompositeMapper = { + serializedName: "PipelineRunSourceProperties", type: { name: "Composite", - className: "Policies", + className: "PipelineRunSourceProperties", modelProperties: { - quarantinePolicy: { - serializedName: "quarantinePolicy", - type: { - name: "Composite", - className: "QuarantinePolicy" - } - }, - trustPolicy: { - serializedName: "trustPolicy", + type: { + serializedName: "type", + defaultValue: 'AzureStorageBlob', type: { - name: "Composite", - className: "TrustPolicy" + name: "String" } }, - retentionPolicy: { - serializedName: "retentionPolicy", + name: { + serializedName: "name", type: { - name: "Composite", - className: "RetentionPolicy" + name: "String" } } } } }; -export const KeyVaultProperties: msRest.CompositeMapper = { - serializedName: "KeyVaultProperties", +export const PipelineRunTargetProperties: msRest.CompositeMapper = { + serializedName: "PipelineRunTargetProperties", type: { name: "Composite", - className: "KeyVaultProperties", + className: "PipelineRunTargetProperties", modelProperties: { - keyIdentifier: { - serializedName: "keyIdentifier", - type: { - name: "String" - } - }, - versionedKeyIdentifier: { - readOnly: true, - serializedName: "versionedKeyIdentifier", + type: { + serializedName: "type", + defaultValue: 'AzureStorageBlob', type: { name: "String" } }, - identity: { - serializedName: "identity", + name: { + serializedName: "name", type: { name: "String" } @@ -1233,198 +1237,212 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }; -export const EncryptionProperty: msRest.CompositeMapper = { - serializedName: "EncryptionProperty", +export const PipelineRunRequest: msRest.CompositeMapper = { + serializedName: "PipelineRunRequest", type: { name: "Composite", - className: "EncryptionProperty", + className: "PipelineRunRequest", modelProperties: { - status: { - serializedName: "status", + pipelineResourceId: { + serializedName: "pipelineResourceId", type: { name: "String" } }, - keyVaultProperties: { - serializedName: "keyVaultProperties", + artifacts: { + serializedName: "artifacts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + source: { + serializedName: "source", type: { name: "Composite", - className: "KeyVaultProperties" + className: "PipelineRunSourceProperties" + } + }, + target: { + serializedName: "target", + type: { + name: "Composite", + className: "PipelineRunTargetProperties" + } + }, + catalogDigest: { + serializedName: "catalogDigest", + type: { + name: "String" } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const ProgressProperties: msRest.CompositeMapper = { + serializedName: "ProgressProperties", type: { name: "Composite", - className: "Resource", + className: "ProgressProperties", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", + percentage: { + serializedName: "percentage", type: { name: "String" } - }, - location: { - required: true, - serializedName: "location", + } + } + } +}; + +export const PipelineSourceTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "PipelineSourceTriggerDescriptor", + type: { + name: "Composite", + className: "PipelineSourceTriggerDescriptor", + modelProperties: { + timestamp: { + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const PipelineTriggerDescriptor: msRest.CompositeMapper = { + serializedName: "PipelineTriggerDescriptor", + type: { + name: "Composite", + className: "PipelineTriggerDescriptor", + modelProperties: { + sourceTrigger: { + serializedName: "sourceTrigger", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "PipelineSourceTriggerDescriptor" } } } } }; -export const Registry: msRest.CompositeMapper = { - serializedName: "Registry", +export const PipelineRunResponse: msRest.CompositeMapper = { + serializedName: "PipelineRunResponse", type: { name: "Composite", - className: "Registry", + className: "PipelineRunResponse", modelProperties: { - ...Resource.type.modelProperties, - sku: { - required: true, - serializedName: "sku", + status: { + serializedName: "status", type: { - name: "Composite", - className: "Sku" + name: "String" } }, - identity: { - serializedName: "identity", + importedArtifacts: { + serializedName: "importedArtifacts", type: { - name: "Composite", - className: "IdentityProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - loginServer: { - readOnly: true, - serializedName: "properties.loginServer", + progress: { + serializedName: "progress", type: { - name: "String" + name: "Composite", + className: "ProgressProperties" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + startTime: { + serializedName: "startTime", type: { name: "DateTime" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + finishTime: { + serializedName: "finishTime", type: { - name: "String" + name: "DateTime" } }, - status: { - readOnly: true, - serializedName: "properties.status", + source: { + serializedName: "source", type: { name: "Composite", - className: "Status" + className: "ImportPipelineSourceProperties" } }, - adminUserEnabled: { - serializedName: "properties.adminUserEnabled", - defaultValue: false, - type: { - name: "Boolean" - } - }, - storageAccount: { - serializedName: "properties.storageAccount", + target: { + serializedName: "target", type: { name: "Composite", - className: "StorageAccountProperties" + className: "ExportPipelineTargetProperties" } }, - networkRuleSet: { - serializedName: "properties.networkRuleSet", + catalogDigest: { + serializedName: "catalogDigest", type: { - name: "Composite", - className: "NetworkRuleSet" + name: "String" } }, - policies: { - serializedName: "properties.policies", + trigger: { + serializedName: "trigger", type: { name: "Composite", - className: "Policies" + className: "PipelineTriggerDescriptor" } }, - encryption: { - serializedName: "properties.encryption", + pipelineRunErrorMessage: { + serializedName: "pipelineRunErrorMessage", type: { - name: "Composite", - className: "EncryptionProperty" + name: "String" } - }, - dataEndpointEnabled: { - serializedName: "properties.dataEndpointEnabled", + } + } + } +}; + +export const PipelineRun: msRest.CompositeMapper = { + serializedName: "PipelineRun", + type: { + name: "Composite", + className: "PipelineRun", + modelProperties: { + ...ProxyResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Boolean" + name: "String" } }, - dataEndpointHostNames: { - readOnly: true, - serializedName: "properties.dataEndpointHostNames", + request: { + serializedName: "properties.request", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "PipelineRunRequest" } }, - privateEndpointConnections: { + response: { readOnly: true, - serializedName: "properties.privateEndpointConnections", + serializedName: "properties.response", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } + name: "Composite", + className: "PipelineRunResponse" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - defaultValue: 'Enabled', + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", type: { name: "String" } @@ -1433,72 +1451,74 @@ export const Registry: msRest.CompositeMapper = { } }; -export const RegistryUpdateParameters: msRest.CompositeMapper = { - serializedName: "RegistryUpdateParameters", +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", type: { name: "Composite", - className: "RegistryUpdateParameters", + className: "PrivateEndpoint", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", + id: { + serializedName: "id", type: { - name: "Composite", - className: "Sku" + name: "String" } - }, - identity: { - serializedName: "identity", + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + 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 +1527,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 +1551,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 +1630,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 +1672,287 @@ 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", - type: { - name: "String" - } - }, - id: { - serializedName: "id", + status: { + serializedName: "status", + defaultValue: 'disabled', 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 ExportPolicy: msRest.CompositeMapper = { + serializedName: "ExportPolicy", type: { name: "Composite", - className: "ReplicationUpdateParameters", + className: "ExportPolicy", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", + status: { + serializedName: "status", + defaultValue: 'enabled', type: { - name: "Boolean" + name: "String" } } } } }; -export const Webhook: msRest.CompositeMapper = { - serializedName: "Webhook", +export const Policies: msRest.CompositeMapper = { + serializedName: "Policies", type: { name: "Composite", - className: "Webhook", + className: "Policies", modelProperties: { - ...Resource.type.modelProperties, - status: { - serializedName: "properties.status", + quarantinePolicy: { + serializedName: "quarantinePolicy", type: { - name: "String" + name: "Composite", + className: "QuarantinePolicy" } }, - scope: { - serializedName: "properties.scope", + trustPolicy: { + serializedName: "trustPolicy", type: { - name: "String" + name: "Composite", + className: "TrustPolicy" } }, - actions: { - required: true, - serializedName: "properties.actions", + retentionPolicy: { + serializedName: "retentionPolicy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "RetentionPolicy" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + exportPolicy: { + serializedName: "exportPolicy", type: { - name: "String" + name: "Composite", + className: "ExportPolicy" } } } } }; -export const WebhookCreateParameters: msRest.CompositeMapper = { - serializedName: "WebhookCreateParameters", +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", type: { name: "Composite", - className: "WebhookCreateParameters", + className: "KeyVaultProperties", modelProperties: { - tags: { - serializedName: "tags", + keyIdentifier: { + serializedName: "keyIdentifier", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - location: { - required: true, - serializedName: "location", + versionedKeyIdentifier: { + readOnly: true, + serializedName: "versionedKeyIdentifier", type: { name: "String" } }, - serviceUri: { - required: true, - serializedName: "properties.serviceUri", + identity: { + serializedName: "identity", type: { name: "String" } }, - customHeaders: { - serializedName: "properties.customHeaders", + keyRotationEnabled: { + readOnly: true, + serializedName: "keyRotationEnabled", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Boolean" } }, + lastKeyRotationTimestamp: { + readOnly: true, + serializedName: "lastKeyRotationTimestamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const EncryptionProperty: msRest.CompositeMapper = { + serializedName: "EncryptionProperty", + type: { + name: "Composite", + className: "EncryptionProperty", + modelProperties: { status: { - serializedName: "properties.status", + serializedName: "status", type: { name: "String" } }, - scope: { - serializedName: "properties.scope", - type: { - name: "String" - } - }, - actions: { - required: true, - serializedName: "properties.actions", + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "KeyVaultProperties" } } } } }; -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: "Composite", + className: "IdentityProperties" + } + }, + loginServer: { + readOnly: true, + serializedName: "properties.loginServer", type: { name: "String" } }, - customHeaders: { - serializedName: "properties.customHeaders", + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + 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 +1961,67 @@ 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", + defaultValue: false, + 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 +2030,96 @@ 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 RegistryUsage: msRest.CompositeMapper = { + serializedName: "RegistryUsage", type: { name: "Composite", - className: "Request", + className: "RegistryUsage", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", type: { name: "String" } }, - addr: { - serializedName: "addr", + limit: { + serializedName: "limit", type: { - name: "String" + name: "Number" } }, - host: { - serializedName: "host", + currentValue: { + serializedName: "currentValue", type: { - name: "String" + name: "Number" } }, - method: { - serializedName: "method", - type: { - name: "String" - } - }, - useragent: { - serializedName: "useragent", + unit: { + serializedName: "unit", type: { name: "String" } @@ -2076,138 +2128,103 @@ export const Request: msRest.CompositeMapper = { } }; -export const Actor: msRest.CompositeMapper = { - serializedName: "Actor", +export const RegistryUsageListResult: msRest.CompositeMapper = { + serializedName: "RegistryUsageListResult", type: { name: "Composite", - className: "Actor", + className: "RegistryUsageListResult", modelProperties: { - name: { - serializedName: "name", + value: { + serializedName: "value", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryUsage" + } + } } } } } }; -export const Source: msRest.CompositeMapper = { - serializedName: "Source", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "Source", + className: "PrivateLinkResource", modelProperties: { - addr: { - serializedName: "addr", + type: { + readOnly: true, + serializedName: "type", 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", + name: { + serializedName: "name", type: { name: "String" } }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "Target" - } - }, - request: { - serializedName: "request", + groupId: { + serializedName: "properties.groupId", type: { - name: "Composite", - className: "Request" + name: "String" } }, - actor: { - serializedName: "actor", + requiredMembers: { + serializedName: "properties.requiredMembers", type: { - name: "Composite", - className: "Actor" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - source: { - serializedName: "source", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "Composite", - className: "Source" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const EventRequestMessage: msRest.CompositeMapper = { - serializedName: "EventRequestMessage", +export const RegistryPassword: msRest.CompositeMapper = { + serializedName: "RegistryPassword", type: { name: "Composite", - className: "EventRequestMessage", + className: "RegistryPassword", 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", + name: { + serializedName: "name", type: { - name: "String" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } }, - version: { - serializedName: "version", + value: { + serializedName: "value", type: { name: "String" } @@ -2216,110 +2233,87 @@ export const EventRequestMessage: msRest.CompositeMapper = { } }; -export const EventResponseMessage: msRest.CompositeMapper = { - serializedName: "EventResponseMessage", +export const RegistryListCredentialsResult: msRest.CompositeMapper = { + serializedName: "RegistryListCredentialsResult", type: { name: "Composite", - className: "EventResponseMessage", + className: "RegistryListCredentialsResult", modelProperties: { - content: { - serializedName: "content", + username: { + serializedName: "username", type: { name: "String" } }, - headers: { - serializedName: "headers", + passwords: { + serializedName: "passwords", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "RegistryPassword" } } } - }, - 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", +export const RegenerateCredentialParameters: msRest.CompositeMapper = { + serializedName: "RegenerateCredentialParameters", type: { name: "Composite", - className: "Event", + className: "RegenerateCredentialParameters", modelProperties: { - ...EventInfo.type.modelProperties, - eventRequestMessage: { - serializedName: "eventRequestMessage", - type: { - name: "Composite", - className: "EventRequestMessage" - } - }, - eventResponseMessage: { - serializedName: "eventResponseMessage", + name: { + required: true, + serializedName: "name", type: { - name: "Composite", - className: "EventResponseMessage" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } } } } }; -export const AgentPool: msRest.CompositeMapper = { - serializedName: "AgentPool", +export const Replication: msRest.CompositeMapper = { + serializedName: "Replication", type: { name: "Composite", - className: "AgentPool", + className: "Replication", modelProperties: { ...Resource.type.modelProperties, - count: { - serializedName: "properties.count", - type: { - name: "Number" - } - }, - tier: { - serializedName: "properties.tier", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - os: { - serializedName: "properties.os", + status: { + readOnly: true, + serializedName: "properties.status", type: { - name: "String" + name: "Composite", + className: "Status" } }, - virtualNetworkSubnetResourceId: { - serializedName: "properties.virtualNetworkSubnetResourceId", + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + defaultValue: true, type: { - name: "String" + name: "Boolean" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + defaultValue: 'Disabled', type: { name: "String" } @@ -2328,18 +2322,12 @@ export const AgentPool: msRest.CompositeMapper = { } }; -export const AgentPoolUpdateParameters: msRest.CompositeMapper = { - serializedName: "AgentPoolUpdateParameters", +export const ReplicationUpdateParameters: msRest.CompositeMapper = { + serializedName: "ReplicationUpdateParameters", type: { name: "Composite", - className: "AgentPoolUpdateParameters", + className: "ReplicationUpdateParameters", modelProperties: { - count: { - serializedName: "properties.count", - type: { - name: "Number" - } - }, tags: { serializedName: "tags", type: { @@ -2350,88 +2338,120 @@ export const AgentPoolUpdateParameters: msRest.CompositeMapper = { } } } + }, + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + type: { + name: "Boolean" + } } } } }; -export const AgentPoolQueueStatus: msRest.CompositeMapper = { - serializedName: "AgentPoolQueueStatus", +export const ScopeMap: msRest.CompositeMapper = { + serializedName: "ScopeMap", type: { name: "Composite", - className: "AgentPoolQueueStatus", + className: "ScopeMap", modelProperties: { - count: { - serializedName: "count", + ...ProxyResource.type.modelProperties, + description: { + serializedName: "properties.description", type: { - name: "Number" + name: "String" + } + }, + scopeMapType: { + readOnly: true, + serializedName: "properties.type", + type: { + name: "String" + } + }, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + actions: { + required: true, + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const RunRequest: msRest.CompositeMapper = { - serializedName: "RunRequest", +export const ScopeMapUpdateParameters: msRest.CompositeMapper = { + serializedName: "ScopeMapUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "RunRequest", - className: "RunRequest", + className: "ScopeMapUpdateParameters", modelProperties: { - isArchiveEnabled: { - serializedName: "isArchiveEnabled", - defaultValue: false, - type: { - name: "Boolean" - } - }, - agentPoolName: { - serializedName: "agentPoolName", + description: { + serializedName: "properties.description", type: { name: "String" } }, - type: { - required: true, - serializedName: "type", + actions: { + serializedName: "properties.actions", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ImageDescriptor: msRest.CompositeMapper = { - serializedName: "ImageDescriptor", +export const TokenCertificate: msRest.CompositeMapper = { + serializedName: "TokenCertificate", type: { name: "Composite", - className: "ImageDescriptor", + className: "TokenCertificate", modelProperties: { - registry: { - serializedName: "registry", + name: { + serializedName: "name", type: { name: "String" } }, - repository: { - serializedName: "repository", + expiry: { + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } }, - tag: { - serializedName: "tag", + thumbprint: { + serializedName: "thumbprint", type: { name: "String" } }, - digest: { - serializedName: "digest", + encodedPemCertificate: { + serializedName: "encodedPemCertificate", type: { name: "String" } @@ -2440,32 +2460,67 @@ export const ImageDescriptor: msRest.CompositeMapper = { } }; -export const ImageUpdateTrigger: msRest.CompositeMapper = { - serializedName: "ImageUpdateTrigger", +export const TokenPassword: msRest.CompositeMapper = { + serializedName: "TokenPassword", type: { name: "Composite", - className: "ImageUpdateTrigger", + className: "TokenPassword", modelProperties: { - id: { - serializedName: "id", + creationTime: { + serializedName: "creationTime", type: { - name: "String" + name: "DateTime" } }, - timestamp: { - serializedName: "timestamp", + expiry: { + serializedName: "expiry", type: { name: "DateTime" } }, - images: { - serializedName: "images", + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + readOnly: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const TokenCredentialsProperties: msRest.CompositeMapper = { + serializedName: "TokenCredentialsProperties", + type: { + name: "Composite", + className: "TokenCredentialsProperties", + modelProperties: { + certificates: { + serializedName: "certificates", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ImageDescriptor" + className: "TokenCertificate" + } + } + } + }, + passwords: { + serializedName: "passwords", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenPassword" } } } @@ -2474,50 +2529,42 @@ 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", - type: { - name: "String" - } - }, - eventType: { - serializedName: "eventType", - type: { - name: "String" - } - }, - commitId: { - serializedName: "commitId", + ...ProxyResource.type.modelProperties, + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - pullRequestId: { - serializedName: "pullRequestId", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - repositoryUrl: { - serializedName: "repositoryUrl", + scopeMapId: { + serializedName: "properties.scopeMapId", type: { name: "String" } }, - branchName: { - serializedName: "branchName", + credentials: { + serializedName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "TokenCredentialsProperties" } }, - providerType: { - serializedName: "providerType", + status: { + serializedName: "properties.status", type: { name: "String" } @@ -2526,20 +2573,20 @@ export const SourceTriggerDescriptor: msRest.CompositeMapper = { } }; -export const TimerTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "TimerTriggerDescriptor", +export const ActiveDirectoryObject: msRest.CompositeMapper = { + serializedName: "ActiveDirectoryObject", type: { name: "Composite", - className: "TimerTriggerDescriptor", + className: "ActiveDirectoryObject", modelProperties: { - timerTriggerName: { - serializedName: "timerTriggerName", + objectId: { + serializedName: "objectId", type: { name: "String" } }, - scheduleOccurrence: { - serializedName: "scheduleOccurrence", + tenantId: { + serializedName: "tenantId", type: { name: "String" } @@ -2548,167 +2595,190 @@ export const TimerTriggerDescriptor: msRest.CompositeMapper = { } }; -export const PlatformProperties: msRest.CompositeMapper = { - serializedName: "PlatformProperties", +export const TokenUpdateParameters: msRest.CompositeMapper = { + serializedName: "TokenUpdateParameters", type: { name: "Composite", - className: "PlatformProperties", + className: "TokenUpdateParameters", modelProperties: { - os: { - required: true, - serializedName: "os", + scopeMapId: { + serializedName: "properties.scopeMapId", type: { name: "String" } }, - architecture: { - serializedName: "architecture", + status: { + serializedName: "properties.status", type: { name: "String" } }, - variant: { - serializedName: "variant", + credentials: { + serializedName: "properties.credentials", type: { - name: "String" + name: "Composite", + className: "TokenCredentialsProperties" } } } } }; -export const AgentProperties: msRest.CompositeMapper = { - serializedName: "AgentProperties", +export const GenerateCredentialsParameters: msRest.CompositeMapper = { + serializedName: "GenerateCredentialsParameters", type: { name: "Composite", - className: "AgentProperties", + className: "GenerateCredentialsParameters", modelProperties: { - cpu: { - serializedName: "cpu", + tokenId: { + serializedName: "tokenId", type: { - name: "Number" + name: "String" + } + }, + expiry: { + serializedName: "expiry", + type: { + name: "DateTime" + } + }, + name: { + serializedName: "name", + type: { + name: "String" } } } } }; -export const Run: msRest.CompositeMapper = { - serializedName: "Run", +export const GenerateCredentialsResult: msRest.CompositeMapper = { + serializedName: "GenerateCredentialsResult", type: { name: "Composite", - className: "Run", + className: "GenerateCredentialsResult", modelProperties: { - ...ProxyResource.type.modelProperties, - runId: { - serializedName: "properties.runId", - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", + username: { + serializedName: "username", type: { name: "String" } }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", + passwords: { + serializedName: "passwords", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenPassword" + } + } } - }, - runType: { - serializedName: "properties.runType", + } + } + } +}; + +export const Webhook: msRest.CompositeMapper = { + serializedName: "Webhook", + type: { + name: "Composite", + className: "Webhook", + modelProperties: { + ...Resource.type.modelProperties, + status: { + serializedName: "properties.status", type: { name: "String" } }, - agentPoolName: { - serializedName: "properties.agentPoolName", + scope: { + serializedName: "properties.scope", type: { name: "String" } }, - createTime: { - serializedName: "properties.createTime", - type: { - name: "DateTime" - } - }, - startTime: { - serializedName: "properties.startTime", - type: { - name: "DateTime" - } - }, - finishTime: { - serializedName: "properties.finishTime", - type: { - name: "DateTime" - } - }, - outputImages: { - serializedName: "properties.outputImages", + actions: { + required: true, + serializedName: "properties.actions", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ImageDescriptor" + name: "String" } } } }, - task: { - serializedName: "properties.task", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } - }, - imageUpdateTrigger: { - serializedName: "properties.imageUpdateTrigger", + } + } + } +}; + +export const WebhookCreateParameters: msRest.CompositeMapper = { + serializedName: "WebhookCreateParameters", + type: { + name: "Composite", + className: "WebhookCreateParameters", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ImageUpdateTrigger" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - sourceTrigger: { - serializedName: "properties.sourceTrigger", + location: { + required: true, + serializedName: "location", type: { - name: "Composite", - className: "SourceTriggerDescriptor" + name: "String" } }, - timerTrigger: { - serializedName: "properties.timerTrigger", + serviceUri: { + required: true, + serializedName: "properties.serviceUri", type: { - name: "Composite", - className: "TimerTriggerDescriptor" + name: "String" } }, - platform: { - serializedName: "properties.platform", + customHeaders: { + serializedName: "properties.customHeaders", type: { - name: "Composite", - className: "PlatformProperties" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - agentConfiguration: { - serializedName: "properties.agentConfiguration", + status: { + serializedName: "properties.status", type: { - name: "Composite", - className: "AgentProperties" + name: "String" } }, - sourceRegistryAuth: { - serializedName: "properties.sourceRegistryAuth", + scope: { + serializedName: "properties.scope", type: { name: "String" } }, - customRegistries: { - serializedName: "properties.customRegistries", + actions: { + required: true, + serializedName: "properties.actions", type: { name: "Sequence", element: { @@ -2717,51 +2787,80 @@ export const Run: msRest.CompositeMapper = { } } } + } + } + } +}; + +export const WebhookUpdateParameters: msRest.CompositeMapper = { + serializedName: "WebhookUpdateParameters", + type: { + name: "Composite", + className: "WebhookUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } }, - runErrorMessage: { - readOnly: true, - serializedName: "properties.runErrorMessage", + serviceUri: { + serializedName: "properties.serviceUri", type: { name: "String" } }, - updateTriggerToken: { - serializedName: "properties.updateTriggerToken", + customHeaders: { + serializedName: "properties.customHeaders", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + status: { + serializedName: "properties.status", type: { name: "String" } }, - provisioningState: { - serializedName: "properties.provisioningState", + scope: { + serializedName: "properties.scope", type: { name: "String" } }, - isArchiveEnabled: { - serializedName: "properties.isArchiveEnabled", - defaultValue: false, + actions: { + serializedName: "properties.actions", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const SourceUploadDefinition: msRest.CompositeMapper = { - serializedName: "SourceUploadDefinition", +export const EventInfo: msRest.CompositeMapper = { + serializedName: "EventInfo", type: { name: "Composite", - className: "SourceUploadDefinition", + className: "EventInfo", modelProperties: { - uploadUrl: { - serializedName: "uploadUrl", - type: { - name: "String" - } - }, - relativePath: { - serializedName: "relativePath", + id: { + serializedName: "id", type: { name: "String" } @@ -2770,62 +2869,555 @@ export const SourceUploadDefinition: msRest.CompositeMapper = { } }; -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: "Number" + } + }, + digest: { + serializedName: "digest", + type: { + name: "String" + } + }, + length: { + serializedName: "length", + type: { + name: "Number" + } + }, + repository: { + serializedName: "repository", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + tag: { + serializedName: "tag", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const Request: msRest.CompositeMapper = { + serializedName: "Request", + type: { + name: "Composite", + className: "Request", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + addr: { + serializedName: "addr", + type: { + name: "String" + } + }, + host: { + serializedName: "host", + type: { + name: "String" + } + }, + method: { + serializedName: "method", + type: { + name: "String" + } + }, + useragent: { + serializedName: "useragent", + type: { + name: "String" + } + } + } + } +}; + +export const Actor: msRest.CompositeMapper = { + serializedName: "Actor", + type: { + name: "Composite", + className: "Actor", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const Source: msRest.CompositeMapper = { + serializedName: "Source", + type: { + name: "Composite", + className: "Source", + modelProperties: { + addr: { + serializedName: "addr", + type: { + name: "String" + } + }, + instanceID: { + serializedName: "instanceID", + type: { + name: "String" + } + } + } + } +}; + +export const EventContent: msRest.CompositeMapper = { + serializedName: "EventContent", + type: { + name: "Composite", + className: "EventContent", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "Composite", + className: "Target" + } + }, + request: { + serializedName: "request", + type: { + name: "Composite", + className: "Request" + } + }, + actor: { + serializedName: "actor", + type: { + name: "Composite", + className: "Actor" + } + }, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "Source" + } + } + } + } +}; + +export const EventRequestMessage: msRest.CompositeMapper = { + serializedName: "EventRequestMessage", + type: { + name: "Composite", + className: "EventRequestMessage", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "Composite", + className: "EventContent" + } + }, + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + method: { + serializedName: "method", + type: { + name: "String" + } + }, + requestUri: { + serializedName: "requestUri", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const EventResponseMessage: msRest.CompositeMapper = { + serializedName: "EventResponseMessage", + type: { + name: "Composite", + className: "EventResponseMessage", + modelProperties: { + content: { + serializedName: "content", + type: { + name: "String" + } + }, + headers: { + serializedName: "headers", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + reasonPhrase: { + serializedName: "reasonPhrase", + type: { + name: "String" + } + }, + statusCode: { + serializedName: "statusCode", + type: { + name: "String" + } + }, + version: { + serializedName: "version", + type: { + name: "String" + } + } + } + } +}; + +export const Event: msRest.CompositeMapper = { + serializedName: "Event", + type: { + name: "Composite", + className: "Event", + modelProperties: { + ...EventInfo.type.modelProperties, + eventRequestMessage: { + serializedName: "eventRequestMessage", + type: { + name: "Composite", + className: "EventRequestMessage" + } + }, + eventResponseMessage: { + serializedName: "eventResponseMessage", + type: { + name: "Composite", + className: "EventResponseMessage" + } + } + } + } +}; + +export const CallbackConfig: msRest.CompositeMapper = { + serializedName: "CallbackConfig", + type: { + name: "Composite", + className: "CallbackConfig", + modelProperties: { + serviceUri: { + required: true, + serializedName: "serviceUri", + type: { + name: "String" + } + }, + customHeaders: { + serializedName: "customHeaders", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const 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" } }, - status: { - serializedName: "status", + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + 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" } }, - createTime: { - serializedName: "createTime", + os: { + serializedName: "properties.os", type: { - name: "DateTime" + name: "String" } }, - finishTime: { - serializedName: "finishTime", + virtualNetworkSubnetResourceId: { + serializedName: "properties.virtualNetworkSubnetResourceId", type: { - name: "DateTime" + name: "String" } }, - outputImageManifests: { - serializedName: "outputImageManifests", + 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" } }, - taskName: { - serializedName: "taskName", + agentPoolName: { + serializedName: "agentPoolName", type: { name: "String" } }, - agentPoolName: { - serializedName: "agentPoolName", + logTemplate: { + serializedName: "logTemplate", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", type: { name: "String" } @@ -2834,30 +3426,140 @@ export const RunFilter: msRest.CompositeMapper = { } }; -export const RunUpdateParameters: msRest.CompositeMapper = { - serializedName: "RunUpdateParameters", +export const ImageDescriptor: msRest.CompositeMapper = { + serializedName: "ImageDescriptor", type: { name: "Composite", - className: "RunUpdateParameters", + className: "ImageDescriptor", modelProperties: { - isArchiveEnabled: { - serializedName: "isArchiveEnabled", + registry: { + serializedName: "registry", type: { - name: "Boolean" + 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 +3568,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 +3597,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 +3798,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 +3862,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: { @@ -3389,104 +3914,123 @@ export const Task: 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", + provisioningState: { + 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 +4039,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 +4086,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 +4117,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 +4159,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 +4189,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 +4228,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 +4340,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 +4392,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 +4435,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 +4459,7 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { serializedName: "properties.platform", type: { name: "Composite", - className: "PlatformUpdateParameters" + className: "PlatformProperties" } }, agentConfiguration: { @@ -3800,6 +4477,11 @@ export const TaskUpdateParameters: msRest.CompositeMapper = { }, timeout: { serializedName: "properties.timeout", + defaultValue: 3600, + constraints: { + InclusiveMaximum: 28800, + InclusiveMinimum: 300 + }, type: { name: "Number" } @@ -3808,14 +4490,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 +4507,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 +4552,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 +4715,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 +5036,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 +5100,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 +5179,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 +5262,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 +5325,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 +5445,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 +5505,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 +5831,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 +5844,7 @@ export const WebhookListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Webhook" + className: "ScopeMap" } } } @@ -5190,11 +5859,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 +5872,7 @@ export const EventListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Event" + className: "Token" } } } @@ -5218,11 +5887,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 +5900,7 @@ export const AgentPoolListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "AgentPool" + className: "Webhook" } } } @@ -5246,11 +5915,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 +5928,7 @@ export const RunListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Run" + className: "Event" } } } @@ -5274,11 +5943,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 +5956,7 @@ export const TaskRunListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "TaskRun" + className: "AgentPool" } } } @@ -5302,11 +5971,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 +5984,7 @@ export const TaskListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Task" + className: "Run" } } } @@ -5330,11 +5999,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 +6012,7 @@ export const ScopeMapListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ScopeMap" + className: "TaskRun" } } } @@ -5358,11 +6027,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 +6040,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..4a522a4a809b 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: '2021-08-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..849637fb21eb 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -35,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunListResult, PipelineRunRequest, @@ -70,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/privateEndpointConnectionsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts index a80e3a458518..c8e9162d8cfd 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -35,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -70,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/registriesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts index 2d41555b3437..39b1dcfe7357 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, @@ -28,6 +29,7 @@ export { ErrorResponseBody, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, GenerateCredentialsParameters, @@ -43,8 +45,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -89,13 +94,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..e72fb1930bbc 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -35,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,13 +76,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..e5f7097aee0c 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, @@ -27,6 +28,7 @@ export { ErrorResponseBody, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -37,8 +39,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -74,13 +79,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..f7c4f38fe55f 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -35,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,13 +76,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..ff11914c36ea 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, @@ -27,6 +28,7 @@ export { ErrorResponseBody, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -37,8 +39,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -71,7 +76,9 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskRun, TaskRunListResult, @@ -80,6 +87,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..09a676eae2a6 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, @@ -31,6 +32,7 @@ export { ErrorResponseBody, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, FileTaskStepUpdateParameters, @@ -42,8 +44,11 @@ export { InnerErrorDescription, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -79,7 +84,9 @@ export { SourceTriggerUpdateParameters, SourceUpdateParameters, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Task, TaskListResult, TaskRun, @@ -90,6 +97,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..aa5814ab4423 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, @@ -26,6 +27,7 @@ export { EncryptionProperty, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -35,8 +37,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -69,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/webhooksMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts index 8da5ba555d8a..2036e388a890 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, @@ -34,6 +35,7 @@ export { EventResponseMessage, ExportPipeline, ExportPipelineTargetProperties, + ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, @@ -43,8 +45,11 @@ export { ImportPipelineSourceProperties, IPRule, KeyVaultProperties, + LoggingProperties, + LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, + ParentProperties, PipelineRun, PipelineRunRequest, PipelineRunResponse, @@ -79,7 +84,9 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StorageAccountProperties, + StatusDetailProperties, + SyncProperties, + SystemData, Target, Task, TaskRun, @@ -87,6 +94,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..792a7887ea32 --- /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; + } + + /** + * 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; + } + + /** + * 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; + } + + /** + * 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 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 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 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..f0521ae1ddea 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 @@ -27,6 +26,38 @@ export class ExportPipelines { this.client = client; } + /** + * Lists all export pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the export pipeline. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -90,38 +121,6 @@ export class ExportPipelines { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Lists all export pipelines for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates an export pipeline for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -195,14 +194,13 @@ export class ExportPipelines { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.exportPipelineName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -212,7 +210,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ExportPipeline + bodyMapper: Mappers.ExportPipelineListResult }, default: { bodyMapper: Mappers.CloudError @@ -221,13 +219,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.exportPipelineName ], queryParameters: [ Parameters.apiVersion0 @@ -237,7 +236,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ExportPipelineListResult + bodyMapper: Mappers.ExportPipeline }, default: { bodyMapper: Mappers.CloudError @@ -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..4134dbbcb006 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 @@ -27,6 +26,38 @@ export class ImportPipelines { this.client = client; } + /** + * Lists all import pipelines for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the import pipeline. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -90,38 +121,6 @@ export class ImportPipelines { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Lists all import pipelines for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates an import pipeline for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -195,14 +194,13 @@ export class ImportPipelines { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.importPipelineName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -212,7 +210,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ImportPipeline + bodyMapper: Mappers.ImportPipelineListResult }, default: { bodyMapper: Mappers.CloudError @@ -221,13 +219,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.importPipelineName ], queryParameters: [ Parameters.apiVersion0 @@ -237,7 +236,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ImportPipelineListResult + bodyMapper: Mappers.ImportPipeline }, default: { bodyMapper: Mappers.CloudError @@ -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..0aff5385fa1e 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 @@ -27,6 +26,38 @@ export class PipelineRuns { this.client = client; } + /** + * Lists all the pipeline runs for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the detailed information for a given pipeline run. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -90,38 +121,6 @@ export class PipelineRuns { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * Lists all the pipeline runs for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates a pipeline run for a container registry with the specified parameters * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -195,14 +194,13 @@ export class PipelineRuns { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.pipelineRunName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -212,7 +210,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PipelineRun + bodyMapper: Mappers.PipelineRunListResult }, default: { bodyMapper: Mappers.CloudError @@ -221,13 +219,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.pipelineRunName ], queryParameters: [ Parameters.apiVersion0 @@ -237,7 +236,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PipelineRunListResult + bodyMapper: Mappers.PipelineRun }, default: { bodyMapper: Mappers.CloudError @@ -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..c1f27c275b06 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 @@ -27,6 +26,38 @@ export class PrivateEndpointConnections { this.client = client; } + /** + * List all private endpoint connections in a container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Get the specified private endpoint connection associated with the container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -91,38 +122,6 @@ export class PrivateEndpointConnections { .then(lroPoller => lroPoller.pollUntilFinished()); } - /** - * List all private endpoint connections in a container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Update the state of specified private endpoint connection associated with the container * registry. @@ -197,14 +196,13 @@ export class PrivateEndpointConnections { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.privateEndpointConnectionName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -214,7 +212,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnectionListResult }, default: { bodyMapper: Mappers.CloudError @@ -223,13 +221,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections/{privateEndpointConnectionName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.privateEndpointConnectionName ], queryParameters: [ Parameters.apiVersion0 @@ -239,7 +238,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnection }, default: { bodyMapper: Mappers.CloudError @@ -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..a83ca63044ed 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 @@ -69,6 +68,58 @@ export class Registries { callback) as Promise; } + /** + * Lists all the container registries under the specified subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all the container registries under the specified resource group. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the specified container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -140,55 +191,67 @@ export class Registries { } /** - * Lists all the container registries under the specified resource group. + * Gets the quota usages for the specified container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + listUsages(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. * @param options The optional parameters * @param callback The callback */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listUsages(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, + registryName, options }, - listByResourceGroupOperationSpec, - callback) as Promise; + listUsagesOperationSpec, + callback) as Promise; } /** - * Lists all the container registries under the specified subscription. + * Lists the private link resources for a container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - list(options?: msRest.RequestOptionsBase): Promise; + listPrivateLinkResources(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + listPrivateLinkResources(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(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listPrivateLinkResources(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listPrivateLinkResources(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { + resourceGroupName, + registryName, options }, - listOperationSpec, - callback) as Promise; + listPrivateLinkResourcesOperationSpec, + callback) as Promise; } /** @@ -263,67 +326,16 @@ export class Registries { } /** - * Gets the quota usages for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - listUsages(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - listUsages(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listUsages(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listUsagesOperationSpec, - callback) as Promise; - } - - /** - * Lists the private link resources for a container registry. + * 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 - */ - listPrivateLinkResources(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - listPrivateLinkResources(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 + * @returns Promise */ - listPrivateLinkResources(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listPrivateLinkResources(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listPrivateLinkResourcesOperationSpec, - callback) as 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; } /** @@ -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,99 +462,99 @@ 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); } /** - * Lists all the container registries under the specified resource group. + * Lists all the container registries under the specified subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + 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 */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + listNextOperationSpec, + callback) as Promise; } /** - * Lists all the container registries under the specified subscription. + * Lists all the container registries under the specified resource group. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listNextOperationSpec, - callback) as Promise; + listByResourceGroupNextOperationSpec, + callback) as Promise; } /** @@ -619,13 +618,11 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries", urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion0 @@ -635,7 +632,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.Registry + bodyMapper: Mappers.RegistryListResult }, default: { bodyMapper: Mappers.CloudError @@ -668,11 +665,13 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}", urlParameters: [ - Parameters.subscriptionId + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -682,7 +681,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.RegistryListResult + bodyMapper: Mappers.Registry }, default: { bodyMapper: Mappers.CloudError @@ -691,9 +690,9 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; -const listCredentialsOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials", +const listUsagesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -707,7 +706,7 @@ const listCredentialsOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.RegistryListCredentialsResult + bodyMapper: Mappers.RegistryUsageListResult }, default: { bodyMapper: Mappers.CloudError @@ -716,9 +715,9 @@ const listCredentialsOperationSpec: msRest.OperationSpec = { serializer }; -const regenerateCredentialOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential", +const listPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -730,16 +729,9 @@ const regenerateCredentialOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "regenerateCredentialParameters", - mapper: { - ...Mappers.RegenerateCredentialParameters, - required: true - } - }, responses: { 200: { - bodyMapper: Mappers.RegistryListCredentialsResult + bodyMapper: Mappers.PrivateLinkResourceListResult }, default: { bodyMapper: Mappers.CloudError @@ -748,9 +740,9 @@ const regenerateCredentialOperationSpec: msRest.OperationSpec = { serializer }; -const listUsagesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages", +const listCredentialsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -764,7 +756,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.RegistryUsageListResult + bodyMapper: Mappers.RegistryListCredentialsResult }, default: { bodyMapper: Mappers.CloudError @@ -773,9 +765,9 @@ const listUsagesOperationSpec: msRest.OperationSpec = { serializer }; -const listPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources", +const regenerateCredentialOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -787,9 +779,16 @@ const listPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "regenerateCredentialParameters", + mapper: { + ...Mappers.RegenerateCredentialParameters, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult + bodyMapper: Mappers.RegistryListCredentialsResult }, default: { bodyMapper: Mappers.CloudError @@ -949,79 +948,82 @@ 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 }; -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { +const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1036,13 +1038,16 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { serializer }; -const listNextOperationSpec: msRest.OperationSpec = { +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", 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..5b22bbbeefba 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 @@ -27,6 +26,38 @@ export class Replications { this.client = client; } + /** + * Lists all the replications for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the specified replication. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -104,38 +135,6 @@ export class Replications { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Lists all the replications for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates a replication for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -231,14 +230,13 @@ export class Replications { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.replicationName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -248,7 +246,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.Replication + bodyMapper: Mappers.ReplicationListResult }, default: { bodyMapper: Mappers.CloudError @@ -257,13 +255,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.replicationName ], queryParameters: [ Parameters.apiVersion0 @@ -273,7 +272,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ReplicationListResult + bodyMapper: Mappers.Replication }, default: { bodyMapper: Mappers.CloudError @@ -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..c144a9a6442d 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 @@ -27,6 +26,38 @@ export class ScopeMaps { this.client = client; } + /** + * Lists all the scope maps for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the specified scope map. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -104,38 +135,6 @@ export class ScopeMaps { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Lists all the scope maps for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates a scope map for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -231,24 +230,23 @@ export class ScopeMaps { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.scopeMapName + Parameters.registryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ScopeMap + bodyMapper: Mappers.ScopeMapListResult }, default: { bodyMapper: Mappers.CloudError @@ -257,23 +255,24 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.scopeMapName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.ScopeMapListResult + bodyMapper: Mappers.ScopeMap }, default: { bodyMapper: Mappers.CloudError @@ -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..c4364ece9b3a 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 @@ -27,6 +26,38 @@ export class Tokens { this.client = client; } + /** + * Lists all the tokens for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the specified token. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -104,38 +135,6 @@ export class Tokens { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Lists all the tokens for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Creates a token for a container registry with the specified parameters. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -231,24 +230,23 @@ export class Tokens { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.tokenName + Parameters.registryName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.Token + bodyMapper: Mappers.TokenListResult }, default: { bodyMapper: Mappers.CloudError @@ -257,23 +255,24 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.tokenName ], queryParameters: [ - Parameters.apiVersion2 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.TokenListResult + bodyMapper: Mappers.Token }, default: { bodyMapper: Mappers.CloudError @@ -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..cd319fe51498 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 @@ -27,6 +26,38 @@ export class Webhooks { this.client = client; } + /** + * Lists all the webhooks for the specified container registry. + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group to which the container registry belongs. + * @param registryName The name of the container registry. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + options + }, + listOperationSpec, + callback) as Promise; + } + /** * Gets the properties of the specified webhook. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -104,38 +135,6 @@ export class Webhooks { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Lists all the webhooks for the specified container registry. - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param registryName The name of the container registry. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, registryName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, registryName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - options - }, - listOperationSpec, - callback) as Promise; - } - /** * Triggers a ping event to be sent to the webhook. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -173,21 +172,21 @@ export class Webhooks { } /** - * Gets the configuration of service URI and custom headers for the webhook. + * Lists recent events for the specified webhook. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase): Promise; + listEvents(resourceGroupName: string, registryName: string, webhookName: 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 webhookName The name of the webhook. * @param callback The callback */ - getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, callback: msRest.ServiceCallback): void; + listEvents(resourceGroupName: string, registryName: string, webhookName: 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. @@ -195,8 +194,8 @@ export class Webhooks { * @param options The optional parameters * @param callback The callback */ - getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listEvents(resourceGroupName: string, registryName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -204,26 +203,26 @@ export class Webhooks { webhookName, options }, - getCallbackConfigOperationSpec, - callback) as Promise; + listEventsOperationSpec, + callback) as Promise; } /** - * Lists recent events for the specified webhook. + * Gets the configuration of service URI and custom headers for the webhook. * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. * @param webhookName The name of the webhook. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase): Promise; + getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: 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 webhookName The name of the webhook. * @param callback The callback */ - listEvents(resourceGroupName: string, registryName: string, webhookName: string, callback: msRest.ServiceCallback): void; + getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: 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. @@ -231,8 +230,8 @@ export class Webhooks { * @param options The optional parameters * @param callback The callback */ - listEvents(resourceGroupName: string, registryName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listEvents(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getCallbackConfig(resourceGroupName: string, registryName: string, webhookName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -240,8 +239,8 @@ export class Webhooks { webhookName, options }, - listEventsOperationSpec, - callback) as Promise; + getCallbackConfigOperationSpec, + callback) as Promise; } /** @@ -367,14 +366,13 @@ export class Webhooks { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName, - Parameters.webhookName + Parameters.registryName ], queryParameters: [ Parameters.apiVersion0 @@ -384,7 +382,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.Webhook + bodyMapper: Mappers.WebhookListResult }, default: { bodyMapper: Mappers.CloudError @@ -393,13 +391,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.registryName + Parameters.registryName, + Parameters.webhookName ], queryParameters: [ Parameters.apiVersion0 @@ -409,7 +408,7 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.WebhookListResult + bodyMapper: Mappers.Webhook }, default: { bodyMapper: Mappers.CloudError @@ -444,9 +443,9 @@ const pingOperationSpec: msRest.OperationSpec = { serializer }; -const getCallbackConfigOperationSpec: msRest.OperationSpec = { +const listEventsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -461,7 +460,7 @@ const getCallbackConfigOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.CallbackConfig + bodyMapper: Mappers.EventListResult }, default: { bodyMapper: Mappers.CloudError @@ -470,9 +469,9 @@ const getCallbackConfigOperationSpec: msRest.OperationSpec = { serializer }; -const listEventsOperationSpec: msRest.OperationSpec = { +const getCallbackConfigOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, @@ -487,7 +486,7 @@ const listEventsOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.EventListResult + bodyMapper: Mappers.CallbackConfig }, default: { bodyMapper: Mappers.CloudError @@ -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 ],