Skip to content

Commit fd4c89d

Browse files
1 parent cb236a2 commit fd4c89d

File tree

8 files changed

+529
-6
lines changed

8 files changed

+529
-6
lines changed

clients/google-api-services-artifactregistry/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-artifactregistry</artifactId>
25-
<version>v1-rev20251007-2.0.0</version>
25+
<version>v1-rev20251017-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-artifactregistry:v1-rev20251007-2.0.0'
38+
implementation 'com.google.apis:google-api-services-artifactregistry:v1-rev20251017-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/ArtifactRegistry.java

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.artifactregistry.v1.model;
18+
19+
/**
20+
* The LRO metadata for exporting an artifact.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class ExportArtifactMetadata extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The exported artifact files.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.util.List<ExportedFile> exportedFiles;
39+
40+
/**
41+
* The exported artifact files.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.util.List<ExportedFile> getExportedFiles() {
45+
return exportedFiles;
46+
}
47+
48+
/**
49+
* The exported artifact files.
50+
* @param exportedFiles exportedFiles or {@code null} for none
51+
*/
52+
public ExportArtifactMetadata setExportedFiles(java.util.List<ExportedFile> exportedFiles) {
53+
this.exportedFiles = exportedFiles;
54+
return this;
55+
}
56+
57+
@Override
58+
public ExportArtifactMetadata set(String fieldName, Object value) {
59+
return (ExportArtifactMetadata) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public ExportArtifactMetadata clone() {
64+
return (ExportArtifactMetadata) super.clone();
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.artifactregistry.v1.model;
18+
19+
/**
20+
* The request for exporting an artifact to a destination.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class ExportArtifactRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The Cloud Storage path to export the artifact to. Should start with the bucket name, and
35+
* optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing
36+
* objects with the same path will be overwritten.
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String gcsPath;
41+
42+
/**
43+
* The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{reposi
44+
* tory}/packages/{package}/tags/{tag}
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String sourceTag;
49+
50+
/**
51+
* The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{r
52+
* epository}/packages/{package}/versions/{version}
53+
* The value may be {@code null}.
54+
*/
55+
@com.google.api.client.util.Key
56+
private java.lang.String sourceVersion;
57+
58+
/**
59+
* The Cloud Storage path to export the artifact to. Should start with the bucket name, and
60+
* optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing
61+
* objects with the same path will be overwritten.
62+
* @return value or {@code null} for none
63+
*/
64+
public java.lang.String getGcsPath() {
65+
return gcsPath;
66+
}
67+
68+
/**
69+
* The Cloud Storage path to export the artifact to. Should start with the bucket name, and
70+
* optionally have a directory path. Examples: `dst_bucket`, `dst_bucket/sub_dir`. Existing
71+
* objects with the same path will be overwritten.
72+
* @param gcsPath gcsPath or {@code null} for none
73+
*/
74+
public ExportArtifactRequest setGcsPath(java.lang.String gcsPath) {
75+
this.gcsPath = gcsPath;
76+
return this;
77+
}
78+
79+
/**
80+
* The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{reposi
81+
* tory}/packages/{package}/tags/{tag}
82+
* @return value or {@code null} for none
83+
*/
84+
public java.lang.String getSourceTag() {
85+
return sourceTag;
86+
}
87+
88+
/**
89+
* The artifact tag to export. Format:projects/{project}/locations/{location}/repositories/{reposi
90+
* tory}/packages/{package}/tags/{tag}
91+
* @param sourceTag sourceTag or {@code null} for none
92+
*/
93+
public ExportArtifactRequest setSourceTag(java.lang.String sourceTag) {
94+
this.sourceTag = sourceTag;
95+
return this;
96+
}
97+
98+
/**
99+
* The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{r
100+
* epository}/packages/{package}/versions/{version}
101+
* @return value or {@code null} for none
102+
*/
103+
public java.lang.String getSourceVersion() {
104+
return sourceVersion;
105+
}
106+
107+
/**
108+
* The artifact version to export. Format: projects/{project}/locations/{location}/repositories/{r
109+
* epository}/packages/{package}/versions/{version}
110+
* @param sourceVersion sourceVersion or {@code null} for none
111+
*/
112+
public ExportArtifactRequest setSourceVersion(java.lang.String sourceVersion) {
113+
this.sourceVersion = sourceVersion;
114+
return this;
115+
}
116+
117+
@Override
118+
public ExportArtifactRequest set(String fieldName, Object value) {
119+
return (ExportArtifactRequest) super.set(fieldName, value);
120+
}
121+
122+
@Override
123+
public ExportArtifactRequest clone() {
124+
return (ExportArtifactRequest) super.clone();
125+
}
126+
127+
}

0 commit comments

Comments
 (0)