@@ -1601,6 +1601,147 @@ public Delete set(String parameterName, Object value) {
16011601 return (Delete ) super .set (parameterName , value );
16021602 }
16031603 }
1604+ /**
1605+ * Exports an artifact.
1606+ *
1607+ * Create a request for the method "repositories.exportArtifact".
1608+ *
1609+ * This request holds the parameters needed by the artifactregistry server. After setting any
1610+ * optional parameters, call the {@link ExportArtifact#execute()} method to invoke the remote
1611+ * operation.
1612+ *
1613+ * @param repository Required. The repository of the artifact to export. Format:
1614+ * projects/{project}/locations/{location}/repositories/{repository}
1615+ * @param content the {@link com.google.api.services.artifactregistry.v1.model.ExportArtifactRequest}
1616+ * @return the request
1617+ */
1618+ public ExportArtifact exportArtifact (java .lang .String repository , com .google .api .services .artifactregistry .v1 .model .ExportArtifactRequest content ) throws java .io .IOException {
1619+ ExportArtifact result = new ExportArtifact (repository , content );
1620+ initialize (result );
1621+ return result ;
1622+ }
1623+
1624+ public class ExportArtifact extends ArtifactRegistryRequest <com .google .api .services .artifactregistry .v1 .model .Operation > {
1625+
1626+ private static final String REST_PATH = "v1/{+repository}:exportArtifact" ;
1627+
1628+ private final java .util .regex .Pattern REPOSITORY_PATTERN =
1629+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/repositories/[^/]+$" );
1630+
1631+ /**
1632+ * Exports an artifact.
1633+ *
1634+ * Create a request for the method "repositories.exportArtifact".
1635+ *
1636+ * This request holds the parameters needed by the the artifactregistry server. After setting any
1637+ * optional parameters, call the {@link ExportArtifact#execute()} method to invoke the remote
1638+ * operation. <p> {@link ExportArtifact#initialize(com.google.api.client.googleapis.services.Abstr
1639+ * actGoogleClientRequest)} must be called to initialize this instance immediately after invoking
1640+ * the constructor. </p>
1641+ *
1642+ * @param repository Required. The repository of the artifact to export. Format:
1643+ * projects/{project}/locations/{location}/repositories/{repository}
1644+ * @param content the {@link com.google.api.services.artifactregistry.v1.model.ExportArtifactRequest}
1645+ * @since 1.13
1646+ */
1647+ protected ExportArtifact (java .lang .String repository , com .google .api .services .artifactregistry .v1 .model .ExportArtifactRequest content ) {
1648+ super (ArtifactRegistry .this , "POST" , REST_PATH , content , com .google .api .services .artifactregistry .v1 .model .Operation .class );
1649+ this .repository = com .google .api .client .util .Preconditions .checkNotNull (repository , "Required parameter repository must be specified." );
1650+ if (!getSuppressPatternChecks ()) {
1651+ com .google .api .client .util .Preconditions .checkArgument (REPOSITORY_PATTERN .matcher (repository ).matches (),
1652+ "Parameter repository must conform to the pattern " +
1653+ "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$" );
1654+ }
1655+ }
1656+
1657+ @ Override
1658+ public ExportArtifact set$Xgafv (java .lang .String $Xgafv ) {
1659+ return (ExportArtifact ) super .set$Xgafv ($Xgafv );
1660+ }
1661+
1662+ @ Override
1663+ public ExportArtifact setAccessToken (java .lang .String accessToken ) {
1664+ return (ExportArtifact ) super .setAccessToken (accessToken );
1665+ }
1666+
1667+ @ Override
1668+ public ExportArtifact setAlt (java .lang .String alt ) {
1669+ return (ExportArtifact ) super .setAlt (alt );
1670+ }
1671+
1672+ @ Override
1673+ public ExportArtifact setCallback (java .lang .String callback ) {
1674+ return (ExportArtifact ) super .setCallback (callback );
1675+ }
1676+
1677+ @ Override
1678+ public ExportArtifact setFields (java .lang .String fields ) {
1679+ return (ExportArtifact ) super .setFields (fields );
1680+ }
1681+
1682+ @ Override
1683+ public ExportArtifact setKey (java .lang .String key ) {
1684+ return (ExportArtifact ) super .setKey (key );
1685+ }
1686+
1687+ @ Override
1688+ public ExportArtifact setOauthToken (java .lang .String oauthToken ) {
1689+ return (ExportArtifact ) super .setOauthToken (oauthToken );
1690+ }
1691+
1692+ @ Override
1693+ public ExportArtifact setPrettyPrint (java .lang .Boolean prettyPrint ) {
1694+ return (ExportArtifact ) super .setPrettyPrint (prettyPrint );
1695+ }
1696+
1697+ @ Override
1698+ public ExportArtifact setQuotaUser (java .lang .String quotaUser ) {
1699+ return (ExportArtifact ) super .setQuotaUser (quotaUser );
1700+ }
1701+
1702+ @ Override
1703+ public ExportArtifact setUploadType (java .lang .String uploadType ) {
1704+ return (ExportArtifact ) super .setUploadType (uploadType );
1705+ }
1706+
1707+ @ Override
1708+ public ExportArtifact setUploadProtocol (java .lang .String uploadProtocol ) {
1709+ return (ExportArtifact ) super .setUploadProtocol (uploadProtocol );
1710+ }
1711+
1712+ /**
1713+ * Required. The repository of the artifact to export. Format:
1714+ * projects/{project}/locations/{location}/repositories/{repository}
1715+ */
1716+ @ com .google .api .client .util .Key
1717+ private java .lang .String repository ;
1718+
1719+ /** Required. The repository of the artifact to export. Format:
1720+ projects/{project}/locations/{location}/repositories/{repository}
1721+ */
1722+ public java .lang .String getRepository () {
1723+ return repository ;
1724+ }
1725+
1726+ /**
1727+ * Required. The repository of the artifact to export. Format:
1728+ * projects/{project}/locations/{location}/repositories/{repository}
1729+ */
1730+ public ExportArtifact setRepository (java .lang .String repository ) {
1731+ if (!getSuppressPatternChecks ()) {
1732+ com .google .api .client .util .Preconditions .checkArgument (REPOSITORY_PATTERN .matcher (repository ).matches (),
1733+ "Parameter repository must conform to the pattern " +
1734+ "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$" );
1735+ }
1736+ this .repository = repository ;
1737+ return this ;
1738+ }
1739+
1740+ @ Override
1741+ public ExportArtifact set (String parameterName , Object value ) {
1742+ return (ExportArtifact ) super .set (parameterName , value );
1743+ }
1744+ }
16041745 /**
16051746 * Gets a repository.
16061747 *
0 commit comments