diff --git a/sdk/containerregistry/arm-containerregistry/README.md b/sdk/containerregistry/arm-containerregistry/README.md index f7f335918d1a..16ba63802214 100644 --- a/sdk/containerregistry/arm-containerregistry/README.md +++ b/sdk/containerregistry/arm-containerregistry/README.md @@ -36,7 +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 list connectedRegistries as an example written in JavaScript. +#### nodejs - Authentication, client creation, and list registries as an example written in JavaScript. ##### Sample code @@ -49,10 +49,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new ContainerRegistryManagementClient(creds, subscriptionId); -const resourceGroupName = "testresourceGroupName"; -const registryName = "testregistryName"; -const filter = "testfilter"; -client.connectedRegistries.list(resourceGroupName, registryName, filter).then((result) => { +client.registries.list().then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -61,7 +58,7 @@ client.connectedRegistries.list(resourceGroupName, registryName, filter).then((r }); ``` -#### browser - Authentication, client creation, and list connectedRegistries as an example written in JavaScript. +#### browser - Authentication, client creation, and list registries 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. @@ -89,10 +86,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t tenant: "" }); const client = new Azure.ArmContainerregistry.ContainerRegistryManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const registryName = "testregistryName"; - const filter = "testfilter"; - client.connectedRegistries.list(resourceGroupName, registryName, filter).then((result) => { + client.registries.list().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 3ba1516c760f..f6f7792862b1 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/main/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/src/containerRegistryManagementClient.ts b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts index 2e187409f719..5d87d7b7b489 100644 --- a/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts +++ b/sdk/containerregistry/arm-containerregistry/src/containerRegistryManagementClient.ts @@ -17,16 +17,10 @@ import { ContainerRegistryManagementClientContext } from "./containerRegistryMan class ContainerRegistryManagementClient extends ContainerRegistryManagementClientContext { // Operation groups - connectedRegistries: operations.ConnectedRegistries; - exportPipelines: operations.ExportPipelines; registries: operations.Registries; - importPipelines: operations.ImportPipelines; operations: operations.Operations; - pipelineRuns: operations.PipelineRuns; privateEndpointConnections: operations.PrivateEndpointConnections; replications: operations.Replications; - scopeMaps: operations.ScopeMaps; - tokens: operations.Tokens; webhooks: operations.Webhooks; agentPools: operations.AgentPools; runs: operations.Runs; @@ -46,16 +40,10 @@ 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); this.operations = new operations.Operations(this); - 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); diff --git a/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts index b8cd6d37f474..66804400f64f 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/agentPoolsMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentPoolListResult, AgentPoolQueueStatus, @@ -19,7 +18,6 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -29,39 +27,22 @@ export { 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, @@ -70,7 +51,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -79,8 +59,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -88,15 +66,8 @@ export { 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/connectedRegistriesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts deleted file mode 100644 index 22b0218938f0..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/connectedRegistriesMappers.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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 deleted file mode 100644 index e502fa093f0f..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/exportPipelinesMappers.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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, - CloudError, - ConnectedRegistry, - Credentials, - CustomRegistryCredentials, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - EncryptionProperty, - ExportPipeline, - ExportPipelineListResult, - ExportPipelineTargetProperties, - ExportPolicy, - FileTaskRunRequest, - FileTaskStep, - IdentityProperties, - ImageDescriptor, - ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, - 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, - 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/importPipelinesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts deleted file mode 100644 index f2870242a170..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/importPipelinesMappers.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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, - CloudError, - ConnectedRegistry, - Credentials, - CustomRegistryCredentials, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, - ExportPolicy, - FileTaskRunRequest, - FileTaskStep, - IdentityProperties, - ImageDescriptor, - ImageUpdateTrigger, - ImportPipeline, - ImportPipelineListResult, - ImportPipelineSourceProperties, - 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, - 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/index.ts b/sdk/containerregistry/arm-containerregistry/src/models/index.ts index bd1358c1efbc..53fa34702006 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/index.ts @@ -12,160 +12,239 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; /** - * The activation properties of the connected registry. + * An interface representing ImportSourceCredentials. */ -export interface ActivationProperties { +export interface ImportSourceCredentials { /** - * 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.** + * The username to authenticate with the source registry. + */ + username?: string; + /** + * The password used to authenticate with the source registry. */ - readonly status?: ActivationStatus; + password: string; } /** - * The sync properties of the connected registry with its parent. + * An interface representing ImportSource. */ -export interface SyncProperties { +export interface ImportSource { /** - * The resource ID of the ACR token used to authenticate the connected registry to its parent - * during sync. + * The resource identifier of the source Azure Container Registry. */ - tokenId: string; + resourceId?: string; /** - * The cron expression indicating the schedule that the connected registry will sync with its - * parent. + * The address of the source registry (e.g. 'mcr.microsoft.com'). */ - schedule?: string; + registryUri?: 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. + * Credentials used when importing from a registry uri. */ - syncWindow?: string; + credentials?: ImportSourceCredentials; /** - * 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. + * Repository name of the source image. + * Specify an image by repository ('hello-world'). This will use the 'latest' tag. + * Specify an image by tag ('hello-world:latest'). + * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). */ - messageTtl: string; + sourceImage: string; +} + +/** + * An interface representing ImportImageParameters. + */ +export interface ImportImageParameters { /** - * 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.** + * The source of the image. + */ + source: ImportSource; + /** + * List of strings of the form repo[:tag]. When tag is omitted the source will be used (or + * 'latest' if source tag is also omitted). */ - readonly lastSyncTime?: Date; + targetTags?: string[]; /** - * 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.** + * List of strings of repository names to do a manifest only copy. No tag will be created. + */ + untaggedTargetRepositories?: string[]; + /** + * When Force, any existing target tags will be overwritten. When NoForce, any existing target + * tags will fail the operation before any copying begins. Possible values include: 'NoForce', + * 'Force'. Default value: 'NoForce'. */ - readonly gatewayEndpoint?: string; + mode?: ImportMode; } /** - * The properties of the connected registry parent. + * The display information for a container registry operation. */ -export interface ParentProperties { +export interface OperationDisplayDefinition { /** - * The resource ID of the parent to which the connected registry will be associated. + * The resource provider name: Microsoft.ContainerRegistry. */ - id?: string; + provider?: string; + /** + * The resource on which the operation is performed. + */ + resource?: string; + /** + * The operation that users can perform. + */ + operation?: string; /** - * The sync properties of the connected registry with its parent. + * The description for the operation. */ - syncProperties: SyncProperties; + description?: string; } /** - * The TLS certificate properties of the connected registry login server. + * The definition of Azure Monitoring metric. */ -export interface TlsCertificateProperties { +export interface OperationMetricSpecificationDefinition { /** - * The type of certificate location. Possible values include: 'LocalDirectory' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric name. */ - readonly type?: CertificateType; + name?: string; /** - * Indicates the location of the certificates. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Metric display name. + */ + displayName?: string; + /** + * Metric description. + */ + displayDescription?: string; + /** + * Metric unit. + */ + unit?: string; + /** + * Metric aggregation type. */ - readonly location?: string; + aggregationType?: string; + /** + * Internal metric name. + */ + internalMetricName?: string; } /** - * The TLS properties of the connected registry login server. + * The definition of Azure Monitoring log. */ -export interface TlsProperties { +export interface OperationLogSpecificationDefinition { /** - * 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.** + * Log name. */ - readonly status?: TlsStatus; + name?: string; /** - * 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.** + * Log display name. + */ + displayName?: string; + /** + * Log blob duration. */ - readonly certificate?: TlsCertificateProperties; + blobDuration?: string; } /** - * The login server properties of the connected registry. + * The definition of Azure Monitoring list. */ -export interface LoginServerProperties { +export interface OperationServiceSpecificationDefinition { /** - * 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.** + * A list of Azure Monitoring metrics definition. */ - readonly host?: string; + metricSpecifications?: OperationMetricSpecificationDefinition[]; /** - * The TLS properties of the connected registry login server. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A list of Azure Monitoring log definitions. */ - readonly tls?: TlsProperties; + logSpecifications?: OperationLogSpecificationDefinition[]; } /** - * The logging properties of the connected registry. + * The definition of a container registry operation. */ -export interface LoggingProperties { +export interface OperationDefinition { + /** + * The origin information of the container registry operation. + */ + origin?: string; + /** + * Operation name: {provider}/{resource}/{operation}. + */ + name?: string; + /** + * The display information for the container registry operation. + */ + display?: OperationDisplayDefinition; /** - * The verbosity of logs persisted on the connected registry. Possible values include: 'Debug', - * 'Information', 'Warning', 'Error', 'None'. Default value: 'Information'. + * The definition of Azure Monitoring service. */ - logLevel?: LogLevel; + serviceSpecification?: OperationServiceSpecificationDefinition; /** - * Indicates whether audit logs are enabled on the connected registry. Possible values include: - * 'Enabled', 'Disabled'. Default value: 'Disabled'. + * 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 */ - auditLogStatus?: AuditLogStatus; + isDataAction?: boolean; } /** - * The status detail properties of the connected registry. + * A request to check whether a container registry name is available. */ -export interface StatusDetailProperties { +export interface RegistryNameCheckRequest { /** - * 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.** + * The name of the container registry. */ - readonly type?: string; + name: string; +} + +/** + * The result of a request to check the availability of a container registry name. + */ +export interface RegistryNameStatus { /** - * The code of the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The value that indicates whether the name is available. */ - readonly code?: string; + nameAvailable?: boolean; /** - * The description of the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * If any, the reason that the name is not available. */ - readonly description?: string; + reason?: string; /** - * The timestamp of the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * If any, the error message that provides more detail for the reason that the name is not + * available. */ - readonly timestamp?: Date; + message?: string; +} + +/** + * The Private Endpoint resource. + */ +export interface PrivateEndpoint { /** - * The correlation ID of the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * This is private endpoint resource created with Microsoft.Network resource provider. + */ + id?: string; +} + +/** + * The state of a private link service connection. + */ +export interface PrivateLinkServiceConnectionState { + /** + * The private link service connection status. Possible values include: 'Approved', 'Pending', + * 'Rejected', 'Disconnected' + */ + status?: ConnectionStatus; + /** + * The description for connection status. For example if connection is rejected it can indicate + * reason for rejection. + */ + description?: string; + /** + * A message indicating if changes on the service provider require any updates on the consumer. + * Possible values include: 'None', 'Recreate' */ - readonly correlationId?: string; + actionsRequired?: ActionsRequired; } /** @@ -196,66 +275,24 @@ export interface ProxyResource extends BaseResource { } /** - * An object that represents a connected registry for a container registry. + * An object that represents a private endpoint connection 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[]; +export interface PrivateEndpointConnection extends ProxyResource { /** - * The login server properties of the connected registry. + * The resource of private endpoint. */ - loginServer?: LoginServerProperties; + privateEndpoint?: PrivateEndpoint; /** - * The logging properties of the connected registry. + * A collection of information about the state of the connection between service consumer and + * provider. */ - logging?: LoggingProperties; + privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; /** - * The list of current statuses of the connected registry. + * The provisioning state of private endpoint connection 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 statusDetails?: StatusDetailProperties[]; - /** - * The list of notifications subscription information for the connected registry. - */ - notificationsList?: string[]; + readonly provisioningState?: ProvisioningState; } /** @@ -291,46 +328,20 @@ export interface SystemData { } /** - * 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. + * The SKU of a container 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; +export interface Sku { /** - * The list of the ACR token resource IDs used to authenticate clients to the connected registry. + * The SKU name of the container registry. Required for registry creation. Possible values + * include: 'Classic', 'Basic', 'Standard', 'Premium' */ - clientTokenIds?: string[]; + name: SkuName; /** - * The list of notifications subscription information for the connected registry. + * The SKU tier based on the SKU name. Possible values include: 'Classic', 'Basic', 'Standard', + * 'Premium' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - notificationsList?: string[]; + readonly tier?: SkuTier; } /** @@ -374,2443 +385,2342 @@ export interface IdentityProperties { } /** - * The properties of the export pipeline target. + * The status of an Azure resource at the time the operation was called. */ -export interface ExportPipelineTargetProperties { +export interface Status { /** - * The type of target for the export pipeline. + * The short label for the status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - type?: string; + readonly displayStatus?: string; /** - * The target uri of the export pipeline. - * When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName" - * When 'AzureStorageBlobContainer': "https://accountName.blob.core.windows.net/containerName" + * The detailed message for the status, including alerts and error messages. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - uri?: string; + readonly message?: string; /** - * They key vault secret uri to obtain the target storage SAS token. + * The timestamp when the status was changed to the current value. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keyVaultUri: string; + readonly timestamp?: Date; } /** - * An object that represents an export pipeline for a container registry. + * IP rule with specific IP or IP range in CIDR format. */ -export interface ExportPipeline extends ProxyResource { +export interface IPRule { /** - * The location of the export pipeline. + * The action of IP ACL rule. Possible values include: 'Allow'. Default value: 'Allow'. */ - location?: string; + action?: Action; /** - * The identity of the export pipeline. + * Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. */ - identity?: IdentityProperties; - /** - * The target properties of the export pipeline. - */ - target: ExportPipelineTargetProperties; + iPAddressOrRange: string; +} + +/** + * The network rule set for a container registry. + */ +export interface NetworkRuleSet { /** - * The list of all options configured for the pipeline. + * The default action of allow or deny when no other rules match. Possible values include: + * 'Allow', 'Deny'. Default value: 'Allow'. */ - options?: PipelineOptions[]; + defaultAction: DefaultAction; /** - * 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.** + * The IP ACL rules. */ - readonly provisioningState?: ProvisioningState; + ipRules?: IPRule[]; } /** - * An Azure resource. + * The quarantine policy for a container registry. */ -export interface Resource extends BaseResource { +export interface QuarantinePolicy { /** - * The resource ID. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The value that indicates whether the policy is enabled or not. Possible values include: + * 'enabled', 'disabled'. Default value: 'disabled'. */ - readonly id?: string; + status?: PolicyStatus; +} + +/** + * The content trust policy for a container registry. + */ +export interface TrustPolicy { /** - * The name of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The type of trust policy. Possible values include: 'Notary'. Default value: 'Notary'. */ - readonly name?: string; + type?: TrustPolicyType; /** - * The type of the resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The value that indicates whether the policy is enabled or not. Possible values include: + * 'enabled', 'disabled'. Default value: 'disabled'. */ - readonly type?: string; + status?: PolicyStatus; +} + +/** + * The retention policy for a container registry. + */ +export interface RetentionPolicy { /** - * The location of the resource. This cannot be changed after the resource is created. + * The number of days to retain an untagged manifest after which it gets purged. Default value: + * 7. */ - location: string; + days?: number; /** - * The tags of the resource. + * The timestamp when the policy was last updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly lastUpdatedTime?: Date; /** - * 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.** + * The value that indicates whether the policy is enabled or not. Possible values include: + * 'enabled', 'disabled'. Default value: 'disabled'. */ - readonly systemData?: SystemData; + status?: PolicyStatus; } /** - * An interface representing ImportSourceCredentials. + * The export policy for a container registry. */ -export interface ImportSourceCredentials { - /** - * The username to authenticate with the source registry. - */ - username?: string; +export interface ExportPolicy { /** - * The password used to authenticate with the source registry. + * The value that indicates whether the policy is enabled or not. Possible values include: + * 'enabled', 'disabled'. Default value: 'enabled'. */ - password: string; + status?: ExportPolicyStatus; } /** - * An interface representing ImportSource. + * The policies for a container registry. */ -export interface ImportSource { +export interface Policies { /** - * The resource identifier of the source Azure Container Registry. + * The quarantine policy for a container registry. */ - resourceId?: string; + quarantinePolicy?: QuarantinePolicy; /** - * The address of the source registry (e.g. 'mcr.microsoft.com'). + * The content trust policy for a container registry. */ - registryUri?: string; + trustPolicy?: TrustPolicy; /** - * Credentials used when importing from a registry uri. + * The retention policy for a container registry. */ - credentials?: ImportSourceCredentials; + retentionPolicy?: RetentionPolicy; /** - * Repository name of the source image. - * Specify an image by repository ('hello-world'). This will use the 'latest' tag. - * Specify an image by tag ('hello-world:latest'). - * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). + * The export policy for a container registry. */ - sourceImage: string; + exportPolicy?: ExportPolicy; } /** - * An interface representing ImportImageParameters. + * An interface representing KeyVaultProperties. */ -export interface ImportImageParameters { +export interface KeyVaultProperties { /** - * The source of the image. + * Key vault uri to access the encryption key. */ - source: ImportSource; + keyIdentifier?: string; /** - * List of strings of the form repo[:tag]. When tag is omitted the source will be used (or - * 'latest' if source tag is also omitted). + * The fully qualified key identifier that includes the version of the key that is actually used + * for encryption. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - targetTags?: string[]; + readonly versionedKeyIdentifier?: string; /** - * List of strings of repository names to do a manifest only copy. No tag will be created. + * The client id of the identity which will be used to access key vault. */ - untaggedTargetRepositories?: string[]; + identity?: string; /** - * When Force, any existing target tags will be overwritten. When NoForce, any existing target - * tags will fail the operation before any copying begins. Possible values include: 'NoForce', - * 'Force'. Default value: 'NoForce'. + * Auto key rotation status for a CMK enabled registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - mode?: ImportMode; + 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; } /** - * The properties of the import pipeline source. + * An interface representing EncryptionProperty. */ -export interface ImportPipelineSourceProperties { - /** - * The type of source for the import pipeline. Possible values include: - * 'AzureStorageBlobContainer'. Default value: 'AzureStorageBlobContainer'. - */ - type?: PipelineSourceType; +export interface EncryptionProperty { /** - * The source uri of the import pipeline. - * When 'AzureStorageBlob': "https://accountName.blob.core.windows.net/containerName/blobName" - * When 'AzureStorageBlobContainer': "https://accountName.blob.core.windows.net/containerName" + * Indicates whether or not the encryption is enabled for container registry. Possible values + * include: 'enabled', 'disabled' */ - uri?: string; + status?: EncryptionStatus; /** - * They key vault secret uri to obtain the source storage SAS token. + * Key vault properties. */ - keyVaultUri: string; + keyVaultProperties?: KeyVaultProperties; } /** - * An interface representing PipelineSourceTriggerProperties. + * An Azure resource. */ -export interface PipelineSourceTriggerProperties { +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 current status of the source trigger. Possible values include: 'Enabled', 'Disabled'. - * Default value: 'Enabled'. + * The name of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - status: TriggerStatus; -} - -/** - * An interface representing PipelineTriggerProperties. - */ -export interface PipelineTriggerProperties { + 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 source trigger properties of the pipeline. + * 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 }; + /** + * 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.** */ - sourceTrigger?: PipelineSourceTriggerProperties; + readonly systemData?: SystemData; } /** - * An object that represents an import pipeline for a container registry. + * An object that represents a container registry. */ -export interface ImportPipeline extends ProxyResource { +export interface Registry extends Resource { /** - * The location of the import pipeline. + * The SKU of the container registry. */ - location?: string; + sku: Sku; /** - * The identity of the import pipeline. + * The identity of the container registry. */ identity?: IdentityProperties; /** - * The source properties of the import pipeline. + * The URL that can be used to log into the container registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - source: ImportPipelineSourceProperties; + readonly loginServer?: string; /** - * The properties that describe the trigger of the import pipeline. + * The creation date of the container registry in ISO8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - trigger?: PipelineTriggerProperties; + readonly creationDate?: Date; /** - * The list of all options configured for the pipeline. + * The provisioning state of the container registry at the time the operation was called. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - options?: PipelineOptions[]; + readonly provisioningState?: ProvisioningState; /** - * The provisioning state of the pipeline at the time the operation was called. Possible values - * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * The status of the container registry at the time the operation was called. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; -} - -/** - * The display information for a container registry operation. - */ -export interface OperationDisplayDefinition { + readonly status?: Status; /** - * The resource provider name: Microsoft.ContainerRegistry. + * The value that indicates whether the admin user is enabled. Default value: false. */ - provider?: string; + adminUserEnabled?: boolean; /** - * The resource on which the operation is performed. + * The network rule set for a container registry. */ - resource?: string; + networkRuleSet?: NetworkRuleSet; /** - * The operation that users can perform. + * The policies for a container registry. */ - operation?: string; + policies?: Policies; /** - * The description for the operation. + * The encryption settings of container registry. */ - description?: string; -} - -/** - * The definition of Azure Monitoring metric. - */ -export interface OperationMetricSpecificationDefinition { + encryption?: EncryptionProperty; /** - * Metric name. + * Enable a single data endpoint per region for serving data. */ - name?: string; + dataEndpointEnabled?: boolean; /** - * Metric display name. + * List of host names that will serve data when dataEndpointEnabled is true. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayName?: string; + readonly dataEndpointHostNames?: string[]; /** - * Metric description. + * List of private endpoint connections for a container registry. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - displayDescription?: string; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** - * Metric unit. + * Whether or not public network access is allowed for the container registry. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ - unit?: string; + publicNetworkAccess?: PublicNetworkAccess; /** - * Metric aggregation type. + * Whether to allow trusted Azure services to access a network restricted registry. Possible + * values include: 'AzureServices', 'None'. Default value: 'AzureServices'. */ - aggregationType?: string; + networkRuleBypassOptions?: NetworkRuleBypassOptions; /** - * Internal metric name. + * Whether or not zone redundancy is enabled for this container registry. Possible values + * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - internalMetricName?: string; + zoneRedundancy?: ZoneRedundancy; } /** - * The definition of Azure Monitoring log. + * The properties of a storage account for a container registry. Only applicable to Classic SKU. */ -export interface OperationLogSpecificationDefinition { +export interface StorageAccountProperties { /** - * Log name. + * The resource ID of the storage account. */ - name?: string; + id: string; +} + +/** + * The properties of a package type. + */ +export interface PackageType { /** - * Log display name. + * The name of the package type. */ - displayName?: string; + name?: string; /** - * Log blob duration. + * The endpoint of the package type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - blobDuration?: string; + readonly endpoint?: string; } /** - * The definition of Azure Monitoring list. + * The parameters for updating a container registry. */ -export interface OperationServiceSpecificationDefinition { +export interface RegistryUpdateParameters { /** - * A list of Azure Monitoring metrics definition. + * The identity of the container registry. */ - metricSpecifications?: OperationMetricSpecificationDefinition[]; + identity?: IdentityProperties; /** - * A list of Azure Monitoring log definitions. + * The tags for the container registry. */ - logSpecifications?: OperationLogSpecificationDefinition[]; + tags?: { [propertyName: string]: string }; + /** + * The SKU of the container registry. + */ + sku?: Sku; + /** + * The value that indicates whether the admin user is enabled. + */ + adminUserEnabled?: boolean; + /** + * The network rule set for a container registry. + */ + 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; } /** - * The definition of a container registry operation. + * The quota usage for a container registry. */ -export interface OperationDefinition { - /** - * The origin information of the container registry operation. - */ - origin?: string; +export interface RegistryUsage { /** - * Operation name: {provider}/{resource}/{operation}. + * The name of the usage. */ name?: string; /** - * The display information for the container registry operation. + * The limit of the usage. */ - display?: OperationDisplayDefinition; + limit?: number; /** - * The definition of Azure Monitoring service. + * The current value of the usage. */ - serviceSpecification?: OperationServiceSpecificationDefinition; + currentValue?: number; /** - * 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 + * The unit of measurement. Possible values include: 'Count', 'Bytes' */ - isDataAction?: boolean; + unit?: RegistryUsageUnit; } /** - * A request to check whether a container registry name is available. + * The result of a request to get container registry quota usages. */ -export interface RegistryNameCheckRequest { +export interface RegistryUsageListResult { /** - * The name of the container registry. + * The list of container registry quota usages. */ - name: string; + value?: RegistryUsage[]; } /** - * The result of a request to check the availability of a container registry name. + * A resource that supports private link capabilities. */ -export interface RegistryNameStatus { +export interface PrivateLinkResource { /** - * The value that indicates whether the name is available. + * The resource type is private link resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nameAvailable?: boolean; + readonly type?: string; /** - * If any, the reason that the name is not available. + * The resource ID. */ - reason?: string; + id?: string; /** - * If any, the error message that provides more detail for the reason that the name is not - * available. + * The name of the resource. */ - message?: string; + 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[]; } /** - * An interface representing PipelineRunSourceProperties. + * The login password for the container registry. */ -export interface PipelineRunSourceProperties { +export interface RegistryPassword { /** - * The type of the source. Possible values include: 'AzureStorageBlob'. Default value: - * 'AzureStorageBlob'. + * The password name. Possible values include: 'password', 'password2' */ - type?: PipelineRunSourceType; + name?: PasswordName; /** - * The name of the source. + * The password value. */ - name?: string; + value?: string; } /** - * An interface representing PipelineRunTargetProperties. + * The response from the ListCredentials operation. */ -export interface PipelineRunTargetProperties { +export interface RegistryListCredentialsResult { /** - * The type of the target. Possible values include: 'AzureStorageBlob'. Default value: - * 'AzureStorageBlob'. + * The username for a container registry. */ - type?: PipelineRunTargetType; + username?: string; /** - * The name of the target. + * The list of passwords for a container registry. */ - name?: string; + passwords?: RegistryPassword[]; } /** - * The request properties provided for a pipeline run. + * The parameters used to regenerate the login credential. */ -export interface PipelineRunRequest { +export interface RegenerateCredentialParameters { /** - * The resource ID of the pipeline to run. + * Specifies name of the password which should be regenerated -- password or password2. Possible + * values include: 'password', 'password2' */ - pipelineResourceId?: string; + name: PasswordName; +} + +/** + * An object that represents a replication for a container registry. + */ +export interface Replication extends Resource { /** - * List of source artifacts to be transferred by the pipeline. - * Specify an image by repository ('hello-world'). This will use the 'latest' tag. - * Specify an image by tag ('hello-world:latest'). - * Specify an image by sha256-based manifest digest ('hello-world@sha256:abc123'). + * 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.** */ - artifacts?: string[]; + readonly provisioningState?: ProvisioningState; /** - * The source properties of the pipeline run. + * 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.** */ - source?: PipelineRunSourceProperties; + readonly status?: Status; /** - * The target properties of the pipeline run. + * 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. */ - target?: PipelineRunTargetProperties; + regionEndpointEnabled?: boolean; /** - * The digest of the tar used to transfer the artifacts. + * Whether or not zone redundancy is enabled for this container registry replication. Possible + * values include: 'Enabled', 'Disabled'. Default value: 'Disabled'. */ - catalogDigest?: string; + zoneRedundancy?: ZoneRedundancy; } /** - * An interface representing ProgressProperties. + * The parameters for updating a replication. */ -export interface ProgressProperties { +export interface ReplicationUpdateParameters { /** - * The percentage complete of the copy operation. + * The tags for the replication. */ - percentage?: string; -} - -/** - * An interface representing PipelineSourceTriggerDescriptor. - */ -export interface PipelineSourceTriggerDescriptor { + tags?: { [propertyName: string]: string }; /** - * The timestamp when the source update happened. + * 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. */ - timestamp?: Date; + regionEndpointEnabled?: boolean; } /** - * An interface representing PipelineTriggerDescriptor. + * An object that represents a webhook for a container registry. */ -export interface PipelineTriggerDescriptor { +export interface Webhook extends Resource { /** - * The source trigger that caused the pipeline run. + * The status of the webhook at the time the operation was called. Possible values include: + * 'enabled', 'disabled' */ - sourceTrigger?: PipelineSourceTriggerDescriptor; -} - -/** - * The response properties returned for a pipeline run. - */ -export interface PipelineRunResponse { + status?: WebhookStatus; /** - * The current status of the pipeline run. + * The scope of repositories where the event can be triggered. For example, 'foo:*' means events + * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is + * equivalent to 'foo:latest'. Empty means all events. */ - status?: string; + scope?: string; /** - * The artifacts imported in the pipeline run. + * The list of actions that trigger the webhook to post notifications. */ - importedArtifacts?: string[]; + actions: WebhookAction[]; /** - * The current progress of the copy operation. + * The provisioning state of the webhook at the time the operation was called. Possible values + * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - progress?: ProgressProperties; + readonly provisioningState?: ProvisioningState; +} + +/** + * The parameters for creating a webhook. + */ +export interface WebhookCreateParameters { /** - * The time the pipeline run started. + * The tags for the webhook. */ - startTime?: Date; + tags?: { [propertyName: string]: string }; /** - * The time the pipeline run finished. + * The location of the webhook. This cannot be changed after the resource is created. */ - finishTime?: Date; + location: string; /** - * The source of the pipeline run. + * The service URI for the webhook to post notifications. */ - source?: ImportPipelineSourceProperties; + serviceUri: string; /** - * The target of the pipeline run. + * Custom headers that will be added to the webhook notifications. */ - target?: ExportPipelineTargetProperties; + customHeaders?: { [propertyName: string]: string }; /** - * The digest of the tar used to transfer the artifacts. + * The status of the webhook at the time the operation was called. Possible values include: + * 'enabled', 'disabled' */ - catalogDigest?: string; + status?: WebhookStatus; /** - * The trigger that caused the pipeline run. + * The scope of repositories where the event can be triggered. For example, 'foo:*' means events + * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is + * equivalent to 'foo:latest'. Empty means all events. */ - trigger?: PipelineTriggerDescriptor; + scope?: string; /** - * The detailed error message for the pipeline run in the case of failure. + * The list of actions that trigger the webhook to post notifications. */ - pipelineRunErrorMessage?: string; + actions: WebhookAction[]; } /** - * An object that represents a pipeline run for a container registry. + * The parameters for updating a webhook. */ -export interface PipelineRun extends ProxyResource { +export interface WebhookUpdateParameters { /** - * The provisioning state of a pipeline run. 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 tags for the webhook. */ - readonly provisioningState?: ProvisioningState; + tags?: { [propertyName: string]: string }; /** - * The request parameters for a pipeline run. + * The service URI for the webhook to post notifications. */ - request?: PipelineRunRequest; + serviceUri?: string; /** - * The response of a pipeline run. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Custom headers that will be added to the webhook notifications. */ - readonly response?: PipelineRunResponse; + customHeaders?: { [propertyName: string]: string }; /** - * How the pipeline run should be forced to recreate even if the pipeline run configuration has - * not changed. + * The status of the webhook at the time the operation was called. Possible values include: + * 'enabled', 'disabled' */ - forceUpdateTag?: string; + status?: WebhookStatus; + /** + * The scope of repositories where the event can be triggered. For example, 'foo:*' means events + * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is + * equivalent to 'foo:latest'. Empty means all events. + */ + scope?: string; + /** + * The list of actions that trigger the webhook to post notifications. + */ + actions?: WebhookAction[]; } /** - * The Private Endpoint resource. + * The basic information of an event. */ -export interface PrivateEndpoint { +export interface EventInfo { /** - * This is private endpoint resource created with Microsoft.Network resource provider. + * The event ID. */ id?: string; } /** - * The state of a private link service connection. + * The target of the event. */ -export interface PrivateLinkServiceConnectionState { +export interface Target { /** - * The private link service connection status. Possible values include: 'Approved', 'Pending', - * 'Rejected', 'Disconnected' + * The MIME type of the referenced object. */ - status?: ConnectionStatus; + mediaType?: string; /** - * The description for connection status. For example if connection is rejected it can indicate - * reason for rejection. + * The number of bytes of the content. Same as Length field. */ - description?: string; + size?: number; /** - * A message indicating if changes on the service provider require any updates on the consumer. - * Possible values include: 'None', 'Recreate' + * The digest of the content, as defined by the Registry V2 HTTP API Specification. */ - actionsRequired?: ActionsRequired; -} - -/** - * An object that represents a private endpoint connection for a container registry. - */ -export interface PrivateEndpointConnection extends ProxyResource { + digest?: string; /** - * The resource of private endpoint. + * The number of bytes of the content. Same as Size field. */ - privateEndpoint?: PrivateEndpoint; + length?: number; /** - * A collection of information about the state of the connection between service consumer and - * provider. + * The repository name. */ - privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; + repository?: string; /** - * The provisioning state of private endpoint connection 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.** + * The direct URL to the content. */ - readonly provisioningState?: ProvisioningState; -} - -/** - * The SKU of a container registry. - */ -export interface Sku { + url?: string; /** - * The SKU name of the container registry. Required for registry creation. Possible values - * include: 'Classic', 'Basic', 'Standard', 'Premium' + * The tag name. */ - name: SkuName; + tag?: string; /** - * The SKU tier based on the SKU name. Possible values include: 'Classic', 'Basic', 'Standard', - * 'Premium' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the artifact. */ - readonly tier?: SkuTier; + name?: string; + /** + * The version of the artifact. + */ + version?: string; } /** - * The status of an Azure resource at the time the operation was called. + * The request that generated the event. */ -export interface Status { +export interface Request { /** - * The short label for the status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The ID of the request that initiated the event. */ - readonly displayStatus?: string; + id?: string; /** - * The detailed message for the status, including alerts and error messages. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The IP or hostname and possibly port of the client connection that initiated the event. This + * is the RemoteAddr from the standard http request. */ - readonly message?: string; + addr?: string; /** - * The timestamp when the status was changed to the current value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The externally accessible hostname of the registry instance, as specified by the http host + * header on incoming requests. */ - readonly timestamp?: Date; -} - -/** - * Virtual network rule. - */ -export interface VirtualNetworkRule { + host?: string; /** - * The action of virtual network rule. Possible values include: 'Allow'. Default value: 'Allow'. + * The request method that generated the event. */ - action?: Action; + method?: string; /** - * Resource ID of a subnet, for example: - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + * The user agent header of the request. */ - virtualNetworkResourceId: string; + useragent?: string; } /** - * IP rule with specific IP or IP range in CIDR format. + * The agent that initiated the event. For most situations, this could be from the authorization + * context of the request. */ -export interface IPRule { - /** - * The action of IP ACL rule. Possible values include: 'Allow'. Default value: 'Allow'. - */ - action?: Action; +export interface Actor { /** - * Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed. + * The subject or username associated with the request context that generated the event. */ - iPAddressOrRange: string; + name?: string; } /** - * The network rule set for a container registry. + * The registry node that generated the event. Put differently, while the actor initiates the + * event, the source generates it. */ -export interface NetworkRuleSet { - /** - * The default action of allow or deny when no other rules match. Possible values include: - * 'Allow', 'Deny'. Default value: 'Allow'. - */ - defaultAction: DefaultAction; +export interface Source { /** - * The virtual network rules. + * The IP or hostname and the port of the registry node that generated the event. Generally, this + * will be resolved by os.Hostname() along with the running port. */ - virtualNetworkRules?: VirtualNetworkRule[]; + addr?: string; /** - * The IP ACL rules. + * The running instance of an application. Changes after each restart. */ - ipRules?: IPRule[]; + instanceID?: string; } /** - * The quarantine policy for a container registry. + * The content of the event request message. */ -export interface QuarantinePolicy { +export interface EventContent { /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled'. Default value: 'disabled'. + * The event ID. */ - status?: PolicyStatus; -} - -/** - * The content trust policy for a container registry. - */ -export interface TrustPolicy { + id?: string; /** - * The type of trust policy. Possible values include: 'Notary'. Default value: 'Notary'. + * The time at which the event occurred. */ - type?: TrustPolicyType; + timestamp?: Date; /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled'. Default value: 'disabled'. + * The action that encompasses the provided event. */ - status?: PolicyStatus; -} - -/** - * The retention policy for a container registry. - */ -export interface RetentionPolicy { + action?: string; /** - * The number of days to retain an untagged manifest after which it gets purged. Default value: - * 7. + * The target of the event. */ - days?: number; + target?: Target; /** - * The timestamp when the policy was last updated. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The request that generated the event. */ - readonly lastUpdatedTime?: Date; + request?: Request; /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled'. Default value: 'disabled'. + * The agent that initiated the event. For most situations, this could be from the authorization + * context of the request. */ - status?: PolicyStatus; -} - -/** - * The export policy for a container registry. - */ -export interface ExportPolicy { + actor?: Actor; /** - * The value that indicates whether the policy is enabled or not. Possible values include: - * 'enabled', 'disabled'. Default value: 'enabled'. + * The registry node that generated the event. Put differently, while the actor initiates the + * event, the source generates it. */ - status?: ExportPolicyStatus; + source?: Source; } /** - * The policies for a container registry. + * The event request message sent to the service URI. */ -export interface Policies { +export interface EventRequestMessage { /** - * The quarantine policy for a container registry. + * The content of the event request message. */ - quarantinePolicy?: QuarantinePolicy; + content?: EventContent; /** - * The content trust policy for a container registry. + * The headers of the event request message. */ - trustPolicy?: TrustPolicy; + headers?: { [propertyName: string]: string }; /** - * The retention policy for a container registry. + * The HTTP method used to send the event request message. */ - retentionPolicy?: RetentionPolicy; + method?: string; /** - * The export policy for a container registry. + * The URI used to send the event request message. */ - exportPolicy?: ExportPolicy; + requestUri?: string; + /** + * The HTTP message version. + */ + version?: string; } /** - * An interface representing KeyVaultProperties. + * The event response message received from the service URI. */ -export interface KeyVaultProperties { +export interface EventResponseMessage { /** - * Key vault uri to access the encryption key. + * The content of the event response message. */ - keyIdentifier?: string; + content?: string; /** - * The fully qualified key identifier that includes the version of the key that is actually used - * for encryption. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The headers of the event response message. */ - readonly versionedKeyIdentifier?: string; + headers?: { [propertyName: string]: string }; /** - * The client id of the identity which will be used to access key vault. + * The reason phrase of the event response message. */ - identity?: string; + reasonPhrase?: 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.** + * The status code of the event response message. */ - readonly keyRotationEnabled?: boolean; + statusCode?: string; /** - * Timestamp of the last successful key rotation. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The HTTP message version. */ - readonly lastKeyRotationTimestamp?: Date; + version?: string; } /** - * An interface representing EncryptionProperty. + * The event for a webhook. */ -export interface EncryptionProperty { +export interface Event extends EventInfo { /** - * Indicates whether or not the encryption is enabled for container registry. Possible values - * include: 'enabled', 'disabled' + * The event request message sent to the service URI. */ - status?: EncryptionStatus; + eventRequestMessage?: EventRequestMessage; /** - * Key vault properties. + * The event response message received from the service URI. */ - keyVaultProperties?: KeyVaultProperties; + eventResponseMessage?: EventResponseMessage; } /** - * An object that represents a container registry. + * The configuration of service URI and custom headers for the webhook. */ -export interface Registry extends Resource { +export interface CallbackConfig { /** - * The SKU of the container registry. + * The service URI for the webhook to post notifications. */ - sku: Sku; + serviceUri: string; /** - * The identity of the container registry. + * Custom headers that will be added to the webhook notifications. */ - identity?: IdentityProperties; + customHeaders?: { [propertyName: string]: string }; +} + +/** + * inner error. + */ +export interface InnerErrorDescription { /** - * The URL that can be used to log into the container registry. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * error code. */ - readonly loginServer?: string; + code: string; /** - * The creation date of the container registry in ISO8601 format. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * The provisioning state of the container registry at the time the operation was called. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly provisioningState?: ProvisioningState; - /** - * The status of the container registry at the time the operation was called. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * error message. */ - readonly status?: Status; + message: string; /** - * The value that indicates whether the admin user is enabled. Default value: false. + * target of the particular error. */ - adminUserEnabled?: boolean; + target?: string; +} + +/** + * An error response from the Azure Container Registry service. + */ +export interface ErrorResponseBody { /** - * The network rule set for a container registry. + * error code. */ - networkRuleSet?: NetworkRuleSet; + code: string; /** - * The policies for a container registry. + * error message. */ - policies?: Policies; + message: string; /** - * The encryption settings of container registry. + * target of the particular error. */ - encryption?: EncryptionProperty; + target?: string; /** - * Enable a single data endpoint per region for serving data. + * an array of additional nested error response info objects, as described by this contract. */ - dataEndpointEnabled?: boolean; + details?: InnerErrorDescription; +} + +/** + * An error response from the Azure Container Registry service. + */ +export interface ErrorResponse { /** - * List of host names that will serve data when dataEndpointEnabled is true. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Azure container registry build API error body. */ - readonly dataEndpointHostNames?: string[]; + error?: ErrorResponseBody; +} + +/** + * The agentpool that has the ARM resource and properties. + * The agentpool will have all information to create an agent pool. + */ +export interface AgentPool extends Resource { /** - * List of private endpoint connections for a container registry. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The count of agent machine */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; + count?: number; /** - * Whether or not public network access is allowed for the container registry. Possible values - * include: 'Enabled', 'Disabled'. Default value: 'Enabled'. + * The Tier of agent machine */ - publicNetworkAccess?: PublicNetworkAccess; + tier?: string; /** - * Whether to allow trusted Azure services to access a network restricted registry. Possible - * values include: 'AzureServices', 'None'. Default value: 'AzureServices'. + * The OS of agent machine. Possible values include: 'Windows', 'Linux' */ - networkRuleBypassOptions?: NetworkRuleBypassOptions; + os?: OS; /** - * Whether or not zone redundancy is enabled for this container registry. Possible values - * include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + * The Virtual Network Subnet Resource Id of the agent machine */ - zoneRedundancy?: ZoneRedundancy; + virtualNetworkSubnetResourceId?: string; /** - * Enables registry-wide pull from unauthenticated clients. Default value: false. + * The provisioning state of this agent pool. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - anonymousPullEnabled?: boolean; + readonly provisioningState?: ProvisioningState; } /** - * The parameters for updating a container registry. + * The parameters for updating an agent pool. */ -export interface RegistryUpdateParameters { +export interface AgentPoolUpdateParameters { /** - * The identity of the container registry. + * The count of agent machine */ - identity?: IdentityProperties; + count?: number; /** - * The tags for the container registry. + * The ARM resource tags. */ tags?: { [propertyName: string]: string }; +} + +/** + * The QueueStatus of Agent Pool + */ +export interface AgentPoolQueueStatus { /** - * The SKU of the container registry. + * The number of pending runs in the queue */ - sku?: Sku; + count?: number; +} + +/** + * Contains the possible cases for RunRequest. + */ +export type RunRequestUnion = RunRequest | DockerBuildRequest | FileTaskRunRequest | TaskRunRequest | EncodedTaskRunRequest; + +/** + * The request parameters for scheduling a run. + */ +export interface RunRequest { /** - * The value that indicates whether the admin user is enabled. + * Polymorphic Discriminator */ - adminUserEnabled?: boolean; + type: "RunRequest"; /** - * The network rule set for a container registry. + * The value that indicates whether archiving is enabled for the run or not. Default value: + * false. */ - networkRuleSet?: NetworkRuleSet; + isArchiveEnabled?: boolean; /** - * The policies for a container registry. + * The dedicated agent pool for the run. */ - policies?: Policies; + agentPoolName?: string; /** - * The encryption settings of container registry. + * The template that describes the repository and tag information for run log artifact. */ - encryption?: EncryptionProperty; + logTemplate?: string; +} + +/** + * Properties for a registry image. + */ +export interface ImageDescriptor { /** - * Enable a single data endpoint per region for serving data. + * The registry login server. */ - dataEndpointEnabled?: boolean; + registry?: string; /** - * Whether or not public network access is allowed for the container registry. Possible values - * include: 'Enabled', 'Disabled' + * The repository name. */ - publicNetworkAccess?: PublicNetworkAccess; + repository?: string; /** - * Whether to allow trusted Azure services to access a network restricted registry. Possible - * values include: 'AzureServices', 'None'. Default value: 'AzureServices'. + * The tag name. */ - networkRuleBypassOptions?: NetworkRuleBypassOptions; + tag?: string; /** - * Enables registry-wide pull from unauthenticated clients. + * The sha256-based digest of the image manifest. */ - anonymousPullEnabled?: boolean; + digest?: string; } /** - * The quota usage for a container registry. + * The image update trigger that caused a build. */ -export interface RegistryUsage { - /** - * The name of the usage. - */ - name?: string; +export interface ImageUpdateTrigger { /** - * The limit of the usage. + * The unique ID of the trigger. */ - limit?: number; + id?: string; /** - * The current value of the usage. + * The timestamp when the image update happened. */ - currentValue?: number; + timestamp?: Date; /** - * The unit of measurement. Possible values include: 'Count', 'Bytes' + * The list of image updates that caused the build. */ - unit?: RegistryUsageUnit; + images?: ImageDescriptor[]; } /** - * The result of a request to get container registry quota usages. + * The source trigger that caused a run. */ -export interface RegistryUsageListResult { +export interface SourceTriggerDescriptor { /** - * The list of container registry quota usages. + * The unique ID of the trigger. */ - value?: RegistryUsage[]; -} - -/** - * A resource that supports private link capabilities. - */ -export interface PrivateLinkResource { + id?: string; /** - * The resource type is private link resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The event type of the trigger. */ - readonly type?: string; + eventType?: string; /** - * The resource ID. + * The unique ID that identifies a commit. */ - id?: string; + commitId?: string; /** - * The name of the resource. + * The unique ID that identifies pull request. */ - name?: string; + pullRequestId?: string; /** - * The private link resource group id. + * The repository URL. */ - groupId?: string; + repositoryUrl?: string; /** - * The private link resource required member names. + * The branch name in the repository. */ - requiredMembers?: string[]; + branchName?: string; /** - * The private link resource Private link DNS zone name. + * The source control provider type. */ - requiredZoneNames?: string[]; + providerType?: string; } /** - * The login password for the container registry. + * An interface representing TimerTriggerDescriptor. */ -export interface RegistryPassword { +export interface TimerTriggerDescriptor { /** - * The password name. Possible values include: 'password', 'password2' + * The timer trigger name that caused the run. */ - name?: PasswordName; + timerTriggerName?: string; /** - * The password value. + * The occurrence that triggered the run. */ - value?: string; + scheduleOccurrence?: string; } /** - * The response from the ListCredentials operation. + * The platform properties against which the run has to happen. */ -export interface RegistryListCredentialsResult { +export interface PlatformProperties { /** - * The username for a container registry. + * The operating system type required for the run. Possible values include: 'Windows', 'Linux' */ - username?: string; + os: OS; /** - * The list of passwords for a container registry. + * The OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' */ - passwords?: RegistryPassword[]; + architecture?: Architecture; + /** + * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' + */ + variant?: Variant; } /** - * The parameters used to regenerate the login credential. + * The properties that determine the run agent configuration. */ -export interface RegenerateCredentialParameters { +export interface AgentProperties { /** - * Specifies name of the password which should be regenerated -- password or password2. Possible - * values include: 'password', 'password2' + * The CPU configuration in terms of number of cores required for the run. */ - name: PasswordName; + cpu?: number; } /** - * An object that represents a replication for a container registry. + * Run resource properties */ -export interface Replication extends Resource { +export interface Run extends ProxyResource { /** - * 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 unique identifier for the run. */ - readonly provisioningState?: ProvisioningState; + runId?: 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 current status of the run. Possible values include: 'Queued', 'Started', 'Running', + * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' */ - readonly status?: Status; + status?: RunStatus; /** - * 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. + * The last updated time for the run. */ - regionEndpointEnabled?: boolean; + lastUpdatedTime?: Date; /** - * Whether or not zone redundancy is enabled for this container registry replication. Possible - * values include: 'Enabled', 'Disabled'. Default value: 'Disabled'. + * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' */ - zoneRedundancy?: ZoneRedundancy; -} - -/** - * The parameters for updating a replication. - */ -export interface ReplicationUpdateParameters { + runType?: RunType; /** - * The tags for the replication. + * The dedicated agent pool for the run. */ - tags?: { [propertyName: string]: string }; + agentPoolName?: 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 time the run was scheduled. */ - regionEndpointEnabled?: boolean; -} - -/** - * An object that represents a scope map for a container registry. - */ -export interface ScopeMap extends ProxyResource { + createTime?: Date; /** - * The user friendly description of the scope map. + * The time the run started. */ - description?: string; + startTime?: Date; /** - * 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.** + * The time the run finished. */ - readonly scopeMapType?: string; + finishTime?: Date; /** - * The creation date of scope map. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The list of all images that were generated from the run. This is applicable if the run + * generates base image dependencies. */ - readonly creationDate?: Date; + outputImages?: ImageDescriptor[]; /** - * 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.** + * The task against which run was scheduled. */ - readonly provisioningState?: ProvisioningState; + task?: string; /** - * The list of scoped permissions for registry artifacts. - * E.g. repositories/repository-name/content/read, - * repositories/repository-name/metadata/write + * The image update trigger that caused the run. This is applicable if the task has base image + * trigger configured. */ - actions: string[]; -} - -/** - * The properties for updating the scope map. - */ -export interface ScopeMapUpdateParameters { + imageUpdateTrigger?: ImageUpdateTrigger; /** - * The user friendly description of the scope map. + * The source trigger that caused the run. */ - description?: string; + sourceTrigger?: SourceTriggerDescriptor; /** - * The list of scope permissions for registry artifacts. - * E.g. repositories/repository-name/pull, - * repositories/repository-name/delete + * The timer trigger that caused the run. */ - actions?: string[]; -} - -/** - * The properties of a certificate used for authenticating a token. - */ -export interface TokenCertificate { + timerTrigger?: TimerTriggerDescriptor; /** - * Possible values include: 'certificate1', 'certificate2' + * The platform properties against which the run will happen. */ - name?: TokenCertificateName; + platform?: PlatformProperties; /** - * The expiry datetime of the certificate. + * The machine configuration of the run agent. */ - expiry?: Date; + agentConfiguration?: AgentProperties; /** - * The thumbprint of the certificate. + * The scope of the credentials that were used to login to the source registry during this run. */ - thumbprint?: string; + sourceRegistryAuth?: string; /** - * Base 64 encoded string of the public certificate1 in PEM format that will be used for - * authenticating the token. + * The list of custom registries that were logged in during this run. */ - encodedPemCertificate?: string; -} - -/** - * The password that will be used for authenticating the token of a container registry. - */ -export interface TokenPassword { + customRegistries?: string[]; /** - * The creation datetime of the password. + * The error message received from backend systems after the run is scheduled. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - creationTime?: Date; + readonly runErrorMessage?: string; /** - * The expiry datetime of the password. + * The update trigger token passed for the Run. */ - expiry?: Date; + updateTriggerToken?: string; /** - * The password name "password1" or "password2". Possible values include: 'password1', - * 'password2' + * The image description for the log artifact. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - name?: TokenPasswordName; + readonly logArtifact?: ImageDescriptor; /** - * The password value. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Failed', 'Canceled' + */ + provisioningState?: ProvisioningState; + /** + * The value that indicates whether archiving is enabled or not. Default value: false. */ - readonly value?: string; + isArchiveEnabled?: boolean; } /** - * The properties of the credentials that can be used for authenticating the token. + * The properties of a response to source upload request. */ -export interface TokenCredentialsProperties { - certificates?: TokenCertificate[]; - passwords?: TokenPassword[]; +export interface SourceUploadDefinition { + /** + * The URL where the client can upload the source. + */ + uploadUrl?: string; + /** + * The relative path to the source. This is used to submit the subsequent queue build request. + */ + relativePath?: string; } /** - * An object that represents a token for a container registry. + * Properties that are enabled for Odata querying on runs. */ -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; +export interface RunFilter { /** - * 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.** + * The unique identifier for the run. */ - readonly provisioningState?: ProvisioningState; + runId?: string; /** - * The resource ID of the scope map to which the token will be associated with. + * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' */ - scopeMapId?: string; + runType?: RunType; /** - * The credentials that can be used for authenticating the token. + * The current status of the run. Possible values include: 'Queued', 'Started', 'Running', + * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' */ - credentials?: TokenCredentialsProperties; + status?: RunStatus; /** - * The status of the token example enabled or disabled. Possible values include: 'enabled', - * 'disabled' + * The create time for a run. */ - status?: TokenStatus; -} - -/** - * The Active Directory Object that will be used for authenticating the token of a container - * registry. - */ -export interface ActiveDirectoryObject { + createTime?: Date; /** - * The user/group/application object ID for Active Directory Object that will be used for - * authenticating the token of a container registry. + * The time the run finished. */ - objectId?: string; + finishTime?: Date; /** - * The tenant ID of user/group/application object Active Directory Object that will be used for - * authenticating the token of a container registry. + * The list of comma-separated image manifests that were generated from the run. This is + * applicable if the run is of + * build type. */ - tenantId?: string; -} - -/** - * The parameters for updating a token. - */ -export interface TokenUpdateParameters { + outputImageManifests?: string; /** - * The resource ID of the scope map to which the token will be associated with. + * The value that indicates whether archiving is enabled or not. */ - scopeMapId?: string; + isArchiveEnabled?: boolean; /** - * The status of the token example enabled or disabled. Possible values include: 'enabled', - * 'disabled' + * The name of the task that the run corresponds to. */ - status?: TokenStatus; + taskName?: string; /** - * The credentials that can be used for authenticating the token. + * The name of the agent pool that the run corresponds to. */ - credentials?: TokenCredentialsProperties; + agentPoolName?: string; } /** - * The parameters used to generate credentials for a specified token or user of a container - * registry. + * The set of run properties that can be updated. */ -export interface GenerateCredentialsParameters { - /** - * The resource ID of the token for which credentials have to be generated. - */ - tokenId?: string; - /** - * The expiry date of the generated credentials after which the credentials become invalid. - */ - expiry?: Date; +export interface RunUpdateParameters { /** - * Specifies name of the password which should be regenerated if any -- password1 or password2. - * Possible values include: 'password1', 'password2' + * The value that indicates whether archiving is enabled or not. */ - name?: TokenPasswordName; + isArchiveEnabled?: boolean; } /** - * The response from the GenerateCredentials operation. + * The result of get log link operation. */ -export interface GenerateCredentialsResult { +export interface RunGetLogResult { /** - * The username for a container registry. + * The link to logs for a run on a azure container registry. */ - username?: string; + logLink?: string; /** - * The list of passwords for a container registry. + * The link to logs in registry for a run on a azure container registry. */ - passwords?: TokenPassword[]; + logArtifactLink?: string; } /** - * An object that represents a webhook for a container registry. + * 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 Webhook extends Resource { +export interface TaskRun extends ProxyResource { /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' + * Identity for the resource. */ - status?: WebhookStatus; + identity?: IdentityProperties; /** - * The scope of repositories where the event can be triggered. For example, 'foo:*' means events - * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is - * equivalent to 'foo:latest'. Empty means all events. + * The provisioning state of this task run. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - scope?: string; + readonly provisioningState?: ProvisioningState; /** - * The list of actions that trigger the webhook to post notifications. + * The request (parameters) for the run */ - actions: WebhookAction[]; + runRequest?: RunRequestUnion; /** - * The provisioning state of the webhook at the time the operation was called. Possible values - * include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * The result of this task run * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; -} - -/** - * The parameters for creating a webhook. - */ -export interface WebhookCreateParameters { + readonly runResult?: Run; /** - * The tags for the webhook. + * How the run should be forced to rerun even if the run request configuration has not changed */ - tags?: { [propertyName: string]: string }; + forceUpdateTag?: string; /** - * The location of the webhook. This cannot be changed after the resource is created. + * The location of the resource */ - location: string; + location?: string; +} + +/** + * The parameters for updating a task run. + */ +export interface TaskRunUpdateParameters { /** - * The service URI for the webhook to post notifications. + * Identity for the resource. */ - serviceUri: string; + identity?: IdentityProperties; /** - * Custom headers that will be added to the webhook notifications. + * The request (parameters) for the new run */ - customHeaders?: { [propertyName: string]: string }; + runRequest?: RunRequestUnion; /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' + * How the run should be forced to rerun even if the run request configuration has not changed */ - status?: WebhookStatus; + forceUpdateTag?: string; /** - * The scope of repositories where the event can be triggered. For example, 'foo:*' means events - * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is - * equivalent to 'foo:latest'. Empty means all events. + * The location of the resource */ - scope?: string; + location?: string; /** - * The list of actions that trigger the webhook to post notifications. + * The ARM resource tags. */ - actions: WebhookAction[]; + tags?: { [propertyName: string]: string }; } /** - * The parameters for updating a webhook. + * Properties that describe a base image dependency. */ -export interface WebhookUpdateParameters { +export interface BaseImageDependency { /** - * The tags for the webhook. + * The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime' */ - tags?: { [propertyName: string]: string }; + type?: BaseImageDependencyType; /** - * The service URI for the webhook to post notifications. + * The registry login server. */ - serviceUri?: string; + registry?: string; /** - * Custom headers that will be added to the webhook notifications. + * The repository name. */ - customHeaders?: { [propertyName: string]: string }; + repository?: string; /** - * The status of the webhook at the time the operation was called. Possible values include: - * 'enabled', 'disabled' - */ - status?: WebhookStatus; - /** - * The scope of repositories where the event can be triggered. For example, 'foo:*' means events - * for all tags under repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is - * equivalent to 'foo:latest'. Empty means all events. + * The tag name. */ - scope?: string; + tag?: string; /** - * The list of actions that trigger the webhook to post notifications. + * The sha256-based digest of the image manifest. */ - actions?: WebhookAction[]; + digest?: string; } /** - * The basic information of an event. + * Contains the possible cases for TaskStepProperties. */ -export interface EventInfo { - /** - * The event ID. - */ - id?: string; -} +export type TaskStepPropertiesUnion = TaskStepProperties | DockerBuildStep | FileTaskStep | EncodedTaskStep; /** - * The target of the event. + * Base properties for any task step. */ -export interface Target { - /** - * The MIME type of the referenced object. - */ - mediaType?: string; - /** - * The number of bytes of the content. Same as Length field. - */ - size?: number; +export interface TaskStepProperties { /** - * The digest of the content, as defined by the Registry V2 HTTP API Specification. + * Polymorphic Discriminator */ - digest?: string; + type: "TaskStepProperties"; /** - * The number of bytes of the content. Same as Size field. + * List of base image dependencies for a step. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - length?: number; + readonly baseImageDependencies?: BaseImageDependency[]; /** - * The repository name. + * The URL(absolute or relative) of the source context for the task step. */ - repository?: string; + contextPath?: string; /** - * The direct URL to the content. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - url?: string; + contextAccessToken?: string; +} + +/** + * The properties of a timer trigger. + */ +export interface TimerTrigger { /** - * The tag name. + * The CRON expression for the task schedule */ - tag?: string; + schedule: string; /** - * The name of the artifact. + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - name?: string; + status?: TriggerStatus; /** - * The version of the artifact. + * The name of the trigger. */ - version?: string; + name: string; } /** - * The request that generated the event. + * The authorization properties for accessing the source code repository. */ -export interface Request { +export interface AuthInfo { /** - * The ID of the request that initiated the event. + * The type of Auth token. Possible values include: 'PAT', 'OAuth' */ - id?: string; + tokenType: TokenType; /** - * The IP or hostname and possibly port of the client connection that initiated the event. This - * is the RemoteAddr from the standard http request. + * The access token used to access the source control provider. */ - addr?: string; + token: string; /** - * The externally accessible hostname of the registry instance, as specified by the http host - * header on incoming requests. + * The refresh token used to refresh the access token. */ - host?: string; + refreshToken?: string; /** - * The request method that generated the event. + * The scope of the access token. */ - method?: string; + scope?: string; /** - * The user agent header of the request. + * Time in seconds that the token remains valid */ - useragent?: string; + expiresIn?: number; } /** - * The agent that initiated the event. For most situations, this could be from the authorization - * context of the request. + * The properties of the source code repository. */ -export interface Actor { +export interface SourceProperties { /** - * The subject or username associated with the request context that generated the event. + * The type of source control service. Possible values include: 'Github', + * 'VisualStudioTeamService' */ - name?: string; -} - -/** - * The registry node that generated the event. Put differently, while the actor initiates the - * event, the source generates it. - */ -export interface Source { + sourceControlType: SourceControlType; /** - * The IP or hostname and the port of the registry node that generated the event. Generally, this - * will be resolved by os.Hostname() along with the running port. + * The full URL to the source code repository */ - addr?: string; + repositoryUrl: string; /** - * The running instance of an application. Changes after each restart. + * The branch name of the source code. */ - instanceID?: string; + branch?: string; + /** + * The authorization properties for accessing the source code repository and to set up + * webhooks for notifications. + */ + sourceControlAuthProperties?: AuthInfo; } /** - * The content of the event request message. + * The properties of a source based trigger. */ -export interface EventContent { - /** - * The event ID. - */ - id?: string; - /** - * The time at which the event occurred. - */ - timestamp?: Date; - /** - * The action that encompasses the provided event. - */ - action?: string; +export interface SourceTrigger { /** - * The target of the event. + * The properties that describes the source(code) for the task. */ - target?: Target; + sourceRepository: SourceProperties; /** - * The request that generated the event. + * The source event corresponding to the trigger. */ - request?: Request; + sourceTriggerEvents: SourceTriggerEvent[]; /** - * The agent that initiated the event. For most situations, this could be from the authorization - * context of the request. + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - actor?: Actor; + status?: TriggerStatus; /** - * The registry node that generated the event. Put differently, while the actor initiates the - * event, the source generates it. + * The name of the trigger. */ - source?: Source; + name: string; } /** - * The event request message sent to the service URI. + * The trigger based on base image dependency. */ -export interface EventRequestMessage { +export interface BaseImageTrigger { /** - * The content of the event request message. + * The type of the auto trigger for base image dependency updates. Possible values include: + * 'All', 'Runtime' */ - content?: EventContent; + baseImageTriggerType: BaseImageTriggerType; /** - * The headers of the event request message. + * The endpoint URL for receiving update triggers. */ - headers?: { [propertyName: string]: string }; + updateTriggerEndpoint?: string; /** - * The HTTP method used to send the event request message. + * Type of Payload body for Base image update triggers. Possible values include: 'Default', + * 'Token' */ - method?: string; + updateTriggerPayloadType?: UpdateTriggerPayloadType; /** - * The URI used to send the event request message. + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - requestUri?: string; + status?: TriggerStatus; /** - * The HTTP message version. + * The name of the trigger. */ - version?: string; + name: string; } /** - * The event response message received from the service URI. + * The properties of a trigger. */ -export interface EventResponseMessage { - /** - * The content of the event response message. - */ - content?: string; - /** - * The headers of the event response message. - */ - headers?: { [propertyName: string]: string }; +export interface TriggerProperties { /** - * The reason phrase of the event response message. + * The collection of timer triggers. */ - reasonPhrase?: string; + timerTriggers?: TimerTrigger[]; /** - * The status code of the event response message. + * The collection of triggers based on source code repository. */ - statusCode?: string; + sourceTriggers?: SourceTrigger[]; /** - * The HTTP message version. + * The trigger based on base image dependencies. */ - version?: string; + baseImageTrigger?: BaseImageTrigger; } /** - * The event for a webhook. + * Describes the credential parameters for accessing the source registry. */ -export interface Event extends EventInfo { - /** - * The event request message sent to the service URI. - */ - eventRequestMessage?: EventRequestMessage; +export interface SourceRegistryCredentials { /** - * The event response message received from the service URI. + * The authentication mode which determines the source registry login scope. The credentials for + * the source registry + * will be generated using the given scope. These credentials will be used to login to + * the source registry during the run. Possible values include: 'None', 'Default' */ - eventResponseMessage?: EventResponseMessage; + loginMode?: SourceRegistryLoginMode; } /** - * The configuration of service URI and custom headers for the webhook. + * Describes the properties of a secret object value. */ -export interface CallbackConfig { +export interface SecretObject { /** - * The service URI for the webhook to post notifications. + * The value of the secret. The format of this value will be determined + * based on the type of the secret object. If the type is Opaque, the value will be + * used as is without any modification. */ - serviceUri: string; + value?: string; /** - * Custom headers that will be added to the webhook notifications. + * The type of the secret object which determines how the value of the secret object has to be + * interpreted. Possible values include: 'Opaque', 'Vaultsecret' */ - customHeaders?: { [propertyName: string]: string }; + type?: SecretObjectType; } /** - * inner error. + * Describes the credentials that will be used to access a custom registry during a run. */ -export interface InnerErrorDescription { +export interface CustomRegistryCredentials { /** - * error code. + * The username for logging into the custom registry. */ - code: string; + userName?: SecretObject; /** - * error message. + * The password for logging into the custom registry. The password is a secret + * object that allows multiple ways of providing the value for it. */ - message: string; + password?: SecretObject; /** - * target of the particular error. - */ - target?: string; + * Indicates the managed identity assigned to the custom credential. If a user-assigned identity + * this value is the Client ID. If a system-assigned identity, the value will be `system`. In + * the case of a system-assigned identity, the Client ID will be determined by the runner. This + * identity may be used to authenticate to key vault to retrieve credentials or it may be the + * only + * source of authentication used for accessing the registry. + */ + identity?: string; } /** - * An error response from the Azure Container Registry service. + * The parameters that describes a set of credentials that will be used when a run is invoked. */ -export interface ErrorResponseBody { - /** - * error code. - */ - code: string; - /** - * error message. - */ - message: string; - /** - * target of the particular error. - */ - target?: string; +export interface Credentials { /** - * an array of additional nested error response info objects, as described by this contract. + * Describes the credential parameters for accessing the source registry. */ - details?: InnerErrorDescription; -} - -/** - * An error response from the Azure Container Registry service. - */ -export interface ErrorResponse { + sourceRegistry?: SourceRegistryCredentials; /** - * Azure container registry build API error body. + * Describes the credential parameters for accessing other custom registries. The key + * for the dictionary item will be the registry login server (myregistry.azurecr.io) and + * the value of the item will be the registry credentials for accessing the registry. */ - error?: ErrorResponseBody; + customRegistries?: { [propertyName: string]: CustomRegistryCredentials }; } /** - * The agentpool that has the ARM resource and properties. - * The agentpool will have all information to create an agent pool. + * The task that has the ARM resource and task properties. + * The task will have all information to schedule a run against it. */ -export interface AgentPool extends Resource { +export interface Task extends Resource { /** - * The count of agent machine + * Identity for the resource. */ - count?: number; + identity?: IdentityProperties; /** - * The Tier of agent machine + * The provisioning state of the task. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tier?: string; + readonly provisioningState?: ProvisioningState; /** - * The OS of agent machine. Possible values include: 'Windows', 'Linux' + * The creation date of task. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - os?: OS; + readonly creationDate?: Date; /** - * The Virtual Network Subnet Resource Id of the agent machine + * The current status of task. Possible values include: 'Disabled', 'Enabled' */ - virtualNetworkSubnetResourceId?: string; + status?: TaskStatus; /** - * The provisioning state of this agent pool. Possible values include: 'Creating', 'Updating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The platform properties against which the run has to happen. */ - readonly provisioningState?: ProvisioningState; -} - -/** - * The parameters for updating an agent pool. - */ -export interface AgentPoolUpdateParameters { + platform?: PlatformProperties; /** - * The count of agent machine + * The machine configuration of the run agent. */ - count?: number; + agentConfiguration?: AgentProperties; /** - * The ARM resource tags. + * The dedicated agent pool for the task. */ - tags?: { [propertyName: string]: string }; -} - -/** - * The QueueStatus of Agent Pool - */ -export interface AgentPoolQueueStatus { + agentPoolName?: string; /** - * The number of pending runs in the queue + * Run timeout in seconds. Default value: 3600. */ - count?: number; -} - -/** - * Contains the possible cases for RunRequest. - */ -export type RunRequestUnion = RunRequest | DockerBuildRequest | FileTaskRunRequest | TaskRunRequest | EncodedTaskRunRequest; - -/** - * The request parameters for scheduling a run. - */ -export interface RunRequest { + timeout?: number; /** - * Polymorphic Discriminator + * The properties of a task step. */ - type: "RunRequest"; + step?: TaskStepPropertiesUnion; /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * The properties that describe all triggers for the task. */ - isArchiveEnabled?: boolean; + trigger?: TriggerProperties; /** - * The dedicated agent pool for the run. + * The properties that describes a set of credentials that will be used when this run is invoked. */ - agentPoolName?: string; + 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; } /** - * Properties for a registry image. + * The properties for updating the platform configuration. */ -export interface ImageDescriptor { - /** - * The registry login server. - */ - registry?: string; +export interface PlatformUpdateParameters { /** - * The repository name. + * The operating system type required for the run. Possible values include: 'Windows', 'Linux' */ - repository?: string; + os?: OS; /** - * The tag name. + * The OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' */ - tag?: string; + architecture?: Architecture; /** - * The sha256-based digest of the image manifest. + * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' */ - digest?: string; + variant?: Variant; } /** - * The image update trigger that caused a build. + * Contains the possible cases for TaskStepUpdateParameters. */ -export interface ImageUpdateTrigger { +export type TaskStepUpdateParametersUnion = TaskStepUpdateParameters | DockerBuildStepUpdateParameters | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; + +/** + * Base properties for updating any task step. + */ +export interface TaskStepUpdateParameters { /** - * The unique ID of the trigger. + * Polymorphic Discriminator */ - id?: string; + type: "TaskStepUpdateParameters"; /** - * The timestamp when the image update happened. + * The URL(absolute or relative) of the source context for the task step. */ - timestamp?: Date; + contextPath?: string; /** - * The list of image updates that caused the build. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - images?: ImageDescriptor[]; + contextAccessToken?: string; } /** - * The source trigger that caused a run. + * The properties for updating a timer trigger. */ -export interface SourceTriggerDescriptor { +export interface TimerTriggerUpdateParameters { /** - * The unique ID of the trigger. + * The CRON expression for the task schedule */ - id?: string; + schedule?: string; /** - * The event type of the trigger. + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - eventType?: string; + status?: TriggerStatus; /** - * The unique ID that identifies a commit. + * The name of the trigger. */ - commitId?: string; + name: string; +} + +/** + * The authorization properties for accessing the source code repository. + */ +export interface AuthInfoUpdateParameters { /** - * The unique ID that identifies pull request. + * The type of Auth token. Possible values include: 'PAT', 'OAuth' */ - pullRequestId?: string; + tokenType?: TokenType; /** - * The repository URL. + * The access token used to access the source control provider. */ - repositoryUrl?: string; + token?: string; /** - * The branch name in the repository. + * The refresh token used to refresh the access token. */ - branchName?: string; + refreshToken?: string; /** - * The source control provider type. + * The scope of the access token. */ - providerType?: string; + scope?: string; + /** + * Time in seconds that the token remains valid + */ + expiresIn?: number; } /** - * An interface representing TimerTriggerDescriptor. + * The properties for updating the source code repository. */ -export interface TimerTriggerDescriptor { +export interface SourceUpdateParameters { /** - * The timer trigger name that caused the run. + * The type of source control service. Possible values include: 'Github', + * 'VisualStudioTeamService' */ - timerTriggerName?: string; + sourceControlType?: SourceControlType; /** - * The occurrence that triggered the run. + * The full URL to the source code repository */ - scheduleOccurrence?: string; + repositoryUrl?: string; + /** + * The branch name of the source code. + */ + branch?: string; + /** + * The authorization properties for accessing the source code repository and to set up + * webhooks for notifications. + */ + sourceControlAuthProperties?: AuthInfoUpdateParameters; } /** - * The platform properties against which the run has to happen. + * The properties for updating a source based trigger. */ -export interface PlatformProperties { +export interface SourceTriggerUpdateParameters { /** - * The operating system type required for the run. Possible values include: 'Windows', 'Linux' + * The properties that describes the source(code) for the task. */ - os: OS; + sourceRepository?: SourceUpdateParameters; /** - * The OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' + * The source event corresponding to the trigger. */ - architecture?: Architecture; + sourceTriggerEvents?: SourceTriggerEvent[]; /** - * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - variant?: Variant; + status?: TriggerStatus; + /** + * The name of the trigger. + */ + name: string; } /** - * The properties that determine the run agent configuration. + * The properties for updating base image dependency trigger. */ -export interface AgentProperties { +export interface BaseImageTriggerUpdateParameters { /** - * The CPU configuration in terms of number of cores required for the run. - */ - cpu?: number; -} - -/** - * Run resource properties - */ -export interface Run extends ProxyResource { - /** - * The unique identifier for the run. - */ - runId?: string; - /** - * The current status of the run. Possible values include: 'Queued', 'Started', 'Running', - * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' - */ - status?: RunStatus; - /** - * The last updated time for the run. - */ - lastUpdatedTime?: Date; - /** - * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + * The type of the auto trigger for base image dependency updates. Possible values include: + * 'All', 'Runtime' */ - runType?: RunType; + baseImageTriggerType?: BaseImageTriggerType; /** - * The dedicated agent pool for the run. + * The endpoint URL for receiving update triggers. */ - agentPoolName?: string; + updateTriggerEndpoint?: string; /** - * The time the run was scheduled. + * Type of Payload body for Base image update triggers. Possible values include: 'Default', + * 'Token' */ - createTime?: Date; + updateTriggerPayloadType?: UpdateTriggerPayloadType; /** - * The time the run started. + * The current status of trigger. Possible values include: 'Disabled', 'Enabled'. Default value: + * 'Enabled'. */ - startTime?: Date; + status?: TriggerStatus; /** - * The time the run finished. + * The name of the trigger. */ - finishTime?: Date; + name: string; +} + +/** + * The properties for updating triggers. + */ +export interface TriggerUpdateParameters { /** - * The list of all images that were generated from the run. This is applicable if the run - * generates base image dependencies. + * The collection of timer triggers. */ - outputImages?: ImageDescriptor[]; + timerTriggers?: TimerTriggerUpdateParameters[]; /** - * The task against which run was scheduled. + * The collection of triggers based on source code repository. */ - task?: string; + sourceTriggers?: SourceTriggerUpdateParameters[]; /** - * The image update trigger that caused the run. This is applicable if the task has base image - * trigger configured. + * The trigger based on base image dependencies. */ - imageUpdateTrigger?: ImageUpdateTrigger; + baseImageTrigger?: BaseImageTriggerUpdateParameters; +} + +/** + * The parameters for updating a task. + */ +export interface TaskUpdateParameters { /** - * The source trigger that caused the run. + * Identity for the resource. */ - sourceTrigger?: SourceTriggerDescriptor; + identity?: IdentityProperties; /** - * The timer trigger that caused the run. + * The current status of task. Possible values include: 'Disabled', 'Enabled' */ - timerTrigger?: TimerTriggerDescriptor; + status?: TaskStatus; /** - * The platform properties against which the run will happen. + * The platform properties against which the run has to happen. */ - platform?: PlatformProperties; + platform?: PlatformUpdateParameters; /** * The machine configuration of the run agent. */ agentConfiguration?: AgentProperties; /** - * The scope of the credentials that were used to login to the source registry during this run. + * The dedicated agent pool for the task. */ - sourceRegistryAuth?: string; + agentPoolName?: string; /** - * The list of custom registries that were logged in during this run. + * Run timeout in seconds. */ - customRegistries?: string[]; + timeout?: number; /** - * The error message received from backend systems after the run is scheduled. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The properties for updating a task step. */ - readonly runErrorMessage?: string; + step?: TaskStepUpdateParametersUnion; /** - * The update trigger token passed for the Run. + * The properties for updating trigger properties. */ - updateTriggerToken?: string; + trigger?: TriggerUpdateParameters; /** - * The image description for the log artifact. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The parameters that describes a set of credentials that will be used when this run is invoked. */ - readonly logArtifact?: ImageDescriptor; + credentials?: Credentials; /** - * The provisioning state of a run. Possible values include: 'Creating', 'Updating', 'Deleting', - * 'Succeeded', 'Failed', 'Canceled' + * The template that describes the repository and tag information for run log artifact. */ - provisioningState?: ProvisioningState; + logTemplate?: string; /** - * The value that indicates whether archiving is enabled or not. Default value: false. + * The ARM resource tags. */ - isArchiveEnabled?: boolean; + tags?: { [propertyName: string]: string }; } /** - * The properties of a response to source upload request. + * The properties of a run argument. */ -export interface SourceUploadDefinition { +export interface Argument { /** - * The URL where the client can upload the source. + * The name of the argument. */ - uploadUrl?: string; + name: string; /** - * The relative path to the source. This is used to submit the subsequent queue build request. + * The value of the argument. */ - relativePath?: string; + value: string; + /** + * Flag to indicate whether the argument represents a secret and want to be removed from build + * logs. Default value: false. + */ + isSecret?: boolean; } /** - * Properties that are enabled for Odata querying on runs. + * The parameters for a docker quick build. */ -export interface RunFilter { +export interface DockerBuildRequest { /** - * The unique identifier for the run. + * Polymorphic Discriminator */ - runId?: string; + type: "DockerBuildRequest"; /** - * The type of run. Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + * The value that indicates whether archiving is enabled for the run or not. Default value: + * false. */ - runType?: RunType; + isArchiveEnabled?: boolean; /** - * The current status of the run. Possible values include: 'Queued', 'Started', 'Running', - * 'Succeeded', 'Failed', 'Canceled', 'Error', 'Timeout' + * The dedicated agent pool for the run. */ - status?: RunStatus; + agentPoolName?: string; /** - * The create time for a run. + * The template that describes the repository and tag information for run log artifact. */ - createTime?: Date; + logTemplate?: string; /** - * The time the run finished. + * The fully qualified image names including the repository and tag. */ - finishTime?: Date; + imageNames?: string[]; /** - * The list of comma-separated image manifests that were generated from the run. This is - * applicable if the run is of - * build type. + * The value of this property indicates whether the image built should be pushed to the registry + * or not. Default value: true. */ - outputImageManifests?: string; + isPushEnabled?: boolean; /** - * The value that indicates whether archiving is enabled or not. + * The value of this property indicates whether the image cache is enabled or not. Default value: + * false. */ - isArchiveEnabled?: boolean; + noCache?: boolean; /** - * The name of the task that the run corresponds to. + * The Docker file path relative to the source location. */ - taskName?: string; + dockerFilePath: string; /** - * The name of the agent pool that the run corresponds to. + * The name of the target build stage for the docker build. */ - agentPoolName?: string; -} - -/** - * The set of run properties that can be updated. - */ -export interface RunUpdateParameters { + target?: string; /** - * The value that indicates whether archiving is enabled or not. + * The collection of override arguments to be used when executing the run. */ - isArchiveEnabled?: boolean; -} - -/** - * The result of get log link operation. - */ -export interface RunGetLogResult { + argumentsProperty?: Argument[]; /** - * The link to logs for a run on a azure container registry. + * Run timeout in seconds. Default value: 3600. */ - logLink?: string; + timeout?: number; /** - * The link to logs in registry for a run on a azure container registry. + * The platform properties against which the run has to happen. */ - 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 ProxyResource { + platform: PlatformProperties; /** - * Identity for the resource. + * The machine configuration of the run agent. */ - identity?: IdentityProperties; + agentConfiguration?: AgentProperties; /** - * The provisioning state of this task run. 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 URL(absolute or relative) of the source context. It can be an URL to a tar or git + * repository. + * If it is relative URL, the relative path should be obtained from calling + * listBuildSourceUploadUrl API. */ - readonly provisioningState?: ProvisioningState; + sourceLocation?: string; /** - * The request (parameters) for the run + * The properties that describes a set of credentials that will be used when this run is invoked. */ - runRequest?: RunRequestUnion; + credentials?: Credentials; +} + +/** + * The properties of a overridable value that can be passed to a task template. + */ +export interface SetValue { /** - * The result of this task run - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The name of the overridable value. */ - readonly runResult?: Run; + name: string; /** - * How the run should be forced to rerun even if the run request configuration has not changed + * The overridable value. */ - forceUpdateTag?: string; + value: string; /** - * The location of the resource + * Flag to indicate whether the value represents a secret or not. Default value: false. */ - location?: string; + isSecret?: boolean; } /** - * The parameters for updating a task run. + * The request parameters for a scheduling run against a task file. */ -export interface TaskRunUpdateParameters { +export interface FileTaskRunRequest { /** - * Identity for the resource. + * Polymorphic Discriminator */ - identity?: IdentityProperties; + type: "FileTaskRunRequest"; /** - * The request (parameters) for the new run + * The value that indicates whether archiving is enabled for the run or not. Default value: + * false. */ - runRequest?: RunRequestUnion; + isArchiveEnabled?: boolean; /** - * How the run should be forced to rerun even if the run request configuration has not changed + * The dedicated agent pool for the run. */ - forceUpdateTag?: string; + agentPoolName?: string; /** - * The location of the resource + * The template that describes the repository and tag information for run log artifact. */ - location?: string; + logTemplate?: string; /** - * The ARM resource tags. + * The template/definition file path relative to the source. */ - tags?: { [propertyName: string]: string }; + taskFilePath: string; + /** + * The values/parameters file path relative to the source. + */ + valuesFilePath?: string; + /** + * The collection of overridable values that can be passed when running a task. + */ + values?: SetValue[]; + /** + * Run timeout in seconds. Default value: 3600. + */ + timeout?: number; + /** + * The platform properties against which the run has to happen. + */ + platform: PlatformProperties; + /** + * The machine configuration of the run agent. + */ + agentConfiguration?: AgentProperties; + /** + * The URL(absolute or relative) of the source context. It can be an URL to a tar or git + * repository. + * If it is relative URL, the relative path should be obtained from calling + * listBuildSourceUploadUrl API. + */ + sourceLocation?: string; + /** + * The properties that describes a set of credentials that will be used when this run is invoked. + */ + credentials?: Credentials; } /** - * Properties that describe a base image dependency. + * An interface representing OverrideTaskStepProperties. */ -export interface BaseImageDependency { +export interface OverrideTaskStepProperties { /** - * The type of the base image dependency. Possible values include: 'BuildTime', 'RunTime' + * The source context against which run has to be queued. */ - type?: BaseImageDependencyType; + contextPath?: string; /** - * The registry login server. + * The file against which run has to be queued. */ - registry?: string; + file?: string; /** - * The repository name. + * Gets or sets the collection of override arguments to be used when + * executing a build step. */ - repository?: string; + argumentsProperty?: Argument[]; /** - * The tag name. + * The name of the target build stage for the docker build. */ - tag?: string; + target?: string; /** - * The sha256-based digest of the image manifest. + * The collection of overridable values that can be passed when running a Task. */ - digest?: string; + values?: SetValue[]; + /** + * Base64 encoded update trigger token that will be attached with the base image trigger webhook. + */ + updateTriggerToken?: string; } /** - * Contains the possible cases for TaskStepProperties. - */ -export type TaskStepPropertiesUnion = TaskStepProperties | DockerBuildStep | FileTaskStep | EncodedTaskStep; - -/** - * Base properties for any task step. + * The parameters for a task run request. */ -export interface TaskStepProperties { +export interface TaskRunRequest { /** * Polymorphic Discriminator */ - type: "TaskStepProperties"; + type: "TaskRunRequest"; /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The value that indicates whether archiving is enabled for the run or not. Default value: + * false. */ - readonly baseImageDependencies?: BaseImageDependency[]; + isArchiveEnabled?: boolean; /** - * The URL(absolute or relative) of the source context for the task step. + * The dedicated agent pool for the run. */ - contextPath?: string; + agentPoolName?: string; /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. + * The template that describes the repository and tag information for run log artifact. */ - contextAccessToken?: string; + logTemplate?: string; + /** + * The resource ID of task against which run has to be queued. + */ + taskId: string; + /** + * Set of overridable parameters that can be passed when running a Task. + */ + overrideTaskStepProperties?: OverrideTaskStepProperties; } /** - * The properties of a timer trigger. + * The parameters for a quick task run request. */ -export interface TimerTrigger { +export interface EncodedTaskRunRequest { /** - * The CRON expression for the task schedule + * Polymorphic Discriminator */ - schedule: string; + type: "EncodedTaskRunRequest"; /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. + * The value that indicates whether archiving is enabled for the run or not. Default value: + * false. */ - status?: TriggerStatus; + isArchiveEnabled?: boolean; /** - * The name of the trigger. + * The dedicated agent pool for the run. */ - name: string; -} - -/** - * The authorization properties for accessing the source code repository. - */ -export interface AuthInfo { + agentPoolName?: string; /** - * The type of Auth token. Possible values include: 'PAT', 'OAuth' + * The template that describes the repository and tag information for run log artifact. */ - tokenType: TokenType; + logTemplate?: string; /** - * The access token used to access the source control provider. + * Base64 encoded value of the template/definition file content. */ - token: string; + encodedTaskContent: string; /** - * The refresh token used to refresh the access token. + * Base64 encoded value of the parameters/values file content. */ - refreshToken?: string; + encodedValuesContent?: string; /** - * The scope of the access token. + * The collection of overridable values that can be passed when running a task. */ - scope?: string; + values?: SetValue[]; /** - * Time in seconds that the token remains valid + * Run timeout in seconds. Default value: 3600. */ - expiresIn?: number; -} - -/** - * The properties of the source code repository. - */ -export interface SourceProperties { + timeout?: number; /** - * The type of source control service. Possible values include: 'Github', - * 'VisualStudioTeamService' + * The platform properties against which the run has to happen. */ - sourceControlType: SourceControlType; + platform: PlatformProperties; /** - * The full URL to the source code repository + * The machine configuration of the run agent. */ - repositoryUrl: string; + agentConfiguration?: AgentProperties; /** - * The branch name of the source code. + * The URL(absolute or relative) of the source context. It can be an URL to a tar or git + * repository. + * If it is relative URL, the relative path should be obtained from calling + * listBuildSourceUploadUrl API. */ - branch?: string; + sourceLocation?: string; /** - * The authorization properties for accessing the source code repository and to set up - * webhooks for notifications. + * The properties that describes a set of credentials that will be used when this run is invoked. */ - sourceControlAuthProperties?: AuthInfo; + credentials?: Credentials; } /** - * The properties of a source based trigger. + * The Docker build step. */ -export interface SourceTrigger { +export interface DockerBuildStep { /** - * The properties that describes the source(code) for the task. + * Polymorphic Discriminator */ - sourceRepository: SourceProperties; + type: "Docker"; /** - * The source event corresponding to the trigger. + * List of base image dependencies for a step. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceTriggerEvents: SourceTriggerEvent[]; + readonly baseImageDependencies?: BaseImageDependency[]; /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. + * The URL(absolute or relative) of the source context for the task step. */ - status?: TriggerStatus; + contextPath?: string; /** - * The name of the trigger. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - name: string; -} - -/** - * The trigger based on base image dependency. - */ -export interface BaseImageTrigger { + contextAccessToken?: string; /** - * The type of the auto trigger for base image dependency updates. Possible values include: - * 'All', 'Runtime' + * The fully qualified image names including the repository and tag. */ - baseImageTriggerType: BaseImageTriggerType; + imageNames?: string[]; /** - * The endpoint URL for receiving update triggers. + * The value of this property indicates whether the image built should be pushed to the registry + * or not. Default value: true. */ - updateTriggerEndpoint?: string; + isPushEnabled?: boolean; /** - * Type of Payload body for Base image update triggers. Possible values include: 'Default', - * 'Token' + * The value of this property indicates whether the image cache is enabled or not. Default value: + * false. */ - updateTriggerPayloadType?: UpdateTriggerPayloadType; + noCache?: boolean; /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. + * The Docker file path relative to the source context. */ - status?: TriggerStatus; + dockerFilePath: string; /** - * The name of the trigger. + * The name of the target build stage for the docker build. */ - name: string; + target?: string; + /** + * The collection of override arguments to be used when executing this build step. + */ + argumentsProperty?: Argument[]; } /** - * The properties of a trigger. + * The properties of a task step. */ -export interface TriggerProperties { +export interface FileTaskStep { /** - * The collection of timer triggers. + * Polymorphic Discriminator */ - timerTriggers?: TimerTrigger[]; + type: "FileTask"; /** - * The collection of triggers based on source code repository. + * List of base image dependencies for a step. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - sourceTriggers?: SourceTrigger[]; + readonly baseImageDependencies?: BaseImageDependency[]; /** - * The trigger based on base image dependencies. + * The URL(absolute or relative) of the source context for the task step. */ - baseImageTrigger?: BaseImageTrigger; -} - -/** - * Describes the credential parameters for accessing the source registry. - */ -export interface SourceRegistryCredentials { + contextPath?: string; /** - * The authentication mode which determines the source registry login scope. The credentials for - * the source registry - * will be generated using the given scope. These credentials will be used to login to - * the source registry during the run. Possible values include: 'None', 'Default' - */ - loginMode?: SourceRegistryLoginMode; -} - -/** - * Describes the properties of a secret object value. - */ -export interface SecretObject { - /** - * The value of the secret. The format of this value will be determined - * based on the type of the secret object. If the type is Opaque, the value will be - * used as is without any modification. - */ - value?: string; - /** - * The type of the secret object which determines how the value of the secret object has to be - * interpreted. Possible values include: 'Opaque', 'Vaultsecret' - */ - type?: SecretObjectType; -} - -/** - * Describes the credentials that will be used to access a custom registry during a run. - */ -export interface CustomRegistryCredentials { - /** - * The username for logging into the custom registry. - */ - userName?: SecretObject; - /** - * The password for logging into the custom registry. The password is a secret - * object that allows multiple ways of providing the value for it. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - password?: SecretObject; + contextAccessToken?: string; /** - * Indicates the managed identity assigned to the custom credential. If a user-assigned identity - * this value is the Client ID. If a system-assigned identity, the value will be `system`. In - * the case of a system-assigned identity, the Client ID will be determined by the runner. This - * identity may be used to authenticate to key vault to retrieve credentials or it may be the - * only - * source of authentication used for accessing the registry. + * The task template/definition file path relative to the source context. */ - identity?: string; -} - -/** - * The parameters that describes a set of credentials that will be used when a run is invoked. - */ -export interface Credentials { + taskFilePath: string; /** - * Describes the credential parameters for accessing the source registry. + * The task values/parameters file path relative to the source context. */ - sourceRegistry?: SourceRegistryCredentials; + valuesFilePath?: string; /** - * Describes the credential parameters for accessing other custom registries. The key - * for the dictionary item will be the registry login server (myregistry.azurecr.io) and - * the value of the item will be the registry credentials for accessing the registry. + * The collection of overridable values that can be passed when running a task. */ - customRegistries?: { [propertyName: string]: CustomRegistryCredentials }; + values?: SetValue[]; } /** - * The task that has the ARM resource and task properties. - * The task will have all information to schedule a run against it. + * The properties of a encoded task step. */ -export interface Task extends Resource { +export interface EncodedTaskStep { /** - * Identity for the resource. + * Polymorphic Discriminator */ - identity?: IdentityProperties; + type: "EncodedTask"; /** - * The provisioning state of the task. Possible values include: 'Creating', 'Updating', - * 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * List of base image dependencies for a step. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly provisioningState?: ProvisioningState; + readonly baseImageDependencies?: BaseImageDependency[]; /** - * The creation date of task. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The URL(absolute or relative) of the source context for the task step. */ - readonly creationDate?: Date; + contextPath?: string; /** - * The current status of task. Possible values include: 'Disabled', 'Enabled' + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - status?: TaskStatus; + contextAccessToken?: string; /** - * The platform properties against which the run has to happen. + * Base64 encoded value of the template/definition file content. */ - platform?: PlatformProperties; + encodedTaskContent: string; /** - * The machine configuration of the run agent. + * Base64 encoded value of the parameters/values file content. */ - agentConfiguration?: AgentProperties; + encodedValuesContent?: string; /** - * The dedicated agent pool for the task. + * The collection of overridable values that can be passed when running a task. */ - agentPoolName?: string; + values?: SetValue[]; +} + +/** + * The properties for updating a docker build step. + */ +export interface DockerBuildStepUpdateParameters { /** - * Run timeout in seconds. Default value: 3600. + * Polymorphic Discriminator */ - timeout?: number; + type: "Docker"; /** - * The properties of a task step. + * The URL(absolute or relative) of the source context for the task step. */ - step?: TaskStepPropertiesUnion; + contextPath?: string; /** - * The properties that describe all triggers for the task. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - trigger?: TriggerProperties; + contextAccessToken?: string; /** - * The properties that describes a set of credentials that will be used when this run is invoked. + * The fully qualified image names including the repository and tag. */ - credentials?: Credentials; + imageNames?: string[]; /** - * The template that describes the repository and tag information for run log artifact. + * The value of this property indicates whether the image built should be pushed to the registry + * or not. */ - logTemplate?: string; + isPushEnabled?: boolean; /** - * The value of this property indicates whether the task resource is system task or not. Default - * value: false. + * The value of this property indicates whether the image cache is enabled or not. */ - isSystemTask?: boolean; -} - -/** - * The properties for updating the platform configuration. - */ -export interface PlatformUpdateParameters { + noCache?: boolean; /** - * The operating system type required for the run. Possible values include: 'Windows', 'Linux' + * The Docker file path relative to the source context. */ - os?: OS; + dockerFilePath?: string; /** - * The OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' + * The collection of override arguments to be used when executing this build step. */ - architecture?: Architecture; + argumentsProperty?: Argument[]; /** - * Variant of the CPU. Possible values include: 'v6', 'v7', 'v8' + * The name of the target build stage for the docker build. */ - variant?: Variant; + target?: string; } /** - * Contains the possible cases for TaskStepUpdateParameters. - */ -export type TaskStepUpdateParametersUnion = TaskStepUpdateParameters | DockerBuildStepUpdateParameters | FileTaskStepUpdateParameters | EncodedTaskStepUpdateParameters; - -/** - * Base properties for updating any task step. + * The properties of updating a task step. */ -export interface TaskStepUpdateParameters { +export interface FileTaskStepUpdateParameters { /** * Polymorphic Discriminator */ - type: "TaskStepUpdateParameters"; + type: "FileTask"; /** * The URL(absolute or relative) of the source context for the task step. */ @@ -2820,2132 +2730,522 @@ export interface TaskStepUpdateParameters { * step. */ contextAccessToken?: string; -} - -/** - * The properties for updating a timer trigger. - */ -export interface TimerTriggerUpdateParameters { /** - * The CRON expression for the task schedule + * The task template/definition file path relative to the source context. */ - schedule?: string; + taskFilePath?: string; /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. + * The values/parameters file path relative to the source context. */ - status?: TriggerStatus; + valuesFilePath?: string; /** - * The name of the trigger. + * The collection of overridable values that can be passed when running a task. */ - name: string; + values?: SetValue[]; } /** - * The authorization properties for accessing the source code repository. + * The properties for updating encoded task step. */ -export interface AuthInfoUpdateParameters { +export interface EncodedTaskStepUpdateParameters { /** - * The type of Auth token. Possible values include: 'PAT', 'OAuth' + * Polymorphic Discriminator */ - tokenType?: TokenType; + type: "EncodedTask"; /** - * The access token used to access the source control provider. + * The URL(absolute or relative) of the source context for the task step. */ - token?: string; + contextPath?: string; /** - * The refresh token used to refresh the access token. + * The token (git PAT or SAS token of storage account blob) associated with the context for a + * step. */ - refreshToken?: string; + contextAccessToken?: string; /** - * The scope of the access token. + * Base64 encoded value of the template/definition file content. */ - scope?: string; + encodedTaskContent?: string; /** - * Time in seconds that the token remains valid + * Base64 encoded value of the parameters/values file content. */ - expiresIn?: number; + encodedValuesContent?: string; + /** + * The collection of overridable values that can be passed when running a task. + */ + values?: SetValue[]; } /** - * The properties for updating the source code repository. + * Optional Parameters. */ -export interface SourceUpdateParameters { - /** - * The type of source control service. Possible values include: 'Github', - * 'VisualStudioTeamService' - */ - sourceControlType?: SourceControlType; - /** - * The full URL to the source code repository - */ - repositoryUrl?: string; +export interface RunsListOptionalParams extends msRest.RequestOptionsBase { /** - * The branch name of the source code. + * 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. */ - branch?: string; + filter?: string; /** - * The authorization properties for accessing the source code repository and to set up - * webhooks for notifications. + * $top is supported for get list of runs, which limits the maximum number of runs to return. */ - sourceControlAuthProperties?: AuthInfoUpdateParameters; + top?: number; } /** - * The properties for updating a source based trigger. + * Optional Parameters. */ -export interface SourceTriggerUpdateParameters { - /** - * The properties that describes the source(code) for the task. - */ - sourceRepository?: SourceUpdateParameters; - /** - * The source event corresponding to the trigger. - */ - sourceTriggerEvents?: SourceTriggerEvent[]; +export interface RunsListNextOptionalParams extends msRest.RequestOptionsBase { /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. + * 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. */ - status?: TriggerStatus; + filter?: string; /** - * The name of the trigger. + * $top is supported for get list of runs, which limits the maximum number of runs to return. */ - name: string; + top?: number; } /** - * The properties for updating base image dependency trigger. + * An interface representing ContainerRegistryManagementClientOptions. */ -export interface BaseImageTriggerUpdateParameters { - /** - * The type of the auto trigger for base image dependency updates. Possible values include: - * 'All', 'Runtime' - */ - baseImageTriggerType?: BaseImageTriggerType; - /** - * The endpoint URL for receiving update triggers. - */ - updateTriggerEndpoint?: string; - /** - * Type of Payload body for Base image update triggers. Possible values include: 'Default', - * 'Token' - */ - updateTriggerPayloadType?: UpdateTriggerPayloadType; - /** - * The current status of trigger. Possible values include: 'Enabled', 'Disabled'. Default value: - * 'Enabled'. - */ - status?: TriggerStatus; - /** - * The name of the trigger. - */ - name: string; +export interface ContainerRegistryManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; } /** - * The properties for updating triggers. + * @interface + * The result of a request to list container registries. + * @extends Array */ -export interface TriggerUpdateParameters { - /** - * The collection of timer triggers. - */ - timerTriggers?: TimerTriggerUpdateParameters[]; - /** - * The collection of triggers based on source code repository. - */ - sourceTriggers?: SourceTriggerUpdateParameters[]; +export interface RegistryListResult extends Array { /** - * The trigger based on base image dependencies. + * The URI that can be used to request the next list of container registries. */ - baseImageTrigger?: BaseImageTriggerUpdateParameters; + nextLink?: string; } /** - * The parameters for updating a task. + * @interface + * The result of a request to list private link resources for a container registry. + * @extends Array */ -export interface TaskUpdateParameters { - /** - * Identity for the resource. - */ - identity?: IdentityProperties; - /** - * The current status of task. Possible values include: 'Disabled', 'Enabled' - */ - status?: TaskStatus; - /** - * The platform properties against which the run has to happen. - */ - platform?: PlatformUpdateParameters; - /** - * The machine configuration of the run agent. - */ - agentConfiguration?: AgentProperties; - /** - * The dedicated agent pool for the task. - */ - agentPoolName?: string; - /** - * Run timeout in seconds. - */ - timeout?: number; - /** - * The properties for updating a task step. - */ - step?: TaskStepUpdateParametersUnion; - /** - * The properties for updating trigger properties. - */ - trigger?: TriggerUpdateParameters; - /** - * The parameters that describes a set of credentials that will be used when this run is invoked. - */ - credentials?: Credentials; - /** - * The template that describes the repository and tag information for run log artifact. - */ - logTemplate?: string; +export interface PrivateLinkResourceListResult extends Array { /** - * The ARM resource tags. + * The URI that can be used to request the next list of private link resources. */ - tags?: { [propertyName: string]: string }; + nextLink?: string; } /** - * The properties of a run argument. + * @interface + * The result of a request to list container registry operations. + * @extends Array */ -export interface Argument { - /** - * The name of the argument. - */ - name: string; - /** - * The value of the argument. - */ - value: string; +export interface OperationListResult extends Array { /** - * Flag to indicate whether the argument represents a secret and want to be removed from build - * logs. Default value: false. + * The URI that can be used to request the next list of container registry operations. */ - isSecret?: boolean; + nextLink?: string; } /** - * The parameters for a docker quick build. + * @interface + * The result of a request to list private endpoint connections for a container registry. + * @extends Array */ -export interface DockerBuildRequest { - /** - * Polymorphic Discriminator - */ - type: "DockerBuildRequest"; - /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. - */ - isArchiveEnabled?: boolean; - /** - * 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. - */ - imageNames?: string[]; - /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. Default value: true. - */ - isPushEnabled?: boolean; - /** - * The value of this property indicates whether the image cache is enabled or not. Default value: - * false. - */ - noCache?: boolean; - /** - * The Docker file path relative to the source location. - */ - dockerFilePath: string; - /** - * The name of the target build stage for the docker build. - */ - target?: string; - /** - * The collection of override arguments to be used when executing the run. - */ - argumentsProperty?: Argument[]; - /** - * Run timeout in seconds. Default value: 3600. - */ - timeout?: number; - /** - * The platform properties against which the run has to happen. - */ - platform: PlatformProperties; +export interface PrivateEndpointConnectionListResult extends Array { /** - * The machine configuration of the run agent. + * The URI that can be used to request the next list of private endpoint connections. */ - agentConfiguration?: AgentProperties; + nextLink?: string; +} + +/** + * @interface + * The result of a request to list replications for a container registry. + * @extends Array + */ +export interface ReplicationListResult extends Array { /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. - * If it is relative URL, the relative path should be obtained from calling - * listBuildSourceUploadUrl API. + * The URI that can be used to request the next list of replications. */ - sourceLocation?: string; + nextLink?: string; +} + +/** + * @interface + * The result of a request to list webhooks for a container registry. + * @extends Array + */ +export interface WebhookListResult extends Array { /** - * The properties that describes a set of credentials that will be used when this run is invoked. + * The URI that can be used to request the next list of webhooks. */ - credentials?: Credentials; + nextLink?: string; } /** - * The properties of a overridable value that can be passed to a task template. + * @interface + * The result of a request to list events for a webhook. + * @extends Array */ -export interface SetValue { +export interface EventListResult extends Array { /** - * The name of the overridable value. + * The URI that can be used to request the next list of events. */ - name: string; + nextLink?: string; +} + +/** + * @interface + * The collection of agent pools. + * @extends Array + */ +export interface AgentPoolListResult extends Array { /** - * The overridable value. + * The URI that can be used to request the next set of paged results. */ - value: string; + nextLink?: string; +} + +/** + * @interface + * Collection of runs. + * @extends Array + */ +export interface RunListResult extends Array { /** - * Flag to indicate whether the value represents a secret or not. Default value: false. + * The URI that can be used to request the next set of paged results. */ - isSecret?: boolean; + nextLink?: string; } /** - * The request parameters for a scheduling run against a task file. + * @interface + * The collection of task runs. + * @extends Array */ -export interface FileTaskRunRequest { +export interface TaskRunListResult extends Array { /** - * Polymorphic Discriminator + * The URI that can be used to request the next set of paged results. */ - type: "FileTaskRunRequest"; + nextLink?: string; +} + +/** + * @interface + * The collection of tasks. + * @extends Array + */ +export interface TaskListResult extends Array { /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. + * The URI that can be used to request the next set of paged results. */ - isArchiveEnabled?: boolean; - /** - * 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. - */ - taskFilePath: string; - /** - * The values/parameters file path relative to the source. - */ - valuesFilePath?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; - /** - * Run timeout in seconds. Default value: 3600. - */ - timeout?: number; - /** - * The platform properties against which the run has to happen. - */ - platform: PlatformProperties; - /** - * The machine configuration of the run agent. - */ - agentConfiguration?: AgentProperties; - /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. - * If it is relative URL, the relative path should be obtained from calling - * listBuildSourceUploadUrl API. - */ - sourceLocation?: string; - /** - * The properties that describes a set of credentials that will be used when this run is invoked. - */ - credentials?: Credentials; -} - -/** - * An interface representing OverrideTaskStepProperties. - */ -export interface OverrideTaskStepProperties { - /** - * The source context against which run has to be queued. - */ - contextPath?: string; - /** - * The file against which run has to be queued. - */ - file?: string; - /** - * Gets or sets the collection of override arguments to be used when - * executing a build step. - */ - argumentsProperty?: Argument[]; - /** - * The name of the target build stage for the docker build. - */ - target?: string; - /** - * The collection of overridable values that can be passed when running a Task. - */ - values?: SetValue[]; - /** - * Base64 encoded update trigger token that will be attached with the base image trigger webhook. - */ - updateTriggerToken?: string; -} - -/** - * The parameters for a task run request. - */ -export interface TaskRunRequest { - /** - * Polymorphic Discriminator - */ - type: "TaskRunRequest"; - /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. - */ - isArchiveEnabled?: boolean; - /** - * 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. - */ - taskId: string; - /** - * Set of overridable parameters that can be passed when running a Task. - */ - overrideTaskStepProperties?: OverrideTaskStepProperties; -} - -/** - * The parameters for a quick task run request. - */ -export interface EncodedTaskRunRequest { - /** - * Polymorphic Discriminator - */ - type: "EncodedTaskRunRequest"; - /** - * The value that indicates whether archiving is enabled for the run or not. Default value: - * false. - */ - isArchiveEnabled?: boolean; - /** - * 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. - */ - encodedTaskContent: string; - /** - * Base64 encoded value of the parameters/values file content. - */ - encodedValuesContent?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; - /** - * Run timeout in seconds. Default value: 3600. - */ - timeout?: number; - /** - * The platform properties against which the run has to happen. - */ - platform: PlatformProperties; - /** - * The machine configuration of the run agent. - */ - agentConfiguration?: AgentProperties; - /** - * The URL(absolute or relative) of the source context. It can be an URL to a tar or git - * repository. - * If it is relative URL, the relative path should be obtained from calling - * listBuildSourceUploadUrl API. - */ - sourceLocation?: string; - /** - * The properties that describes a set of credentials that will be used when this run is invoked. - */ - credentials?: Credentials; -} - -/** - * The Docker build step. - */ -export interface DockerBuildStep { - /** - * Polymorphic Discriminator - */ - type: "Docker"; - /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly baseImageDependencies?: BaseImageDependency[]; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * The fully qualified image names including the repository and tag. - */ - imageNames?: string[]; - /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. Default value: true. - */ - isPushEnabled?: boolean; - /** - * The value of this property indicates whether the image cache is enabled or not. Default value: - * false. - */ - noCache?: boolean; - /** - * The Docker file path relative to the source context. - */ - dockerFilePath: string; - /** - * The name of the target build stage for the docker build. - */ - target?: string; - /** - * The collection of override arguments to be used when executing this build step. - */ - argumentsProperty?: Argument[]; -} - -/** - * The properties of a task step. - */ -export interface FileTaskStep { - /** - * Polymorphic Discriminator - */ - type: "FileTask"; - /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly baseImageDependencies?: BaseImageDependency[]; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * The task template/definition file path relative to the source context. - */ - taskFilePath: string; - /** - * The task values/parameters file path relative to the source context. - */ - valuesFilePath?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; -} - -/** - * The properties of a encoded task step. - */ -export interface EncodedTaskStep { - /** - * Polymorphic Discriminator - */ - type: "EncodedTask"; - /** - * List of base image dependencies for a step. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly baseImageDependencies?: BaseImageDependency[]; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * Base64 encoded value of the template/definition file content. - */ - encodedTaskContent: string; - /** - * Base64 encoded value of the parameters/values file content. - */ - encodedValuesContent?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; -} - -/** - * The properties for updating a docker build step. - */ -export interface DockerBuildStepUpdateParameters { - /** - * Polymorphic Discriminator - */ - type: "Docker"; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * The fully qualified image names including the repository and tag. - */ - imageNames?: string[]; - /** - * The value of this property indicates whether the image built should be pushed to the registry - * or not. - */ - isPushEnabled?: boolean; - /** - * The value of this property indicates whether the image cache is enabled or not. - */ - noCache?: boolean; - /** - * The Docker file path relative to the source context. - */ - dockerFilePath?: string; - /** - * The collection of override arguments to be used when executing this build step. - */ - argumentsProperty?: Argument[]; - /** - * The name of the target build stage for the docker build. - */ - target?: string; -} - -/** - * The properties of updating a task step. - */ -export interface FileTaskStepUpdateParameters { - /** - * Polymorphic Discriminator - */ - type: "FileTask"; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * The task template/definition file path relative to the source context. - */ - taskFilePath?: string; - /** - * The values/parameters file path relative to the source context. - */ - valuesFilePath?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; -} - -/** - * The properties for updating encoded task step. - */ -export interface EncodedTaskStepUpdateParameters { - /** - * Polymorphic Discriminator - */ - type: "EncodedTask"; - /** - * The URL(absolute or relative) of the source context for the task step. - */ - contextPath?: string; - /** - * The token (git PAT or SAS token of storage account blob) associated with the context for a - * step. - */ - contextAccessToken?: string; - /** - * Base64 encoded value of the template/definition file content. - */ - encodedTaskContent?: string; - /** - * Base64 encoded value of the parameters/values file content. - */ - encodedValuesContent?: string; - /** - * The collection of overridable values that can be passed when running a task. - */ - values?: SetValue[]; -} - -/** - * Optional Parameters. - */ -export interface ConnectedRegistriesListOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface ConnectedRegistriesListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * 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. - */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface RunsListOptionalParams extends msRest.RequestOptionsBase { - /** - * The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed - * string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. - */ - filter?: string; - /** - * $top is supported for get list of runs, which limits the maximum number of runs to return. - */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface RunsListNextOptionalParams extends msRest.RequestOptionsBase { - /** - * The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed - * string function is 'contains'. All logical operators except 'Not', 'Has', 'All' are allowed. - */ - filter?: string; - /** - * $top is supported for get list of runs, which limits the maximum number of runs to return. - */ - top?: number; -} - -/** - * An interface representing ContainerRegistryManagementClientOptions. - */ -export interface ContainerRegistryManagementClientOptions extends AzureServiceClientOptions { - 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. - * @extends Array - */ -export interface ExportPipelineListResult extends Array { - /** - * The URI that can be used to request the next list of pipeline runs. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list container registries. - * @extends Array - */ -export interface RegistryListResult extends Array { - /** - * The URI that can be used to request the next list of container registries. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list private link resources for a container registry. - * @extends Array - */ -export interface PrivateLinkResourceListResult extends Array { - /** - * The URI that can be used to request the next list of private link resources. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list import pipelines for a container registry. - * @extends Array - */ -export interface ImportPipelineListResult extends Array { - /** - * The URI that can be used to request the next list of pipeline runs. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list container registry operations. - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * The URI that can be used to request the next list of container registry operations. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list pipeline runs for a container registry. - * @extends Array - */ -export interface PipelineRunListResult extends Array { - /** - * The URI that can be used to request the next list of pipeline runs. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list private endpoint connections for a container registry. - * @extends Array - */ -export interface PrivateEndpointConnectionListResult extends Array { - /** - * The URI that can be used to request the next list of private endpoint connections. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list replications for a container registry. - * @extends Array - */ -export interface ReplicationListResult extends Array { - /** - * The URI that can be used to request the next list of replications. - */ - 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. - * @extends Array - */ -export interface WebhookListResult extends Array { - /** - * The URI that can be used to request the next list of webhooks. - */ - nextLink?: string; -} - -/** - * @interface - * The result of a request to list events for a webhook. - * @extends Array - */ -export interface EventListResult extends Array { - /** - * The URI that can be used to request the next list of events. - */ - nextLink?: string; -} - -/** - * @interface - * The collection of agent pools. - * @extends Array - */ -export interface AgentPoolListResult extends Array { - /** - * The URI that can be used to request the next set of paged results. - */ - nextLink?: string; -} - -/** - * @interface - * Collection of runs. - * @extends Array - */ -export interface RunListResult extends Array { - /** - * The URI that can be used to request the next set of paged results. - */ - nextLink?: string; -} - -/** - * @interface - * The collection of task runs. - * @extends Array - */ -export interface TaskRunListResult extends Array { - /** - * The URI that can be used to request the next set of paged results. - */ - nextLink?: string; -} - -/** - * @interface - * The collection of tasks. - * @extends Array - */ -export interface TaskListResult extends Array { - /** - * The URI that can be used to request the next set of paged results. - */ - nextLink?: string; -} - -/** - * 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 ConnectedRegistryMode. - * Possible values include: 'ReadWrite', 'ReadOnly', 'Registry', 'Mirror' - * @readonly - * @enum {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. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', - * 'None' - * @readonly - * @enum {string} - */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; - -/** - * Defines values for PipelineOptions. - * Possible values include: 'OverwriteTags', 'OverwriteBlobs', 'DeleteSourceBlobOnSuccess', - * 'ContinueOnErrors' - * @readonly - * @enum {string} - */ -export type PipelineOptions = 'OverwriteTags' | 'OverwriteBlobs' | 'DeleteSourceBlobOnSuccess' | 'ContinueOnErrors'; - -/** - * Defines values for ImportMode. - * Possible values include: 'NoForce', 'Force' - * @readonly - * @enum {string} - */ -export type ImportMode = 'NoForce' | 'Force'; - -/** - * Defines values for PipelineSourceType. - * Possible values include: 'AzureStorageBlobContainer' - * @readonly - * @enum {string} - */ -export type PipelineSourceType = 'AzureStorageBlobContainer'; - -/** - * Defines values for TriggerStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type TriggerStatus = 'Enabled' | 'Disabled'; - -/** - * Defines values for PipelineRunSourceType. - * Possible values include: 'AzureStorageBlob' - * @readonly - * @enum {string} - */ -export type PipelineRunSourceType = 'AzureStorageBlob'; - -/** - * Defines values for PipelineRunTargetType. - * Possible values include: 'AzureStorageBlob' - * @readonly - * @enum {string} - */ -export type PipelineRunTargetType = 'AzureStorageBlob'; - -/** - * Defines values for ConnectionStatus. - * Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' - * @readonly - * @enum {string} - */ -export type ConnectionStatus = 'Approved' | 'Pending' | 'Rejected' | 'Disconnected'; - -/** - * Defines values for ActionsRequired. - * Possible values include: 'None', 'Recreate' - * @readonly - * @enum {string} - */ -export type ActionsRequired = 'None' | 'Recreate'; - -/** - * Defines values for SkuName. - * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium' - * @readonly - * @enum {string} - */ -export type SkuName = 'Classic' | 'Basic' | 'Standard' | 'Premium'; - -/** - * Defines values for SkuTier. - * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium' - * @readonly - * @enum {string} - */ -export type SkuTier = 'Classic' | 'Basic' | 'Standard' | 'Premium'; - -/** - * Defines values for DefaultAction. - * Possible values include: 'Allow', 'Deny' - * @readonly - * @enum {string} - */ -export type DefaultAction = 'Allow' | 'Deny'; - -/** - * Defines values for Action. - * Possible values include: 'Allow' - * @readonly - * @enum {string} - */ -export type Action = 'Allow'; - -/** - * Defines values for PolicyStatus. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} - */ -export type PolicyStatus = 'enabled' | 'disabled'; - -/** - * Defines values for TrustPolicyType. - * Possible values include: 'Notary' - * @readonly - * @enum {string} - */ -export type TrustPolicyType = 'Notary'; - -/** - * Defines values for ExportPolicyStatus. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} - */ -export type ExportPolicyStatus = 'enabled' | 'disabled'; - -/** - * Defines values for EncryptionStatus. - * Possible values include: 'enabled', 'disabled' - * @readonly - * @enum {string} - */ -export type EncryptionStatus = 'enabled' | 'disabled'; - -/** - * Defines values for PublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type PublicNetworkAccess = 'Enabled' | 'Disabled'; - -/** - * Defines values for NetworkRuleBypassOptions. - * Possible values include: 'AzureServices', 'None' - * @readonly - * @enum {string} - */ -export type NetworkRuleBypassOptions = 'AzureServices' | 'None'; - -/** - * Defines values for ZoneRedundancy. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type ZoneRedundancy = 'Enabled' | 'Disabled'; - -/** - * Defines values for RegistryUsageUnit. - * Possible values include: 'Count', 'Bytes' - * @readonly - * @enum {string} - */ -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' - * @readonly - * @enum {string} - */ -export type WebhookStatus = 'enabled' | 'disabled'; - -/** - * Defines values for WebhookAction. - * Possible values include: 'push', 'delete', 'quarantine', 'chart_push', 'chart_delete' - * @readonly - * @enum {string} - */ -export type WebhookAction = 'push' | 'delete' | 'quarantine' | 'chart_push' | 'chart_delete'; - -/** - * Defines values for OS. - * Possible values include: 'Windows', 'Linux' - * @readonly - * @enum {string} - */ -export type OS = 'Windows' | 'Linux'; - -/** - * Defines values for RunStatus. - * Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', - * 'Error', 'Timeout' - * @readonly - * @enum {string} - */ -export type RunStatus = 'Queued' | 'Started' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled' | 'Error' | 'Timeout'; - -/** - * Defines values for RunType. - * Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' - * @readonly - * @enum {string} - */ -export type RunType = 'QuickBuild' | 'QuickRun' | 'AutoBuild' | 'AutoRun'; - -/** - * Defines values for Architecture. - * Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' - * @readonly - * @enum {string} - */ -export type Architecture = 'amd64' | 'x86' | '386' | 'arm' | 'arm64'; - -/** - * Defines values for Variant. - * Possible values include: 'v6', 'v7', 'v8' - * @readonly - * @enum {string} - */ -export type Variant = 'v6' | 'v7' | 'v8'; - -/** - * Defines values for TaskStatus. - * Possible values include: 'Disabled', 'Enabled' - * @readonly - * @enum {string} - */ -export type TaskStatus = 'Disabled' | 'Enabled'; - -/** - * Defines values for BaseImageDependencyType. - * Possible values include: 'BuildTime', 'RunTime' - * @readonly - * @enum {string} - */ -export type BaseImageDependencyType = 'BuildTime' | 'RunTime'; - -/** - * Defines values for SourceControlType. - * Possible values include: 'Github', 'VisualStudioTeamService' - * @readonly - * @enum {string} - */ -export type SourceControlType = 'Github' | 'VisualStudioTeamService'; - -/** - * Defines values for TokenType. - * Possible values include: 'PAT', 'OAuth' - * @readonly - * @enum {string} - */ -export type TokenType = 'PAT' | 'OAuth'; - -/** - * Defines values for SourceTriggerEvent. - * Possible values include: 'commit', 'pullrequest' - * @readonly - * @enum {string} - */ -export type SourceTriggerEvent = 'commit' | 'pullrequest'; - -/** - * Defines values for BaseImageTriggerType. - * Possible values include: 'All', 'Runtime' - * @readonly - * @enum {string} - */ -export type BaseImageTriggerType = 'All' | 'Runtime'; - -/** - * Defines values for UpdateTriggerPayloadType. - * Possible values include: 'Default', 'Token' - * @readonly - * @enum {string} - */ -export type UpdateTriggerPayloadType = 'Default' | 'Token'; - -/** - * Defines values for SourceRegistryLoginMode. - * Possible values include: 'None', 'Default' - * @readonly - * @enum {string} - */ -export type SourceRegistryLoginMode = 'None' | 'Default'; - -/** - * Defines values for SecretObjectType. - * Possible values include: 'Opaque', 'Vaultsecret' - * @readonly - * @enum {string} - */ -export type SecretObjectType = 'Opaque' | 'Vaultsecret'; - -/** - * Contains response data for the list operation. - */ -export type ConnectedRegistriesListResponse = ConnectedRegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConnectedRegistryListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -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; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConnectedRegistry; - }; -}; - -/** - * Contains response data for the beginUpdate operation. - */ -export type ConnectedRegistriesBeginUpdateResponse = ConnectedRegistry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConnectedRegistry; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ConnectedRegistriesListNextResponse = ConnectedRegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ConnectedRegistryListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ExportPipelinesListResponse = ExportPipelineListResult & { - /** - * 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: ExportPipelineListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExportPipelinesGetResponse = ExportPipeline & { - /** - * 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: ExportPipeline; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type ExportPipelinesCreateResponse = ExportPipeline & { - /** - * 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: ExportPipeline; - }; -}; - -/** - * Contains response data for the beginCreate operation. - */ -export type ExportPipelinesBeginCreateResponse = ExportPipeline & { - /** - * 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: ExportPipeline; - }; -}; + nextLink?: string; +} /** - * Contains response data for the listNext operation. + * Defines values for ImportMode. + * Possible values include: 'NoForce', 'Force' + * @readonly + * @enum {string} */ -export type ExportPipelinesListNextResponse = ExportPipelineListResult & { - /** - * 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: ExportPipelineListResult; - }; -}; +export type ImportMode = 'NoForce' | 'Force'; /** - * Contains response data for the checkNameAvailability operation. + * Defines values for ConnectionStatus. + * Possible values include: 'Approved', 'Pending', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} */ -export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryNameStatus; - }; -}; +export type ConnectionStatus = 'Approved' | 'Pending' | 'Rejected' | 'Disconnected'; /** - * Contains response data for the list operation. + * Defines values for ActionsRequired. + * Possible values include: 'None', 'Recreate' + * @readonly + * @enum {string} */ -export type RegistriesListResponse = RegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListResult; - }; -}; +export type ActionsRequired = 'None' | 'Recreate'; /** - * Contains response data for the listByResourceGroup operation. + * Defines values for ProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} */ -export type RegistriesListByResourceGroupResponse = RegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListResult; - }; -}; +export type ProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; /** - * Contains response data for the get operation. + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} */ -export type RegistriesGetResponse = Registry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Registry; - }; -}; +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** - * Contains response data for the create operation. + * Defines values for LastModifiedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} */ -export type RegistriesCreateResponse = Registry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Registry; - }; -}; +export type LastModifiedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; /** - * Contains response data for the update operation. + * Defines values for SkuName. + * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium' + * @readonly + * @enum {string} */ -export type RegistriesUpdateResponse = Registry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: Registry; - }; -}; +export type SkuName = 'Classic' | 'Basic' | 'Standard' | 'Premium'; /** - * Contains response data for the listUsages operation. + * Defines values for SkuTier. + * Possible values include: 'Classic', 'Basic', 'Standard', 'Premium' + * @readonly + * @enum {string} */ -export type RegistriesListUsagesResponse = RegistryUsageListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryUsageListResult; - }; -}; +export type SkuTier = 'Classic' | 'Basic' | 'Standard' | 'Premium'; /** - * Contains response data for the listPrivateLinkResources operation. + * Defines values for ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' + * @readonly + * @enum {string} */ -export type RegistriesListPrivateLinkResourcesResponse = PrivateLinkResourceListResult & { - /** - * 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: PrivateLinkResourceListResult; - }; -}; +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; /** - * Contains response data for the listCredentials operation. + * Defines values for DefaultAction. + * Possible values include: 'Allow', 'Deny' + * @readonly + * @enum {string} */ -export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListCredentialsResult; - }; -}; +export type DefaultAction = 'Allow' | 'Deny'; /** - * Contains response data for the regenerateCredential operation. + * Defines values for Action. + * Possible values include: 'Allow' + * @readonly + * @enum {string} */ -export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type Action = 'Allow'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListCredentialsResult; - }; -}; +/** + * Defines values for PolicyStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} + */ +export type PolicyStatus = 'enabled' | 'disabled'; /** - * Contains response data for the generateCredentials operation. + * Defines values for TrustPolicyType. + * Possible values include: 'Notary' + * @readonly + * @enum {string} */ -export type RegistriesGenerateCredentialsResponse = GenerateCredentialsResult & { - /** - * 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: GenerateCredentialsResult; - }; -}; +export type TrustPolicyType = 'Notary'; /** - * Contains response data for the scheduleRun operation. + * Defines values for ExportPolicyStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} */ -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; - }; -}; +export type ExportPolicyStatus = 'enabled' | 'disabled'; /** - * Contains response data for the getBuildSourceUploadUrl operation. + * Defines values for EncryptionStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} */ -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; - }; -}; +export type EncryptionStatus = 'enabled' | 'disabled'; /** - * Contains response data for the beginCreate operation. + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} */ -export type RegistriesBeginCreateResponse = Registry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Registry; - }; -}; +/** + * Defines values for NetworkRuleBypassOptions. + * Possible values include: 'AzureServices', 'None' + * @readonly + * @enum {string} + */ +export type NetworkRuleBypassOptions = 'AzureServices' | 'None'; /** - * Contains response data for the beginUpdate operation. + * Defines values for ZoneRedundancy. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} */ -export type RegistriesBeginUpdateResponse = Registry & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type ZoneRedundancy = 'Enabled' | 'Disabled'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Registry; - }; -}; +/** + * Defines values for RegistryUsageUnit. + * Possible values include: 'Count', 'Bytes' + * @readonly + * @enum {string} + */ +export type RegistryUsageUnit = 'Count' | 'Bytes'; /** - * Contains response data for the beginGenerateCredentials operation. + * Defines values for PasswordName. + * Possible values include: 'password', 'password2' + * @readonly + * @enum {string} */ -export type RegistriesBeginGenerateCredentialsResponse = GenerateCredentialsResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type PasswordName = 'password' | 'password2'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: GenerateCredentialsResult; - }; -}; +/** + * Defines values for WebhookStatus. + * Possible values include: 'enabled', 'disabled' + * @readonly + * @enum {string} + */ +export type WebhookStatus = 'enabled' | 'disabled'; /** - * Contains response data for the beginScheduleRun operation. + * Defines values for WebhookAction. + * Possible values include: 'push', 'delete', 'quarantine', 'chart_push', 'chart_delete' + * @readonly + * @enum {string} */ -export type RegistriesBeginScheduleRunResponse = Run & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type WebhookAction = 'push' | 'delete' | 'quarantine' | 'chart_push' | 'chart_delete'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: Run; - }; -}; +/** + * Defines values for OS. + * Possible values include: 'Windows', 'Linux' + * @readonly + * @enum {string} + */ +export type OS = 'Windows' | 'Linux'; /** - * Contains response data for the listNext operation. + * Defines values for RunStatus. + * Possible values include: 'Queued', 'Started', 'Running', 'Succeeded', 'Failed', 'Canceled', + * 'Error', 'Timeout' + * @readonly + * @enum {string} */ -export type RegistriesListNextResponse = RegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type RunStatus = 'Queued' | 'Started' | 'Running' | 'Succeeded' | 'Failed' | 'Canceled' | 'Error' | 'Timeout'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListResult; - }; -}; +/** + * Defines values for RunType. + * Possible values include: 'QuickBuild', 'QuickRun', 'AutoBuild', 'AutoRun' + * @readonly + * @enum {string} + */ +export type RunType = 'QuickBuild' | 'QuickRun' | 'AutoBuild' | 'AutoRun'; /** - * Contains response data for the listByResourceGroupNext operation. + * Defines values for Architecture. + * Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64' + * @readonly + * @enum {string} */ -export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type Architecture = 'amd64' | 'x86' | '386' | 'arm' | 'arm64'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: RegistryListResult; - }; -}; +/** + * Defines values for Variant. + * Possible values include: 'v6', 'v7', 'v8' + * @readonly + * @enum {string} + */ +export type Variant = 'v6' | 'v7' | 'v8'; /** - * Contains response data for the listPrivateLinkResourcesNext operation. + * Defines values for TaskStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} */ -export type RegistriesListPrivateLinkResourcesNextResponse = PrivateLinkResourceListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type TaskStatus = 'Disabled' | 'Enabled'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: PrivateLinkResourceListResult; - }; -}; +/** + * Defines values for BaseImageDependencyType. + * Possible values include: 'BuildTime', 'RunTime' + * @readonly + * @enum {string} + */ +export type BaseImageDependencyType = 'BuildTime' | 'RunTime'; /** - * Contains response data for the list operation. + * Defines values for TriggerStatus. + * Possible values include: 'Disabled', 'Enabled' + * @readonly + * @enum {string} */ -export type ImportPipelinesListResponse = ImportPipelineListResult & { - /** - * 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: ImportPipelineListResult; - }; -}; +export type TriggerStatus = 'Disabled' | 'Enabled'; /** - * Contains response data for the get operation. + * Defines values for SourceControlType. + * Possible values include: 'Github', 'VisualStudioTeamService' + * @readonly + * @enum {string} */ -export type ImportPipelinesGetResponse = ImportPipeline & { - /** - * 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: ImportPipeline; - }; -}; +export type SourceControlType = 'Github' | 'VisualStudioTeamService'; /** - * Contains response data for the create operation. + * Defines values for TokenType. + * Possible values include: 'PAT', 'OAuth' + * @readonly + * @enum {string} */ -export type ImportPipelinesCreateResponse = ImportPipeline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type TokenType = 'PAT' | 'OAuth'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportPipeline; - }; -}; +/** + * Defines values for SourceTriggerEvent. + * Possible values include: 'commit', 'pullrequest' + * @readonly + * @enum {string} + */ +export type SourceTriggerEvent = 'commit' | 'pullrequest'; /** - * Contains response data for the beginCreate operation. + * Defines values for BaseImageTriggerType. + * Possible values include: 'All', 'Runtime' + * @readonly + * @enum {string} */ -export type ImportPipelinesBeginCreateResponse = ImportPipeline & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type BaseImageTriggerType = 'All' | 'Runtime'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportPipeline; - }; -}; +/** + * Defines values for UpdateTriggerPayloadType. + * Possible values include: 'Default', 'Token' + * @readonly + * @enum {string} + */ +export type UpdateTriggerPayloadType = 'Default' | 'Token'; /** - * Contains response data for the listNext operation. + * Defines values for SourceRegistryLoginMode. + * Possible values include: 'None', 'Default' + * @readonly + * @enum {string} */ -export type ImportPipelinesListNextResponse = ImportPipelineListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; +export type SourceRegistryLoginMode = 'None' | 'Default'; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ImportPipelineListResult; - }; -}; +/** + * Defines values for SecretObjectType. + * Possible values include: 'Opaque', 'Vaultsecret' + * @readonly + * @enum {string} + */ +export type SecretObjectType = 'Opaque' | 'Vaultsecret'; /** - * Contains response data for the list operation. + * Contains response data for the checkNameAvailability operation. */ -export type OperationsListResponse = OperationListResult & { +export type RegistriesCheckNameAvailabilityResponse = RegistryNameStatus & { /** * The underlying HTTP response. */ @@ -4958,14 +3258,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: RegistryNameStatus; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type RegistriesListResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -4978,14 +3278,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: RegistryListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type PipelineRunsListResponse = PipelineRunListResult & { +export type RegistriesListByResourceGroupResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -4998,14 +3298,14 @@ export type PipelineRunsListResponse = PipelineRunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRunListResult; + parsedBody: RegistryListResult; }; }; /** * Contains response data for the get operation. */ -export type PipelineRunsGetResponse = PipelineRun & { +export type RegistriesGetResponse = Registry & { /** * The underlying HTTP response. */ @@ -5018,14 +3318,14 @@ export type PipelineRunsGetResponse = PipelineRun & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRun; + parsedBody: Registry; }; }; /** * Contains response data for the create operation. */ -export type PipelineRunsCreateResponse = PipelineRun & { +export type RegistriesCreateResponse = Registry & { /** * The underlying HTTP response. */ @@ -5038,14 +3338,14 @@ export type PipelineRunsCreateResponse = PipelineRun & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRun; + parsedBody: Registry; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the update operation. */ -export type PipelineRunsBeginCreateResponse = PipelineRun & { +export type RegistriesUpdateResponse = Registry & { /** * The underlying HTTP response. */ @@ -5058,14 +3358,14 @@ export type PipelineRunsBeginCreateResponse = PipelineRun & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRun; + parsedBody: Registry; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listUsages operation. */ -export type PipelineRunsListNextResponse = PipelineRunListResult & { +export type RegistriesListUsagesResponse = RegistryUsageListResult & { /** * The underlying HTTP response. */ @@ -5078,14 +3378,14 @@ export type PipelineRunsListNextResponse = PipelineRunListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PipelineRunListResult; + parsedBody: RegistryUsageListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listPrivateLinkResources operation. */ -export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { +export type RegistriesListPrivateLinkResourcesResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -5098,14 +3398,14 @@ export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionLi /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: PrivateLinkResourceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getPrivateLinkResource operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type RegistriesGetPrivateLinkResourceResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -5118,14 +3418,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listCredentials operation. */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { +export type RegistriesListCredentialsResponse = RegistryListCredentialsResult & { /** * The underlying HTTP response. */ @@ -5138,14 +3438,14 @@ export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: RegistryListCredentialsResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the regenerateCredential operation. */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { +export type RegistriesRegenerateCredentialResponse = RegistryListCredentialsResult & { /** * The underlying HTTP response. */ @@ -5158,14 +3458,14 @@ export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: RegistryListCredentialsResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the scheduleRun operation. */ -export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionListResult & { +export type RegistriesScheduleRunResponse = Run & { /** * The underlying HTTP response. */ @@ -5178,14 +3478,14 @@ export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnecti /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: Run; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getBuildSourceUploadUrl operation. */ -export type ReplicationsListResponse = ReplicationListResult & { +export type RegistriesGetBuildSourceUploadUrlResponse = SourceUploadDefinition & { /** * The underlying HTTP response. */ @@ -5198,14 +3498,14 @@ export type ReplicationsListResponse = ReplicationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationListResult; + parsedBody: SourceUploadDefinition; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginCreate operation. */ -export type ReplicationsGetResponse = Replication & { +export type RegistriesBeginCreateResponse = Registry & { /** * The underlying HTTP response. */ @@ -5218,14 +3518,14 @@ export type ReplicationsGetResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: Registry; }; }; /** - * Contains response data for the create operation. + * Contains response data for the beginUpdate operation. */ -export type ReplicationsCreateResponse = Replication & { +export type RegistriesBeginUpdateResponse = Registry & { /** * The underlying HTTP response. */ @@ -5238,14 +3538,14 @@ export type ReplicationsCreateResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: Registry; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginScheduleRun operation. */ -export type ReplicationsUpdateResponse = Replication & { +export type RegistriesBeginScheduleRunResponse = Run & { /** * The underlying HTTP response. */ @@ -5258,14 +3558,14 @@ export type ReplicationsUpdateResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: Run; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the listNext operation. */ -export type ReplicationsBeginCreateResponse = Replication & { +export type RegistriesListNextResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -5278,14 +3578,14 @@ export type ReplicationsBeginCreateResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: RegistryListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type ReplicationsBeginUpdateResponse = Replication & { +export type RegistriesListByResourceGroupNextResponse = RegistryListResult & { /** * The underlying HTTP response. */ @@ -5298,14 +3598,14 @@ export type ReplicationsBeginUpdateResponse = Replication & { /** * The response body as parsed JSON or XML */ - parsedBody: Replication; + parsedBody: RegistryListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listPrivateLinkResourcesNext operation. */ -export type ReplicationsListNextResponse = ReplicationListResult & { +export type RegistriesListPrivateLinkResourcesNextResponse = PrivateLinkResourceListResult & { /** * The underlying HTTP response. */ @@ -5318,14 +3618,14 @@ export type ReplicationsListNextResponse = ReplicationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ReplicationListResult; + parsedBody: PrivateLinkResourceListResult; }; }; /** * Contains response data for the list operation. */ -export type ScopeMapsListResponse = ScopeMapListResult & { +export type OperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -5338,14 +3638,14 @@ export type ScopeMapsListResponse = ScopeMapListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMapListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ -export type ScopeMapsGetResponse = ScopeMap & { +export type OperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -5358,14 +3658,14 @@ export type ScopeMapsGetResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the list operation. */ -export type ScopeMapsCreateResponse = ScopeMap & { +export type PrivateEndpointConnectionsListResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -5378,14 +3678,14 @@ export type ScopeMapsCreateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the get operation. */ -export type ScopeMapsUpdateResponse = ScopeMap & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -5398,14 +3698,14 @@ export type ScopeMapsUpdateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginCreate operation. + * Contains response data for the createOrUpdate operation. */ -export type ScopeMapsBeginCreateResponse = ScopeMap & { +export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -5418,14 +3718,14 @@ export type ScopeMapsBeginCreateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ScopeMapsBeginUpdateResponse = ScopeMap & { +export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -5438,14 +3738,14 @@ export type ScopeMapsBeginUpdateResponse = ScopeMap & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMap; + parsedBody: PrivateEndpointConnection; }; }; /** * Contains response data for the listNext operation. */ -export type ScopeMapsListNextResponse = ScopeMapListResult & { +export type PrivateEndpointConnectionsListNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -5458,14 +3758,14 @@ export type ScopeMapsListNextResponse = ScopeMapListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: ScopeMapListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** * Contains response data for the list operation. */ -export type TokensListResponse = TokenListResult & { +export type ReplicationsListResponse = ReplicationListResult & { /** * The underlying HTTP response. */ @@ -5478,14 +3778,14 @@ export type TokensListResponse = TokenListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TokenListResult; + parsedBody: ReplicationListResult; }; }; /** * Contains response data for the get operation. */ -export type TokensGetResponse = Token & { +export type ReplicationsGetResponse = Replication & { /** * The underlying HTTP response. */ @@ -5498,14 +3798,14 @@ export type TokensGetResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Replication; }; }; /** * Contains response data for the create operation. */ -export type TokensCreateResponse = Token & { +export type ReplicationsCreateResponse = Replication & { /** * The underlying HTTP response. */ @@ -5518,14 +3818,14 @@ export type TokensCreateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Replication; }; }; /** * Contains response data for the update operation. */ -export type TokensUpdateResponse = Token & { +export type ReplicationsUpdateResponse = Replication & { /** * The underlying HTTP response. */ @@ -5538,14 +3838,14 @@ export type TokensUpdateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Replication; }; }; /** * Contains response data for the beginCreate operation. */ -export type TokensBeginCreateResponse = Token & { +export type ReplicationsBeginCreateResponse = Replication & { /** * The underlying HTTP response. */ @@ -5558,14 +3858,14 @@ export type TokensBeginCreateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Replication; }; }; /** * Contains response data for the beginUpdate operation. */ -export type TokensBeginUpdateResponse = Token & { +export type ReplicationsBeginUpdateResponse = Replication & { /** * The underlying HTTP response. */ @@ -5578,14 +3878,14 @@ export type TokensBeginUpdateResponse = Token & { /** * The response body as parsed JSON or XML */ - parsedBody: Token; + parsedBody: Replication; }; }; /** * Contains response data for the listNext operation. */ -export type TokensListNextResponse = TokenListResult & { +export type ReplicationsListNextResponse = ReplicationListResult & { /** * The underlying HTTP response. */ @@ -5598,7 +3898,7 @@ export type TokensListNextResponse = TokenListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TokenListResult; + parsedBody: ReplicationListResult; }; }; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts index f4310816b713..116678a85da2 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/mappers.ts @@ -12,15 +12,21 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ActivationProperties: msRest.CompositeMapper = { - serializedName: "ActivationProperties", +export const ImportSourceCredentials: msRest.CompositeMapper = { + serializedName: "ImportSourceCredentials", type: { name: "Composite", - className: "ActivationProperties", + className: "ImportSourceCredentials", modelProperties: { - status: { - readOnly: true, - serializedName: "status", + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "password", type: { name: "String" } @@ -29,48 +35,34 @@ export const ActivationProperties: msRest.CompositeMapper = { } }; -export const SyncProperties: msRest.CompositeMapper = { - serializedName: "SyncProperties", +export const ImportSource: msRest.CompositeMapper = { + serializedName: "ImportSource", type: { name: "Composite", - className: "SyncProperties", + className: "ImportSource", modelProperties: { - tokenId: { - required: true, - serializedName: "tokenId", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - schedule: { - serializedName: "schedule", + registryUri: { + serializedName: "registryUri", type: { name: "String" } }, - syncWindow: { - serializedName: "syncWindow", + credentials: { + serializedName: "credentials", type: { - name: "TimeSpan" + name: "Composite", + className: "ImportSourceCredentials" } }, - messageTtl: { + sourceImage: { required: true, - serializedName: "messageTtl", - type: { - name: "TimeSpan" - } - }, - lastSyncTime: { - readOnly: true, - serializedName: "lastSyncTime", - type: { - name: "DateTime" - } - }, - gatewayEndpoint: { - readOnly: true, - serializedName: "gatewayEndpoint", + serializedName: "sourceImage", type: { name: "String" } @@ -79,46 +71,79 @@ export const SyncProperties: msRest.CompositeMapper = { } }; -export const ParentProperties: msRest.CompositeMapper = { - serializedName: "ParentProperties", +export const ImportImageParameters: msRest.CompositeMapper = { + serializedName: "ImportImageParameters", type: { name: "Composite", - className: "ParentProperties", + className: "ImportImageParameters", modelProperties: { - id: { - serializedName: "id", + source: { + required: true, + serializedName: "source", type: { - name: "String" + name: "Composite", + className: "ImportSource" } }, - syncProperties: { - required: true, - serializedName: "syncProperties", + targetTags: { + serializedName: "targetTags", type: { - name: "Composite", - className: "SyncProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + untaggedTargetRepositories: { + serializedName: "untaggedTargetRepositories", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + mode: { + serializedName: "mode", + defaultValue: 'NoForce', + type: { + name: "String" } } } } }; -export const TlsCertificateProperties: msRest.CompositeMapper = { - serializedName: "TlsCertificateProperties", +export const OperationDisplayDefinition: msRest.CompositeMapper = { + serializedName: "OperationDisplayDefinition", type: { name: "Composite", - className: "TlsCertificateProperties", + className: "OperationDisplayDefinition", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + provider: { + serializedName: "provider", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -127,269 +152,324 @@ export const TlsCertificateProperties: msRest.CompositeMapper = { } }; -export const TlsProperties: msRest.CompositeMapper = { - serializedName: "TlsProperties", +export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationMetricSpecificationDefinition", type: { name: "Composite", - className: "TlsProperties", + className: "OperationMetricSpecificationDefinition", modelProperties: { - status: { - readOnly: true, - serializedName: "status", + name: { + serializedName: "name", type: { name: "String" } }, - certificate: { - readOnly: true, - serializedName: "certificate", + displayName: { + serializedName: "displayName", type: { - name: "Composite", - className: "TlsCertificateProperties" + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + internalMetricName: { + serializedName: "internalMetricName", + type: { + name: "String" } } } } }; -export const LoginServerProperties: msRest.CompositeMapper = { - serializedName: "LoginServerProperties", +export const OperationLogSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationLogSpecificationDefinition", type: { name: "Composite", - className: "LoginServerProperties", + className: "OperationLogSpecificationDefinition", modelProperties: { - host: { - readOnly: true, - serializedName: "host", + name: { + serializedName: "name", type: { name: "String" } }, - tls: { - readOnly: true, - serializedName: "tls", + displayName: { + serializedName: "displayName", type: { - name: "Composite", - className: "TlsProperties" + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" } } } } }; -export const LoggingProperties: msRest.CompositeMapper = { - serializedName: "LoggingProperties", +export const OperationServiceSpecificationDefinition: msRest.CompositeMapper = { + serializedName: "OperationServiceSpecificationDefinition", type: { name: "Composite", - className: "LoggingProperties", + className: "OperationServiceSpecificationDefinition", modelProperties: { - logLevel: { - serializedName: "logLevel", - defaultValue: 'Information', + metricSpecifications: { + serializedName: "metricSpecifications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationMetricSpecificationDefinition" + } + } } }, - auditLogStatus: { - serializedName: "auditLogStatus", - defaultValue: 'Disabled', + logSpecifications: { + serializedName: "logSpecifications", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationLogSpecificationDefinition" + } + } } } } } }; -export const StatusDetailProperties: msRest.CompositeMapper = { - serializedName: "StatusDetailProperties", +export const OperationDefinition: msRest.CompositeMapper = { + serializedName: "OperationDefinition", type: { name: "Composite", - className: "StatusDetailProperties", + className: "OperationDefinition", modelProperties: { - type: { - readOnly: true, - serializedName: "type", + origin: { + serializedName: "origin", type: { name: "String" } }, - code: { - readOnly: true, - serializedName: "code", + name: { + serializedName: "name", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationDisplayDefinition" } }, - timestamp: { - readOnly: true, - serializedName: "timestamp", + serviceSpecification: { + serializedName: "properties.serviceSpecification", type: { - name: "DateTime" + name: "Composite", + className: "OperationServiceSpecificationDefinition" } }, - correlationId: { - readOnly: true, - serializedName: "correlationId", + isDataAction: { + serializedName: "isDataAction", type: { - name: "String" + name: "Boolean" } } } } }; -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", +export const RegistryNameCheckRequest: msRest.CompositeMapper = { + serializedName: "RegistryNameCheckRequest", type: { name: "Composite", - className: "ProxyResource", + className: "RegistryNameCheckRequest", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, name: { - readOnly: true, + required: true, serializedName: "name", + constraints: { + MaxLength: 50, + MinLength: 5, + Pattern: /^[a-zA-Z0-9]*$/ + }, type: { name: "String" } }, type: { - readOnly: true, + required: true, + isConstant: true, serializedName: "type", + defaultValue: 'Microsoft.ContainerRegistry/registries', type: { name: "String" } - }, - systemData: { - readOnly: true, - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } }; -export const ConnectedRegistry: msRest.CompositeMapper = { - serializedName: "ConnectedRegistry", +export const RegistryNameStatus: msRest.CompositeMapper = { + serializedName: "RegistryNameStatus", type: { name: "Composite", - className: "ConnectedRegistry", + className: "RegistryNameStatus", modelProperties: { - ...ProxyResource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + nameAvailable: { + serializedName: "nameAvailable", type: { - name: "String" + name: "Boolean" } }, - mode: { - required: true, - serializedName: "properties.mode", + reason: { + serializedName: "reason", type: { name: "String" } }, - version: { - readOnly: true, - serializedName: "properties.version", + message: { + serializedName: "message", type: { name: "String" } - }, - connectionState: { - readOnly: true, - serializedName: "properties.connectionState", + } + } + } +}; + +export const PrivateEndpoint: msRest.CompositeMapper = { + serializedName: "PrivateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { + serializedName: "PrivateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", type: { name: "String" } }, - lastActivityTime: { - readOnly: true, - serializedName: "properties.lastActivityTime", + description: { + serializedName: "description", type: { - name: "DateTime" + name: "String" } }, - activation: { + actionsRequired: { + serializedName: "actionsRequired", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + id: { readOnly: true, - serializedName: "properties.activation", + serializedName: "id", type: { - name: "Composite", - className: "ActivationProperties" + name: "String" } }, - parent: { - required: true, - serializedName: "properties.parent", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Composite", - className: "ParentProperties" + name: "String" } }, - clientTokenIds: { - serializedName: "properties.clientTokenIds", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - loginServer: { - serializedName: "properties.loginServer", + systemData: { + readOnly: true, + serializedName: "systemData", type: { name: "Composite", - className: "LoginServerProperties" + className: "SystemData" } - }, - logging: { - serializedName: "properties.logging", + } + } + } +}; + +export const PrivateEndpointConnection: msRest.CompositeMapper = { + serializedName: "PrivateEndpointConnection", + type: { + name: "Composite", + className: "PrivateEndpointConnection", + modelProperties: { + ...ProxyResource.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "LoggingProperties" + className: "PrivateEndpoint" } }, - statusDetails: { - readOnly: true, - serializedName: "properties.statusDetails", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "StatusDetailProperties" - } - } + name: "Composite", + className: "PrivateLinkServiceConnectionState" } }, - notificationsList: { - serializedName: "properties.notificationsList", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } @@ -442,74 +522,24 @@ export const SystemData: msRest.CompositeMapper = { } }; -export const SyncUpdateProperties: msRest.CompositeMapper = { - serializedName: "SyncUpdateProperties", +export const Sku: msRest.CompositeMapper = { + serializedName: "Sku", type: { name: "Composite", - className: "SyncUpdateProperties", + className: "Sku", modelProperties: { - schedule: { - serializedName: "schedule", + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - syncWindow: { - serializedName: "syncWindow", - type: { - name: "TimeSpan" - } - }, - messageTtl: { - serializedName: "messageTtl", - type: { - name: "TimeSpan" - } - } - } - } -}; - -export const ConnectedRegistryUpdateParameters: msRest.CompositeMapper = { - serializedName: "ConnectedRegistryUpdateParameters", - type: { - name: "Composite", - className: "ConnectedRegistryUpdateParameters", - modelProperties: { - syncProperties: { - serializedName: "properties.syncProperties", - type: { - name: "Composite", - className: "SyncUpdateProperties" - } - }, - logging: { - serializedName: "properties.logging", - type: { - name: "Composite", - className: "LoggingProperties" - } - }, - clientTokenIds: { - serializedName: "properties.clientTokenIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - notificationsList: { - serializedName: "properties.notificationsList", + tier: { + readOnly: true, + serializedName: "tier", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } @@ -584,157 +614,124 @@ export const IdentityProperties: msRest.CompositeMapper = { } }; -export const ExportPipelineTargetProperties: msRest.CompositeMapper = { - serializedName: "ExportPipelineTargetProperties", +export const Status: msRest.CompositeMapper = { + serializedName: "Status", type: { name: "Composite", - className: "ExportPipelineTargetProperties", + className: "Status", modelProperties: { - type: { - serializedName: "type", + displayStatus: { + readOnly: true, + serializedName: "displayStatus", type: { name: "String" } }, - uri: { - serializedName: "uri", + message: { + readOnly: true, + serializedName: "message", type: { name: "String" } }, - keyVaultUri: { - required: true, - serializedName: "keyVaultUri", + timestamp: { + readOnly: true, + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } } } } }; -export const ExportPipeline: msRest.CompositeMapper = { - serializedName: "ExportPipeline", +export const IPRule: msRest.CompositeMapper = { + serializedName: "IPRule", type: { name: "Composite", - className: "ExportPipeline", + className: "IPRule", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + action: { + serializedName: "action", + defaultValue: 'Allow', type: { name: "String" } }, - identity: { - serializedName: "identity", + iPAddressOrRange: { + required: true, + serializedName: "value", type: { - name: "Composite", - className: "IdentityProperties" + name: "String" } - }, - target: { + } + } + } +}; + +export const NetworkRuleSet: msRest.CompositeMapper = { + serializedName: "NetworkRuleSet", + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + defaultAction: { required: true, - serializedName: "properties.target", + serializedName: "defaultAction", + defaultValue: 'Allow', type: { - name: "Composite", - className: "ExportPipelineTargetProperties" + name: "String" } }, - options: { - serializedName: "properties.options", + ipRules: { + serializedName: "ipRules", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "IPRule" } } } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", +export const QuarantinePolicy: msRest.CompositeMapper = { + serializedName: "QuarantinePolicy", type: { name: "Composite", - className: "Resource", + className: "QuarantinePolicy", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + status: { + serializedName: "status", + defaultValue: 'disabled', type: { name: "String" } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - systemData: { - readOnly: true, - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } }; -export const ImportSourceCredentials: msRest.CompositeMapper = { - serializedName: "ImportSourceCredentials", +export const TrustPolicy: msRest.CompositeMapper = { + serializedName: "TrustPolicy", type: { name: "Composite", - className: "ImportSourceCredentials", + className: "TrustPolicy", modelProperties: { - username: { - serializedName: "username", + type: { + serializedName: "type", + defaultValue: 'Notary', type: { name: "String" } }, - password: { - required: true, - serializedName: "password", + status: { + serializedName: "status", + defaultValue: 'disabled', type: { name: "String" } @@ -743,34 +740,46 @@ export const ImportSourceCredentials: msRest.CompositeMapper = { } }; -export const ImportSource: msRest.CompositeMapper = { - serializedName: "ImportSource", +export const RetentionPolicy: msRest.CompositeMapper = { + serializedName: "RetentionPolicy", type: { name: "Composite", - className: "ImportSource", + className: "RetentionPolicy", modelProperties: { - resourceId: { - serializedName: "resourceId", + days: { + serializedName: "days", + defaultValue: 7, type: { - name: "String" + name: "Number" } }, - registryUri: { - serializedName: "registryUri", + lastUpdatedTime: { + readOnly: true, + serializedName: "lastUpdatedTime", type: { - name: "String" + name: "DateTime" } }, - credentials: { - serializedName: "credentials", + status: { + serializedName: "status", + defaultValue: 'disabled', type: { - name: "Composite", - className: "ImportSourceCredentials" + name: "String" } - }, - sourceImage: { - required: true, - serializedName: "sourceImage", + } + } + } +}; + +export const ExportPolicy: msRest.CompositeMapper = { + serializedName: "ExportPolicy", + type: { + name: "Composite", + className: "ExportPolicy", + modelProperties: { + status: { + serializedName: "status", + defaultValue: 'enabled', type: { name: "String" } @@ -779,1267 +788,221 @@ export const ImportSource: msRest.CompositeMapper = { } }; -export const ImportImageParameters: msRest.CompositeMapper = { - serializedName: "ImportImageParameters", +export const Policies: msRest.CompositeMapper = { + serializedName: "Policies", type: { name: "Composite", - className: "ImportImageParameters", + className: "Policies", modelProperties: { - source: { - required: true, - serializedName: "source", + quarantinePolicy: { + serializedName: "quarantinePolicy", type: { name: "Composite", - className: "ImportSource" + className: "QuarantinePolicy" } }, - targetTags: { - serializedName: "targetTags", + trustPolicy: { + serializedName: "trustPolicy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "TrustPolicy" } }, - untaggedTargetRepositories: { - serializedName: "untaggedTargetRepositories", + retentionPolicy: { + serializedName: "retentionPolicy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "RetentionPolicy" } }, - mode: { - serializedName: "mode", - defaultValue: 'NoForce', + exportPolicy: { + serializedName: "exportPolicy", type: { - name: "String" + name: "Composite", + className: "ExportPolicy" } } } } }; -export const ImportPipelineSourceProperties: msRest.CompositeMapper = { - serializedName: "ImportPipelineSourceProperties", +export const KeyVaultProperties: msRest.CompositeMapper = { + serializedName: "KeyVaultProperties", type: { name: "Composite", - className: "ImportPipelineSourceProperties", + className: "KeyVaultProperties", modelProperties: { - type: { - serializedName: "type", - defaultValue: 'AzureStorageBlobContainer', + keyIdentifier: { + serializedName: "keyIdentifier", type: { name: "String" } }, - uri: { - serializedName: "uri", + versionedKeyIdentifier: { + readOnly: true, + serializedName: "versionedKeyIdentifier", type: { name: "String" } }, - keyVaultUri: { - required: true, - serializedName: "keyVaultUri", + identity: { + serializedName: "identity", type: { name: "String" } + }, + keyRotationEnabled: { + readOnly: true, + serializedName: "keyRotationEnabled", + type: { + name: "Boolean" + } + }, + lastKeyRotationTimestamp: { + readOnly: true, + serializedName: "lastKeyRotationTimestamp", + type: { + name: "DateTime" + } } } } }; -export const PipelineSourceTriggerProperties: msRest.CompositeMapper = { - serializedName: "PipelineSourceTriggerProperties", +export const EncryptionProperty: msRest.CompositeMapper = { + serializedName: "EncryptionProperty", type: { name: "Composite", - className: "PipelineSourceTriggerProperties", + className: "EncryptionProperty", modelProperties: { status: { - required: true, serializedName: "status", - defaultValue: 'Enabled', type: { name: "String" } - } - } - } -}; - -export const PipelineTriggerProperties: msRest.CompositeMapper = { - serializedName: "PipelineTriggerProperties", - type: { - name: "Composite", - className: "PipelineTriggerProperties", - modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", + }, + keyVaultProperties: { + serializedName: "keyVaultProperties", type: { name: "Composite", - className: "PipelineSourceTriggerProperties" + className: "KeyVaultProperties" } } } } }; -export const ImportPipeline: msRest.CompositeMapper = { - serializedName: "ImportPipeline", +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", type: { name: "Composite", - className: "ImportPipeline", + className: "Resource", modelProperties: { - ...ProxyResource.type.modelProperties, - location: { - serializedName: "location", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - identity: { - serializedName: "identity", + name: { + readOnly: true, + serializedName: "name", type: { - name: "Composite", - className: "IdentityProperties" + name: "String" } }, - source: { - required: true, - serializedName: "properties.source", + type: { + readOnly: true, + serializedName: "type", type: { - name: "Composite", - className: "ImportPipelineSourceProperties" + name: "String" } }, - trigger: { - serializedName: "properties.trigger", + location: { + required: true, + serializedName: "location", type: { - name: "Composite", - className: "PipelineTriggerProperties" + name: "String" } }, - options: { - serializedName: "properties.options", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - provisioningState: { + systemData: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "systemData", type: { - name: "String" + name: "Composite", + className: "SystemData" } } } } }; -export const OperationDisplayDefinition: msRest.CompositeMapper = { - serializedName: "OperationDisplayDefinition", +export const Registry: msRest.CompositeMapper = { + serializedName: "Registry", type: { name: "Composite", - className: "OperationDisplayDefinition", + className: "Registry", modelProperties: { - provider: { - serializedName: "provider", + ...Resource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", type: { - name: "String" + name: "Composite", + className: "Sku" } }, - resource: { - serializedName: "resource", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityProperties" } }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; - -export const OperationMetricSpecificationDefinition: msRest.CompositeMapper = { - serializedName: "OperationMetricSpecificationDefinition", - type: { - name: "Composite", - className: "OperationMetricSpecificationDefinition", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - displayDescription: { - serializedName: "displayDescription", - type: { - name: "String" - } - }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - }, - aggregationType: { - serializedName: "aggregationType", - type: { - name: "String" - } - }, - internalMetricName: { - serializedName: "internalMetricName", - type: { - name: "String" - } - } - } - } -}; - -export const OperationLogSpecificationDefinition: msRest.CompositeMapper = { - serializedName: "OperationLogSpecificationDefinition", - type: { - name: "Composite", - className: "OperationLogSpecificationDefinition", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - blobDuration: { - serializedName: "blobDuration", - type: { - name: "String" - } - } - } - } -}; - -export const OperationServiceSpecificationDefinition: msRest.CompositeMapper = { - serializedName: "OperationServiceSpecificationDefinition", - type: { - name: "Composite", - className: "OperationServiceSpecificationDefinition", - modelProperties: { - metricSpecifications: { - serializedName: "metricSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationMetricSpecificationDefinition" - } - } - } - }, - logSpecifications: { - serializedName: "logSpecifications", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationLogSpecificationDefinition" - } - } - } - } - } - } -}; - -export const OperationDefinition: msRest.CompositeMapper = { - serializedName: "OperationDefinition", - type: { - name: "Composite", - className: "OperationDefinition", - modelProperties: { - origin: { - serializedName: "origin", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplayDefinition" - } - }, - serviceSpecification: { - serializedName: "properties.serviceSpecification", - type: { - name: "Composite", - className: "OperationServiceSpecificationDefinition" - } - }, - isDataAction: { - serializedName: "isDataAction", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RegistryNameCheckRequest: msRest.CompositeMapper = { - serializedName: "RegistryNameCheckRequest", - type: { - name: "Composite", - className: "RegistryNameCheckRequest", - modelProperties: { - name: { - required: true, - serializedName: "name", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, - type: { - name: "String" - } - }, - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'Microsoft.ContainerRegistry/registries', - type: { - name: "String" - } - } - } - } -}; - -export const RegistryNameStatus: msRest.CompositeMapper = { - serializedName: "RegistryNameStatus", - type: { - name: "Composite", - className: "RegistryNameStatus", - modelProperties: { - nameAvailable: { - serializedName: "nameAvailable", - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineRunSourceProperties: msRest.CompositeMapper = { - serializedName: "PipelineRunSourceProperties", - type: { - name: "Composite", - className: "PipelineRunSourceProperties", - modelProperties: { - type: { - serializedName: "type", - defaultValue: 'AzureStorageBlob', - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineRunTargetProperties: msRest.CompositeMapper = { - serializedName: "PipelineRunTargetProperties", - type: { - name: "Composite", - className: "PipelineRunTargetProperties", - modelProperties: { - type: { - serializedName: "type", - defaultValue: 'AzureStorageBlob', - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineRunRequest: msRest.CompositeMapper = { - serializedName: "PipelineRunRequest", - type: { - name: "Composite", - className: "PipelineRunRequest", - modelProperties: { - pipelineResourceId: { - serializedName: "pipelineResourceId", - type: { - name: "String" - } - }, - artifacts: { - serializedName: "artifacts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "PipelineRunSourceProperties" - } - }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "PipelineRunTargetProperties" - } - }, - catalogDigest: { - serializedName: "catalogDigest", - type: { - name: "String" - } - } - } - } -}; - -export const ProgressProperties: msRest.CompositeMapper = { - serializedName: "ProgressProperties", - type: { - name: "Composite", - className: "ProgressProperties", - modelProperties: { - percentage: { - serializedName: "percentage", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineSourceTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "PipelineSourceTriggerDescriptor", - type: { - name: "Composite", - className: "PipelineSourceTriggerDescriptor", - modelProperties: { - timestamp: { - serializedName: "timestamp", - type: { - name: "DateTime" - } - } - } - } -}; - -export const PipelineTriggerDescriptor: msRest.CompositeMapper = { - serializedName: "PipelineTriggerDescriptor", - type: { - name: "Composite", - className: "PipelineTriggerDescriptor", - modelProperties: { - sourceTrigger: { - serializedName: "sourceTrigger", - type: { - name: "Composite", - className: "PipelineSourceTriggerDescriptor" - } - } - } - } -}; - -export const PipelineRunResponse: msRest.CompositeMapper = { - serializedName: "PipelineRunResponse", - type: { - name: "Composite", - className: "PipelineRunResponse", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - importedArtifacts: { - serializedName: "importedArtifacts", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - progress: { - serializedName: "progress", - type: { - name: "Composite", - className: "ProgressProperties" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } - }, - finishTime: { - serializedName: "finishTime", - type: { - name: "DateTime" - } - }, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "ImportPipelineSourceProperties" - } - }, - target: { - serializedName: "target", - type: { - name: "Composite", - className: "ExportPipelineTargetProperties" - } - }, - catalogDigest: { - serializedName: "catalogDigest", - type: { - name: "String" - } - }, - trigger: { - serializedName: "trigger", - type: { - name: "Composite", - className: "PipelineTriggerDescriptor" - } - }, - pipelineRunErrorMessage: { - serializedName: "pipelineRunErrorMessage", - type: { - name: "String" - } - } - } - } -}; - -export const PipelineRun: msRest.CompositeMapper = { - serializedName: "PipelineRun", - type: { - name: "Composite", - className: "PipelineRun", - 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", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpoint: msRest.CompositeMapper = { - serializedName: "PrivateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateLinkServiceConnectionState: msRest.CompositeMapper = { - serializedName: "PrivateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnection: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnection", - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...ProxyResource.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint" - } - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const Sku: msRest.CompositeMapper = { - serializedName: "Sku", - type: { - name: "Composite", - className: "Sku", - modelProperties: { - name: { - required: true, - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - readOnly: true, - serializedName: "tier", - type: { - name: "String" - } - } - } - } -}; - -export const Status: msRest.CompositeMapper = { - serializedName: "Status", - type: { - name: "Composite", - className: "Status", - modelProperties: { - displayStatus: { - readOnly: true, - serializedName: "displayStatus", - type: { - name: "String" - } - }, - message: { - readOnly: true, - serializedName: "message", - type: { - name: "String" - } - }, - timestamp: { - readOnly: true, - serializedName: "timestamp", - type: { - name: "DateTime" - } - } - } - } -}; - -export const VirtualNetworkRule: msRest.CompositeMapper = { - serializedName: "VirtualNetworkRule", - type: { - name: "Composite", - className: "VirtualNetworkRule", - modelProperties: { - action: { - serializedName: "action", - defaultValue: 'Allow', - type: { - name: "String" - } - }, - virtualNetworkResourceId: { - required: true, - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; - -export const IPRule: msRest.CompositeMapper = { - serializedName: "IPRule", - type: { - name: "Composite", - className: "IPRule", - modelProperties: { - action: { - serializedName: "action", - defaultValue: 'Allow', - type: { - name: "String" - } - }, - iPAddressOrRange: { - required: true, - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const NetworkRuleSet: msRest.CompositeMapper = { - serializedName: "NetworkRuleSet", - type: { - name: "Composite", - className: "NetworkRuleSet", - modelProperties: { - defaultAction: { - required: true, - serializedName: "defaultAction", - defaultValue: 'Allow', - type: { - name: "String" - } - }, - virtualNetworkRules: { - serializedName: "virtualNetworkRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkRule" - } - } - } - }, - ipRules: { - serializedName: "ipRules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IPRule" - } - } - } - } - } - } -}; - -export const QuarantinePolicy: msRest.CompositeMapper = { - serializedName: "QuarantinePolicy", - type: { - name: "Composite", - className: "QuarantinePolicy", - modelProperties: { - status: { - serializedName: "status", - defaultValue: 'disabled', - type: { - name: "String" - } - } - } - } -}; - -export const TrustPolicy: msRest.CompositeMapper = { - serializedName: "TrustPolicy", - type: { - name: "Composite", - className: "TrustPolicy", - modelProperties: { - type: { - serializedName: "type", - defaultValue: 'Notary', - type: { - name: "String" - } - }, - status: { - serializedName: "status", - defaultValue: 'disabled', - type: { - name: "String" - } - } - } - } -}; - -export const RetentionPolicy: msRest.CompositeMapper = { - serializedName: "RetentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicy", - modelProperties: { - days: { - serializedName: "days", - defaultValue: 7, - type: { - name: "Number" - } - }, - lastUpdatedTime: { - readOnly: true, - serializedName: "lastUpdatedTime", - type: { - name: "DateTime" - } - }, - status: { - serializedName: "status", - defaultValue: 'disabled', - type: { - name: "String" - } - } - } - } -}; - -export const ExportPolicy: msRest.CompositeMapper = { - serializedName: "ExportPolicy", - type: { - name: "Composite", - className: "ExportPolicy", - modelProperties: { - status: { - serializedName: "status", - defaultValue: 'enabled', - type: { - name: "String" - } - } - } - } -}; - -export const Policies: msRest.CompositeMapper = { - serializedName: "Policies", - type: { - name: "Composite", - className: "Policies", - modelProperties: { - quarantinePolicy: { - serializedName: "quarantinePolicy", - type: { - name: "Composite", - className: "QuarantinePolicy" - } - }, - trustPolicy: { - serializedName: "trustPolicy", - type: { - name: "Composite", - className: "TrustPolicy" - } - }, - retentionPolicy: { - serializedName: "retentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicy" - } - }, - exportPolicy: { - serializedName: "exportPolicy", - type: { - name: "Composite", - className: "ExportPolicy" - } - } - } - } -}; - -export const KeyVaultProperties: msRest.CompositeMapper = { - serializedName: "KeyVaultProperties", - type: { - name: "Composite", - className: "KeyVaultProperties", - modelProperties: { - keyIdentifier: { - serializedName: "keyIdentifier", - type: { - name: "String" - } - }, - versionedKeyIdentifier: { - readOnly: true, - serializedName: "versionedKeyIdentifier", - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "String" - } - }, - keyRotationEnabled: { - readOnly: true, - serializedName: "keyRotationEnabled", - type: { - 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: "status", - type: { - name: "String" - } - }, - keyVaultProperties: { - serializedName: "keyVaultProperties", - type: { - name: "Composite", - className: "KeyVaultProperties" - } - } - } - } -}; - -export const Registry: msRest.CompositeMapper = { - serializedName: "Registry", - type: { - name: "Composite", - className: "Registry", - modelProperties: { - ...Resource.type.modelProperties, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - loginServer: { - readOnly: true, - serializedName: "properties.loginServer", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", - type: { - name: "DateTime" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - status: { - readOnly: true, - serializedName: "properties.status", - type: { - name: "Composite", - className: "Status" - } - }, - adminUserEnabled: { - serializedName: "properties.adminUserEnabled", - defaultValue: false, - type: { - name: "Boolean" - } - }, - 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: { - type: { - name: "String" - } - } - } - }, - privateEndpointConnections: { + loginServer: { readOnly: true, - serializedName: "properties.privateEndpointConnections", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - defaultValue: 'Enabled', + serializedName: "properties.loginServer", type: { name: "String" } }, - networkRuleBypassOptions: { - serializedName: "properties.networkRuleBypassOptions", - defaultValue: 'AzureServices', + creationDate: { + readOnly: true, + serializedName: "properties.creationDate", type: { - name: "String" + name: "DateTime" } }, - zoneRedundancy: { - serializedName: "properties.zoneRedundancy", - defaultValue: 'Disabled', + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - anonymousPullEnabled: { - serializedName: "properties.anonymousPullEnabled", - defaultValue: false, - type: { - name: "Boolean" - } - } - } - } -}; - -export const RegistryUpdateParameters: msRest.CompositeMapper = { - serializedName: "RegistryUpdateParameters", - type: { - name: "Composite", - className: "RegistryUpdateParameters", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityProperties" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - sku: { - serializedName: "sku", + status: { + readOnly: true, + serializedName: "properties.status", type: { name: "Composite", - className: "Sku" + className: "Status" } }, adminUserEnabled: { serializedName: "properties.adminUserEnabled", + defaultValue: false, type: { name: "Boolean" } @@ -2071,249 +1034,88 @@ export const RegistryUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", - type: { - name: "String" - } - }, - networkRuleBypassOptions: { - serializedName: "properties.networkRuleBypassOptions", - defaultValue: 'AzureServices', - type: { - name: "String" - } - }, - anonymousPullEnabled: { - serializedName: "properties.anonymousPullEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const RegistryUsage: msRest.CompositeMapper = { - serializedName: "RegistryUsage", - type: { - name: "Composite", - className: "RegistryUsage", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - limit: { - serializedName: "limit", - type: { - name: "Number" - } - }, - currentValue: { - serializedName: "currentValue", - type: { - name: "Number" - } - }, - unit: { - serializedName: "unit", - type: { - name: "String" - } - } - } - } -}; - -export const RegistryUsageListResult: msRest.CompositeMapper = { - serializedName: "RegistryUsageListResult", - type: { - name: "Composite", - className: "RegistryUsageListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegistryUsage" - } - } - } - } - } - } -}; - -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - type: { + dataEndpointHostNames: { readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - groupId: { - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + serializedName: "properties.dataEndpointHostNames", type: { name: "Sequence", element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const RegistryPassword: msRest.CompositeMapper = { - serializedName: "RegistryPassword", - type: { - name: "Composite", - className: "RegistryPassword", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "Enum", - allowedValues: [ - "password", - "password2" - ] - } - }, - value: { - serializedName: "value", - type: { - name: "String" - } - } - } - } -}; - -export const RegistryListCredentialsResult: msRest.CompositeMapper = { - serializedName: "RegistryListCredentialsResult", - type: { - name: "Composite", - className: "RegistryListCredentialsResult", - modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" + type: { + name: "String" + } + } } }, - passwords: { - serializedName: "passwords", + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegistryPassword" + 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" + } } } } }; -export const RegenerateCredentialParameters: msRest.CompositeMapper = { - serializedName: "RegenerateCredentialParameters", +export const StorageAccountProperties: msRest.CompositeMapper = { + serializedName: "StorageAccountProperties", type: { name: "Composite", - className: "RegenerateCredentialParameters", + className: "StorageAccountProperties", modelProperties: { - name: { + id: { required: true, - serializedName: "name", + serializedName: "id", type: { - name: "Enum", - allowedValues: [ - "password", - "password2" - ] + name: "String" } } } } }; -export const Replication: msRest.CompositeMapper = { - serializedName: "Replication", +export const PackageType: msRest.CompositeMapper = { + serializedName: "PackageType", type: { name: "Composite", - className: "Replication", + className: "PackageType", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + name: { + serializedName: "name", type: { name: "String" } }, - status: { + endpoint: { readOnly: true, - serializedName: "properties.status", - type: { - name: "Composite", - className: "Status" - } - }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", - defaultValue: true, - type: { - name: "Boolean" - } - }, - zoneRedundancy: { - serializedName: "properties.zoneRedundancy", - defaultValue: 'Disabled', + serializedName: "endpoint", type: { name: "String" } @@ -2322,12 +1124,19 @@ export const Replication: msRest.CompositeMapper = { } }; -export const ReplicationUpdateParameters: msRest.CompositeMapper = { - serializedName: "ReplicationUpdateParameters", +export const RegistryUpdateParameters: msRest.CompositeMapper = { + serializedName: "RegistryUpdateParameters", type: { name: "Composite", - className: "ReplicationUpdateParameters", + className: "RegistryUpdateParameters", modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityProperties" + } + }, tags: { serializedName: "tags", type: { @@ -2339,98 +1148,68 @@ export const ReplicationUpdateParameters: msRest.CompositeMapper = { } } }, - regionEndpointEnabled: { - serializedName: "properties.regionEndpointEnabled", + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "Sku" } - } - } - } -}; - -export const ScopeMap: msRest.CompositeMapper = { - serializedName: "ScopeMap", - type: { - name: "Composite", - className: "ScopeMap", - modelProperties: { - ...ProxyResource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + adminUserEnabled: { + serializedName: "properties.adminUserEnabled", type: { - name: "String" + name: "Boolean" } }, - scopeMapType: { - readOnly: true, - serializedName: "properties.type", + networkRuleSet: { + serializedName: "properties.networkRuleSet", type: { - name: "String" + name: "Composite", + className: "NetworkRuleSet" } }, - creationDate: { - readOnly: true, - serializedName: "properties.creationDate", + policies: { + serializedName: "properties.policies", type: { - name: "DateTime" + name: "Composite", + className: "Policies" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + encryption: { + serializedName: "properties.encryption", type: { - name: "String" + name: "Composite", + className: "EncryptionProperty" } }, - actions: { - required: true, - serializedName: "properties.actions", + dataEndpointEnabled: { + serializedName: "properties.dataEndpointEnabled", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } - } - } - } -}; - -export const ScopeMapUpdateParameters: msRest.CompositeMapper = { - serializedName: "ScopeMapUpdateParameters", - type: { - name: "Composite", - className: "ScopeMapUpdateParameters", - modelProperties: { - description: { - serializedName: "properties.description", + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, - actions: { - serializedName: "properties.actions", + networkRuleBypassOptions: { + serializedName: "properties.networkRuleBypassOptions", + defaultValue: 'AzureServices', type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const TokenCertificate: msRest.CompositeMapper = { - serializedName: "TokenCertificate", +export const RegistryUsage: msRest.CompositeMapper = { + serializedName: "RegistryUsage", type: { name: "Composite", - className: "TokenCertificate", + className: "RegistryUsage", modelProperties: { name: { serializedName: "name", @@ -2438,20 +1217,20 @@ export const TokenCertificate: msRest.CompositeMapper = { name: "String" } }, - expiry: { - serializedName: "expiry", + limit: { + serializedName: "limit", type: { - name: "DateTime" + name: "Number" } }, - thumbprint: { - serializedName: "thumbprint", + currentValue: { + serializedName: "currentValue", type: { - name: "String" + name: "Number" } }, - encodedPemCertificate: { - serializedName: "encodedPemCertificate", + unit: { + serializedName: "unit", type: { name: "String" } @@ -2460,67 +1239,20 @@ export const TokenCertificate: msRest.CompositeMapper = { } }; -export const TokenPassword: msRest.CompositeMapper = { - serializedName: "TokenPassword", +export const RegistryUsageListResult: msRest.CompositeMapper = { + serializedName: "RegistryUsageListResult", type: { name: "Composite", - className: "TokenPassword", + className: "RegistryUsageListResult", modelProperties: { - creationTime: { - serializedName: "creationTime", - type: { - name: "DateTime" - } - }, - expiry: { - serializedName: "expiry", - type: { - name: "DateTime" - } - }, - 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: "TokenCertificate" - } - } - } - }, - passwords: { - serializedName: "passwords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TokenPassword" + className: "RegistryUsage" } } } @@ -2529,64 +1261,81 @@ export const TokenCredentialsProperties: msRest.CompositeMapper = { } }; -export const Token: msRest.CompositeMapper = { - serializedName: "Token", +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", type: { name: "Composite", - className: "Token", + className: "PrivateLinkResource", modelProperties: { - ...ProxyResource.type.modelProperties, - creationDate: { + type: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "type", type: { - name: "DateTime" + name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + id: { + serializedName: "id", type: { name: "String" } }, - scopeMapId: { - serializedName: "properties.scopeMapId", + name: { + serializedName: "name", type: { name: "String" } }, - credentials: { - serializedName: "properties.credentials", + groupId: { + serializedName: "properties.groupId", type: { - name: "Composite", - className: "TokenCredentialsProperties" + name: "String" } }, - status: { - serializedName: "properties.status", + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ActiveDirectoryObject: msRest.CompositeMapper = { - serializedName: "ActiveDirectoryObject", +export const RegistryPassword: msRest.CompositeMapper = { + serializedName: "RegistryPassword", type: { name: "Composite", - className: "ActiveDirectoryObject", + className: "RegistryPassword", modelProperties: { - objectId: { - serializedName: "objectId", + name: { + serializedName: "name", type: { - name: "String" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } }, - tenantId: { - serializedName: "tenantId", + value: { + serializedName: "value", type: { name: "String" } @@ -2595,55 +1344,87 @@ export const ActiveDirectoryObject: msRest.CompositeMapper = { } }; -export const TokenUpdateParameters: msRest.CompositeMapper = { - serializedName: "TokenUpdateParameters", +export const RegistryListCredentialsResult: msRest.CompositeMapper = { + serializedName: "RegistryListCredentialsResult", type: { name: "Composite", - className: "TokenUpdateParameters", + className: "RegistryListCredentialsResult", modelProperties: { - scopeMapId: { - serializedName: "properties.scopeMapId", + username: { + serializedName: "username", type: { name: "String" } }, - status: { - serializedName: "properties.status", + passwords: { + serializedName: "passwords", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegistryPassword" + } + } } - }, - credentials: { - serializedName: "properties.credentials", + } + } + } +}; + +export const RegenerateCredentialParameters: msRest.CompositeMapper = { + serializedName: "RegenerateCredentialParameters", + type: { + name: "Composite", + className: "RegenerateCredentialParameters", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { - name: "Composite", - className: "TokenCredentialsProperties" + name: "Enum", + allowedValues: [ + "password", + "password2" + ] } } } } }; -export const GenerateCredentialsParameters: msRest.CompositeMapper = { - serializedName: "GenerateCredentialsParameters", +export const Replication: msRest.CompositeMapper = { + serializedName: "Replication", type: { name: "Composite", - className: "GenerateCredentialsParameters", + className: "Replication", modelProperties: { - tokenId: { - serializedName: "tokenId", + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - expiry: { - serializedName: "expiry", + status: { + readOnly: true, + serializedName: "properties.status", type: { - name: "DateTime" + name: "Composite", + className: "Status" } }, - name: { - serializedName: "name", + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + defaultValue: true, + type: { + name: "Boolean" + } + }, + zoneRedundancy: { + serializedName: "properties.zoneRedundancy", + defaultValue: 'Disabled', type: { name: "String" } @@ -2652,29 +1433,28 @@ export const GenerateCredentialsParameters: msRest.CompositeMapper = { } }; -export const GenerateCredentialsResult: msRest.CompositeMapper = { - serializedName: "GenerateCredentialsResult", +export const ReplicationUpdateParameters: msRest.CompositeMapper = { + serializedName: "ReplicationUpdateParameters", type: { name: "Composite", - className: "GenerateCredentialsResult", + className: "ReplicationUpdateParameters", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - passwords: { - serializedName: "passwords", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { - name: "Composite", - className: "TokenPassword" + name: "String" } } } + }, + regionEndpointEnabled: { + serializedName: "properties.regionEndpointEnabled", + type: { + name: "Boolean" + } } } } @@ -5574,62 +4354,6 @@ export const EncodedTaskStepUpdateParameters: msRest.CompositeMapper = { } }; -export const ConnectedRegistryListResult: msRest.CompositeMapper = { - serializedName: "ConnectedRegistryListResult", - type: { - name: "Composite", - className: "ConnectedRegistryListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedRegistry" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const ExportPipelineListResult: msRest.CompositeMapper = { - serializedName: "ExportPipelineListResult", - type: { - name: "Composite", - className: "ExportPipelineListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExportPipeline" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const RegistryListResult: msRest.CompositeMapper = { serializedName: "RegistryListResult", type: { @@ -5686,34 +4410,6 @@ export const PrivateLinkResourceListResult: msRest.CompositeMapper = { } }; -export const ImportPipelineListResult: msRest.CompositeMapper = { - serializedName: "ImportPipelineListResult", - type: { - name: "Composite", - className: "ImportPipelineListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ImportPipeline" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const OperationListResult: msRest.CompositeMapper = { serializedName: "OperationListResult", type: { @@ -5742,34 +4438,6 @@ export const OperationListResult: msRest.CompositeMapper = { } }; -export const PipelineRunListResult: msRest.CompositeMapper = { - serializedName: "PipelineRunListResult", - type: { - name: "Composite", - className: "PipelineRunListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PipelineRun" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { serializedName: "PrivateEndpointConnectionListResult", type: { @@ -5826,62 +4494,6 @@ export const ReplicationListResult: msRest.CompositeMapper = { } }; -export const ScopeMapListResult: msRest.CompositeMapper = { - serializedName: "ScopeMapListResult", - type: { - name: "Composite", - className: "ScopeMapListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScopeMap" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const TokenListResult: msRest.CompositeMapper = { - serializedName: "TokenListResult", - type: { - name: "Composite", - className: "TokenListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Token" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const WebhookListResult: msRest.CompositeMapper = { serializedName: "WebhookListResult", type: { diff --git a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts index 4a522a4a809b..6ee1a263e3f4 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/parameters.ts @@ -40,7 +40,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2021-08-01-preview', + defaultValue: '2021-09-01', type: { name: "String" } @@ -58,36 +58,6 @@ export const apiVersion1: msRest.OperationQueryParameter = { } } }; -export const connectedRegistryName: msRest.OperationURLParameter = { - parameterPath: "connectedRegistryName", - mapper: { - required: true, - serializedName: "connectedRegistryName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, - type: { - name: "String" - } - } -}; -export const exportPipelineName: msRest.OperationURLParameter = { - parameterPath: "exportPipelineName", - mapper: { - required: true, - serializedName: "exportPipelineName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, - type: { - name: "String" - } - } -}; export const filter: msRest.OperationQueryParameter = { parameterPath: [ "options", @@ -100,16 +70,11 @@ export const filter: msRest.OperationQueryParameter = { } } }; -export const importPipelineName: msRest.OperationURLParameter = { - parameterPath: "importPipelineName", +export const groupName: msRest.OperationURLParameter = { + parameterPath: "groupName", mapper: { required: true, - serializedName: "importPipelineName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, + serializedName: "groupName", type: { name: "String" } @@ -126,21 +91,6 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; -export const pipelineRunName: msRest.OperationURLParameter = { - parameterPath: "pipelineRunName", - mapper: { - required: true, - serializedName: "pipelineRunName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9]*$/ - }, - type: { - name: "String" - } - } -}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -204,21 +154,6 @@ export const runId: msRest.OperationURLParameter = { } } }; -export const scopeMapName: msRest.OperationURLParameter = { - parameterPath: "scopeMapName", - mapper: { - required: true, - serializedName: "scopeMapName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9-_]*$/ - }, - type: { - name: "String" - } - } -}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -259,21 +194,6 @@ export const taskRunName: msRest.OperationURLParameter = { } } }; -export const tokenName: msRest.OperationURLParameter = { - parameterPath: "tokenName", - mapper: { - required: true, - serializedName: "tokenName", - constraints: { - MaxLength: 50, - MinLength: 5, - Pattern: /^[a-zA-Z0-9-]*$/ - }, - type: { - name: "String" - } - } -}; export const top: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts deleted file mode 100644 index 849637fb21eb..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/pipelineRunsMappers.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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, - CloudError, - ConnectedRegistry, - Credentials, - CustomRegistryCredentials, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, - ExportPolicy, - FileTaskRunRequest, - FileTaskStep, - IdentityProperties, - ImageDescriptor, - ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, - IPRule, - KeyVaultProperties, - LoggingProperties, - LoginServerProperties, - NetworkRuleSet, - OverrideTaskStepProperties, - ParentProperties, - PipelineRun, - PipelineRunListResult, - 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, - 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/privateEndpointConnectionsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts index c8e9162d8cfd..7862b83b1d19 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/privateEndpointConnectionsMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,7 +16,6 @@ export { BaseImageTrigger, BaseResource, CloudError, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -25,39 +23,22 @@ export { EncodedTaskRunRequest, EncodedTaskStep, EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, ImageDescriptor, ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, IPRule, KeyVaultProperties, - LoggingProperties, - LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, - ParentProperties, - PipelineRun, - PipelineRunRequest, - PipelineRunResponse, - PipelineRunSourceProperties, - PipelineRunTargetProperties, - PipelineSourceTriggerDescriptor, - PipelineSourceTriggerProperties, - PipelineTriggerDescriptor, - PipelineTriggerProperties, PlatformProperties, Policies, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateLinkServiceConnectionState, - ProgressProperties, ProxyResource, QuarantinePolicy, Registry, @@ -66,7 +47,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -75,8 +55,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -84,15 +62,8 @@ export { 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/registriesMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts index 39b1dcfe7357..7e4d03ff1ab3 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/registriesMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,7 +16,6 @@ export { BaseImageTrigger, BaseResource, CloudError, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -27,38 +25,20 @@ export { EncryptionProperty, ErrorResponse, ErrorResponseBody, - ExportPipeline, - ExportPipelineTargetProperties, ExportPolicy, FileTaskRunRequest, FileTaskStep, - GenerateCredentialsParameters, - GenerateCredentialsResult, IdentityProperties, ImageDescriptor, ImageUpdateTrigger, ImportImageParameters, - ImportPipeline, - ImportPipelineSourceProperties, ImportSource, ImportSourceCredentials, InnerErrorDescription, IPRule, KeyVaultProperties, - LoggingProperties, - LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, - ParentProperties, - PipelineRun, - PipelineRunRequest, - PipelineRunResponse, - PipelineRunSourceProperties, - PipelineRunTargetProperties, - PipelineSourceTriggerDescriptor, - PipelineSourceTriggerProperties, - PipelineTriggerDescriptor, - PipelineTriggerProperties, PlatformProperties, Policies, PrivateEndpoint, @@ -66,7 +46,6 @@ export { PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionState, - ProgressProperties, ProxyResource, QuarantinePolicy, RegenerateCredentialParameters, @@ -84,7 +63,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -94,8 +72,6 @@ export { SourceTriggerDescriptor, SourceUploadDefinition, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -103,15 +79,8 @@ export { 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/replicationsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts index e72fb1930bbc..7efefb4eb5bb 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/replicationsMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -17,7 +16,6 @@ export { BaseImageTrigger, BaseResource, CloudError, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -25,38 +23,21 @@ export { EncodedTaskRunRequest, EncodedTaskStep, EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, ImageDescriptor, ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, 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, @@ -67,7 +48,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -76,8 +56,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -85,15 +63,8 @@ export { 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/runsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts index e5f7097aee0c..1a6f9c333eee 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/runsMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -16,7 +15,6 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -26,39 +24,22 @@ export { 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, @@ -70,7 +51,6 @@ export { RunListResult, RunRequest, RunUpdateParameters, - ScopeMap, SecretObject, SetValue, Sku, @@ -79,8 +59,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -88,15 +66,8 @@ export { 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/scopeMapsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts deleted file mode 100644 index f7c4f38fe55f..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/scopeMapsMappers.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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, - CloudError, - ConnectedRegistry, - Credentials, - CustomRegistryCredentials, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, - ExportPolicy, - FileTaskRunRequest, - FileTaskStep, - IdentityProperties, - ImageDescriptor, - ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, - 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, - ScopeMapListResult, - ScopeMapUpdateParameters, - SecretObject, - SetValue, - Sku, - SourceProperties, - SourceRegistryCredentials, - SourceTrigger, - SourceTriggerDescriptor, - Status, - StatusDetailProperties, - SyncProperties, - 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/taskRunsMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts index ff11914c36ea..00814e9fcabe 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/taskRunsMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -16,7 +15,6 @@ export { BaseImageDependency, BaseImageTrigger, BaseResource, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -26,39 +24,22 @@ export { 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, @@ -67,7 +48,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -76,8 +56,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskRun, @@ -87,15 +65,8 @@ export { 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/tasksMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts index 09a676eae2a6..ddd8665c258a 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/tasksMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, AgentPool, AgentProperties, Argument, @@ -18,7 +17,6 @@ export { BaseImageTrigger, BaseImageTriggerUpdateParameters, BaseResource, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -30,8 +28,6 @@ export { EncryptionProperty, ErrorResponse, ErrorResponseBody, - ExportPipeline, - ExportPipelineTargetProperties, ExportPolicy, FileTaskRunRequest, FileTaskStep, @@ -39,32 +35,17 @@ export { IdentityProperties, ImageDescriptor, ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, InnerErrorDescription, IPRule, KeyVaultProperties, - LoggingProperties, - LoginServerProperties, NetworkRuleSet, OverrideTaskStepProperties, - ParentProperties, - PipelineRun, - PipelineRunRequest, - PipelineRunResponse, - PipelineRunSourceProperties, - PipelineRunTargetProperties, - PipelineSourceTriggerDescriptor, - PipelineSourceTriggerProperties, - PipelineTriggerDescriptor, - PipelineTriggerProperties, PlatformProperties, PlatformUpdateParameters, Policies, PrivateEndpoint, PrivateEndpointConnection, PrivateLinkServiceConnectionState, - ProgressProperties, ProxyResource, QuarantinePolicy, Registry, @@ -73,7 +54,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -84,8 +64,6 @@ export { SourceTriggerUpdateParameters, SourceUpdateParameters, Status, - StatusDetailProperties, - SyncProperties, SystemData, Task, TaskListResult, @@ -97,16 +75,9 @@ export { TimerTrigger, TimerTriggerDescriptor, TimerTriggerUpdateParameters, - TlsCertificateProperties, - TlsProperties, - Token, - TokenCertificate, - TokenCredentialsProperties, - TokenPassword, TriggerProperties, TriggerUpdateParameters, TrustPolicy, UserIdentityProperties, - VirtualNetworkRule, Webhook } from "../models/mappers"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts deleted file mode 100644 index aa5814ab4423..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/models/tokensMappers.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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, - CloudError, - ConnectedRegistry, - Credentials, - CustomRegistryCredentials, - DockerBuildRequest, - DockerBuildStep, - EncodedTaskRunRequest, - EncodedTaskStep, - EncryptionProperty, - ExportPipeline, - ExportPipelineTargetProperties, - ExportPolicy, - FileTaskRunRequest, - FileTaskStep, - IdentityProperties, - ImageDescriptor, - ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, - 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, - SystemData, - Task, - TaskRun, - TaskRunRequest, - TaskStepProperties, - TimerTrigger, - TimerTriggerDescriptor, - TlsCertificateProperties, - TlsProperties, - Token, - TokenCertificate, - TokenCredentialsProperties, - TokenListResult, - TokenPassword, - TokenUpdateParameters, - TriggerProperties, - TrustPolicy, - UserIdentityProperties, - VirtualNetworkRule, - Webhook -} from "../models/mappers"; diff --git a/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts b/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts index 2036e388a890..221eeb4b2ea5 100644 --- a/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts +++ b/sdk/containerregistry/arm-containerregistry/src/models/webhooksMappers.ts @@ -8,7 +8,6 @@ export { discriminators, - ActivationProperties, Actor, AgentPool, AgentProperties, @@ -19,7 +18,6 @@ export { BaseResource, CallbackConfig, CloudError, - ConnectedRegistry, Credentials, CustomRegistryCredentials, DockerBuildRequest, @@ -33,38 +31,21 @@ export { EventListResult, EventRequestMessage, EventResponseMessage, - ExportPipeline, - ExportPipelineTargetProperties, ExportPolicy, FileTaskRunRequest, FileTaskStep, IdentityProperties, ImageDescriptor, ImageUpdateTrigger, - ImportPipeline, - ImportPipelineSourceProperties, 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, @@ -74,7 +55,6 @@ export { RetentionPolicy, Run, RunRequest, - ScopeMap, SecretObject, SetValue, Sku, @@ -84,8 +64,6 @@ export { SourceTrigger, SourceTriggerDescriptor, Status, - StatusDetailProperties, - SyncProperties, SystemData, Target, Task, @@ -94,16 +72,9 @@ export { TaskStepProperties, TimerTrigger, TimerTriggerDescriptor, - TlsCertificateProperties, - TlsProperties, - Token, - TokenCertificate, - TokenCredentialsProperties, - TokenPassword, TriggerProperties, TrustPolicy, UserIdentityProperties, - VirtualNetworkRule, Webhook, WebhookCreateParameters, WebhookListResult, diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts deleted file mode 100644 index 792a7887ea32..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/connectedRegistries.ts +++ /dev/null @@ -1,464 +0,0 @@ -/* - * 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 deleted file mode 100644 index f0521ae1ddea..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/exportPipelines.ts +++ /dev/null @@ -1,332 +0,0 @@ -/* - * 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/exportPipelinesMappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; - -/** Class representing a ExportPipelines. */ -export class ExportPipelines { - private readonly client: ContainerRegistryManagementClientContext; - - /** - * Create a ExportPipelines. - * @param {ContainerRegistryManagementClientContext} client Reference to the service client. - */ - constructor(client: ContainerRegistryManagementClientContext) { - 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. - * @param registryName The name of the container registry. - * @param exportPipelineName The name of the export pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, registryName: string, exportPipelineName: 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 exportPipelineName The name of the export pipeline. - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, exportPipelineName: 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 exportPipelineName The name of the export pipeline. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, exportPipelineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - exportPipelineName, - options - }, - getOperationSpec, - 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. - * @param registryName The name of the container registry. - * @param exportPipelineName The name of the export pipeline. - * @param exportPipelineCreateParameters The parameters for creating an export pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, registryName: string, exportPipelineName: string, exportPipelineCreateParameters: Models.ExportPipeline, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,registryName,exportPipelineName,exportPipelineCreateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes an export pipeline 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 exportPipelineName The name of the export pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,registryName,exportPipelineName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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. - * @param registryName The name of the container registry. - * @param exportPipelineName The name of the export pipeline. - * @param exportPipelineCreateParameters The parameters for creating an export pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, registryName: string, exportPipelineName: string, exportPipelineCreateParameters: Models.ExportPipeline, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - exportPipelineName, - exportPipelineCreateParameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Deletes an export pipeline 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 exportPipelineName The name of the export pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, registryName: string, exportPipelineName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - exportPipelineName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Lists all export pipelines for the specified container registry. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExportPipelineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.exportPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExportPipeline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.exportPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "exportPipelineCreateParameters", - mapper: { - ...Mappers.ExportPipeline, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ExportPipeline - }, - 201: { - bodyMapper: Mappers.ExportPipeline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.exportPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ExportPipelineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts b/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts deleted file mode 100644 index 4134dbbcb006..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/importPipelines.ts +++ /dev/null @@ -1,332 +0,0 @@ -/* - * 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/importPipelinesMappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; - -/** Class representing a ImportPipelines. */ -export class ImportPipelines { - private readonly client: ContainerRegistryManagementClientContext; - - /** - * Create a ImportPipelines. - * @param {ContainerRegistryManagementClientContext} client Reference to the service client. - */ - constructor(client: ContainerRegistryManagementClientContext) { - 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. - * @param registryName The name of the container registry. - * @param importPipelineName The name of the import pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, registryName: string, importPipelineName: 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 importPipelineName The name of the import pipeline. - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, importPipelineName: 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 importPipelineName The name of the import pipeline. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, importPipelineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, registryName: string, importPipelineName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - importPipelineName, - options - }, - getOperationSpec, - 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. - * @param registryName The name of the container registry. - * @param importPipelineName The name of the import pipeline. - * @param importPipelineCreateParameters The parameters for creating an import pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, registryName: string, importPipelineName: string, importPipelineCreateParameters: Models.ImportPipeline, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,registryName,importPipelineName,importPipelineCreateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes an import pipeline 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 importPipelineName The name of the import pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, registryName: string, importPipelineName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,registryName,importPipelineName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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. - * @param registryName The name of the container registry. - * @param importPipelineName The name of the import pipeline. - * @param importPipelineCreateParameters The parameters for creating an import pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, registryName: string, importPipelineName: string, importPipelineCreateParameters: Models.ImportPipeline, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - importPipelineName, - importPipelineCreateParameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Deletes an import pipeline 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 importPipelineName The name of the import pipeline. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, registryName: string, importPipelineName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - importPipelineName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Lists all import pipelines for the specified container registry. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ImportPipelineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.importPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ImportPipeline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.importPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "importPipelineCreateParameters", - mapper: { - ...Mappers.ImportPipeline, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ImportPipeline - }, - 201: { - bodyMapper: Mappers.ImportPipeline - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.importPipelineName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ImportPipelineListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts index 2a0d142c45b5..68cde2449a94 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/index.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/index.ts @@ -7,16 +7,10 @@ * regenerated. */ -export * from "./connectedRegistries"; -export * from "./exportPipelines"; export * from "./registries"; -export * from "./importPipelines"; 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"; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts b/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts deleted file mode 100644 index 0aff5385fa1e..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/pipelineRuns.ts +++ /dev/null @@ -1,332 +0,0 @@ -/* - * 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/pipelineRunsMappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; - -/** Class representing a PipelineRuns. */ -export class PipelineRuns { - private readonly client: ContainerRegistryManagementClientContext; - - /** - * Create a PipelineRuns. - * @param {ContainerRegistryManagementClientContext} client Reference to the service client. - */ - constructor(client: ContainerRegistryManagementClientContext) { - 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. - * @param registryName The name of the container registry. - * @param pipelineRunName The name of the pipeline run. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, registryName: string, pipelineRunName: 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 pipelineRunName The name of the pipeline run. - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, pipelineRunName: 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 pipelineRunName The name of the pipeline run. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, pipelineRunName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - pipelineRunName, - options - }, - getOperationSpec, - 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. - * @param registryName The name of the container registry. - * @param pipelineRunName The name of the pipeline run. - * @param pipelineRunCreateParameters The parameters for creating a pipeline run. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: Models.PipelineRun, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,registryName,pipelineRunName,pipelineRunCreateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a pipeline run 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 pipelineRunName The name of the pipeline run. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,registryName,pipelineRunName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * 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. - * @param registryName The name of the container registry. - * @param pipelineRunName The name of the pipeline run. - * @param pipelineRunCreateParameters The parameters for creating a pipeline run. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, registryName: string, pipelineRunName: string, pipelineRunCreateParameters: Models.PipelineRun, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - pipelineRunName, - pipelineRunCreateParameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Deletes a pipeline run 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 pipelineRunName The name of the pipeline run. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, registryName: string, pipelineRunName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - pipelineRunName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Lists all the pipeline runs for the specified container registry. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PipelineRunListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.pipelineRunName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PipelineRun - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.pipelineRunName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "pipelineRunCreateParameters", - mapper: { - ...Mappers.PipelineRun, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.PipelineRun - }, - 201: { - bodyMapper: Mappers.PipelineRun - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.pipelineRunName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PipelineRunListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts index a83ca63044ed..ea8fed67402d 100644 --- a/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts +++ b/sdk/containerregistry/arm-containerregistry/src/operations/registries.ts @@ -254,6 +254,42 @@ export class Registries { callback) as Promise; } + /** + * Gets a private link resource by a specified group name 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 groupName The name of the private link resource. + * @param [options] The optional parameters + * @returns Promise + */ + getPrivateLinkResource(resourceGroupName: string, registryName: string, groupName: 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 groupName The name of the private link resource. + * @param callback The callback + */ + getPrivateLinkResource(resourceGroupName: string, registryName: string, groupName: 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 groupName The name of the private link resource. + * @param options The optional parameters + * @param callback The callback + */ + getPrivateLinkResource(resourceGroupName: string, registryName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getPrivateLinkResource(resourceGroupName: string, registryName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + registryName, + groupName, + options + }, + getPrivateLinkResourceOperationSpec, + callback) as Promise; + } + /** * Lists the login credentials for the specified container registry. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -325,19 +361,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; - } - /** * 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. @@ -461,26 +484,6 @@ export class Registries { options); } - /** - * 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 - */ - beginGenerateCredentials(resourceGroupName: string, registryName: string, generateCredentialsParameters: Models.GenerateCredentialsParameters, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - generateCredentialsParameters, - options - }, - beginGenerateCredentialsOperationSpec, - options); - } - /** * Schedules a new run based on the request parameters and add it to the run queue. * @param resourceGroupName The name of the resource group to which the container registry belongs. @@ -740,6 +743,32 @@ const listPrivateLinkResourcesOperationSpec: msRest.OperationSpec = { serializer }; +const getPrivateLinkResourceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources/{groupName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.registryName, + Parameters.groupName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PrivateLinkResource + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listCredentialsOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials", @@ -948,39 +977,6 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const beginGenerateCredentialsOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "generateCredentialsParameters", - mapper: { - ...Mappers.GenerateCredentialsParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.GenerateCredentialsResult - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginScheduleRunOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun", diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts b/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts deleted file mode 100644 index c144a9a6442d..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/scopeMaps.ts +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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/scopeMapsMappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; - -/** Class representing a ScopeMaps. */ -export class ScopeMaps { - private readonly client: ContainerRegistryManagementClientContext; - - /** - * Create a ScopeMaps. - * @param {ContainerRegistryManagementClientContext} client Reference to the service client. - */ - constructor(client: ContainerRegistryManagementClientContext) { - 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. - * @param registryName The name of the container registry. - * @param scopeMapName The name of the scope map. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, registryName: string, scopeMapName: 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 scopeMapName The name of the scope map. - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, scopeMapName: 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 scopeMapName The name of the scope map. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, scopeMapName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, registryName: string, scopeMapName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - scopeMapName, - options - }, - getOperationSpec, - 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. - * @param registryName The name of the container registry. - * @param scopeMapName The name of the scope map. - * @param scopeMapCreateParameters The parameters for creating a scope map. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, registryName: string, scopeMapName: string, scopeMapCreateParameters: Models.ScopeMap, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,registryName,scopeMapName,scopeMapCreateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a scope map 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 scopeMapName The name of the scope map. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, registryName: string, scopeMapName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,registryName,scopeMapName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates a scope map 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 scopeMapName The name of the scope map. - * @param scopeMapUpdateParameters The parameters for updating a scope map. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, registryName: string, scopeMapName: string, scopeMapUpdateParameters: Models.ScopeMapUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,registryName,scopeMapName,scopeMapUpdateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) 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. - * @param registryName The name of the container registry. - * @param scopeMapName The name of the scope map. - * @param scopeMapCreateParameters The parameters for creating a scope map. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, registryName: string, scopeMapName: string, scopeMapCreateParameters: Models.ScopeMap, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - scopeMapName, - scopeMapCreateParameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Deletes a scope map 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 scopeMapName The name of the scope map. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, registryName: string, scopeMapName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - scopeMapName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates a scope map 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 scopeMapName The name of the scope map. - * @param scopeMapUpdateParameters The parameters for updating a scope map. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, registryName: string, scopeMapName: string, scopeMapUpdateParameters: Models.ScopeMapUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - scopeMapName, - scopeMapUpdateParameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Lists all the scope maps for the specified container registry. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ScopeMapListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.scopeMapName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ScopeMap - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.scopeMapName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "scopeMapCreateParameters", - mapper: { - ...Mappers.ScopeMap, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ScopeMap - }, - 201: { - bodyMapper: Mappers.ScopeMap - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.scopeMapName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.scopeMapName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "scopeMapUpdateParameters", - mapper: { - ...Mappers.ScopeMapUpdateParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ScopeMap - }, - 201: { - bodyMapper: Mappers.ScopeMap - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ScopeMapListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts b/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts deleted file mode 100644 index c4364ece9b3a..000000000000 --- a/sdk/containerregistry/arm-containerregistry/src/operations/tokens.ts +++ /dev/null @@ -1,404 +0,0 @@ -/* - * 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/tokensMappers"; -import * as Parameters from "../models/parameters"; -import { ContainerRegistryManagementClientContext } from "../containerRegistryManagementClientContext"; - -/** Class representing a Tokens. */ -export class Tokens { - private readonly client: ContainerRegistryManagementClientContext; - - /** - * Create a Tokens. - * @param {ContainerRegistryManagementClientContext} client Reference to the service client. - */ - constructor(client: ContainerRegistryManagementClientContext) { - 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. - * @param registryName The name of the container registry. - * @param tokenName The name of the token. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, registryName: string, tokenName: 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 tokenName The name of the token. - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, tokenName: 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 tokenName The name of the token. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, registryName: string, tokenName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, registryName: string, tokenName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - registryName, - tokenName, - options - }, - getOperationSpec, - 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. - * @param registryName The name of the container registry. - * @param tokenName The name of the token. - * @param tokenCreateParameters The parameters for creating a token. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, registryName: string, tokenName: string, tokenCreateParameters: Models.Token, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreate(resourceGroupName,registryName,tokenName,tokenCreateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a token 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 tokenName The name of the token. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, registryName: string, tokenName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,registryName,tokenName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Updates a token 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 tokenName The name of the token. - * @param tokenUpdateParameters The parameters for updating a token. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, registryName: string, tokenName: string, tokenUpdateParameters: Models.TokenUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,registryName,tokenName,tokenUpdateParameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) 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. - * @param registryName The name of the container registry. - * @param tokenName The name of the token. - * @param tokenCreateParameters The parameters for creating a token. - * @param [options] The optional parameters - * @returns Promise - */ - beginCreate(resourceGroupName: string, registryName: string, tokenName: string, tokenCreateParameters: Models.Token, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - tokenName, - tokenCreateParameters, - options - }, - beginCreateOperationSpec, - options); - } - - /** - * Deletes a token 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 tokenName The name of the token. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, registryName: string, tokenName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - tokenName, - options - }, - beginDeleteMethodOperationSpec, - options); - } - - /** - * Updates a token 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 tokenName The name of the token. - * @param tokenUpdateParameters The parameters for updating a token. - * @param [options] The optional parameters - * @returns Promise - */ - beginUpdate(resourceGroupName: string, registryName: string, tokenName: string, tokenUpdateParameters: Models.TokenUpdateParameters, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - registryName, - tokenName, - tokenUpdateParameters, - options - }, - beginUpdateOperationSpec, - options); - } - - /** - * Lists all the tokens for the specified container registry. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TokenListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.tokenName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Token - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.tokenName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "tokenCreateParameters", - mapper: { - ...Mappers.Token, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Token - }, - 201: { - bodyMapper: Mappers.Token - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.tokenName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.registryName, - Parameters.tokenName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "tokenUpdateParameters", - mapper: { - ...Mappers.TokenUpdateParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Token - }, - 201: { - bodyMapper: Mappers.Token - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.TokenListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -};