Skip to content

/AWS1/CL_ART=>COPYPACKAGEVERSIONS()

About CopyPackageVersions

Copies package versions from one repository to another repository in the same domain.

You must specify versions or versionRevisions. You cannot specify both.

Method Signature

IMPORTING

Required arguments:

IV_DOMAIN TYPE /AWS1/ARTDOMAINNAME /AWS1/ARTDOMAINNAME

The name of the domain that contains the source and destination repositories.

IV_SOURCEREPOSITORY TYPE /AWS1/ARTREPOSITORYNAME /AWS1/ARTREPOSITORYNAME

The name of the repository that contains the package versions to be copied.

IV_DESTINATIONREPOSITORY TYPE /AWS1/ARTREPOSITORYNAME /AWS1/ARTREPOSITORYNAME

The name of the repository into which package versions are copied.

IV_FORMAT TYPE /AWS1/ARTPACKAGEFORMAT /AWS1/ARTPACKAGEFORMAT

The format of the package versions to be copied.

IV_PACKAGE TYPE /AWS1/ARTPACKAGENAME /AWS1/ARTPACKAGENAME

The name of the package that contains the versions to be copied.

Optional arguments:

IV_DOMAINOWNER TYPE /AWS1/ARTACCOUNTID /AWS1/ARTACCOUNTID

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

IV_NAMESPACE TYPE /AWS1/ARTPACKAGENAMESPACE /AWS1/ARTPACKAGENAMESPACE

The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example:

The namespace is required when copying package versions of the following formats:

  • Maven

  • Swift

  • generic

  • The namespace of a Maven package version is its groupId.

  • The namespace of an npm or Swift package version is its scope.

  • The namespace of a generic package is its namespace.

  • Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

IT_VERSIONS TYPE /AWS1/CL_ARTPACKAGEVRSLIST_W=>TT_PACKAGEVERSIONLIST TT_PACKAGEVERSIONLIST

The versions of the package to be copied.

You must specify versions or versionRevisions. You cannot specify both.

IT_VERSIONREVISIONS TYPE /AWS1/CL_ARTPACKAGEVRSREVISI00=>TT_PACKAGEVERSIONREVISIONMAP TT_PACKAGEVERSIONREVISIONMAP

A list of key-value pairs. The keys are package versions and the values are package version revisions. A CopyPackageVersion operation succeeds if the specified versions in the source repository match the specified package version revision.

You must specify versions or versionRevisions. You cannot specify both.

IV_ALLOWOVERWRITE TYPE /AWS1/ARTBOOLEANOPTIONAL /AWS1/ARTBOOLEANOPTIONAL

Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the failedVersions field of the response with an ALREADY_EXISTS error code.

IV_INCLUDEFROMUPSTREAM TYPE /AWS1/ARTBOOLEANOPTIONAL /AWS1/ARTBOOLEANOPTIONAL

Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see Working with upstream repositories.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_ARTCPYPACKAGEVRSSRSLT /AWS1/CL_ARTCPYPACKAGEVRSSRSLT