diff --git a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/README.md b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/README.md index 1ca7ee663a5..f260cfac7d8 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/README.md +++ b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-artifactregistry - v1beta2-rev20240305-2.0.0 + v1beta2-rev20240501-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-artifactregistry:v1beta2-rev20240305-2.0.0' + implementation 'com.google.apis:google-api-services-artifactregistry:v1beta2-rev20240501-2.0.0' } ``` diff --git a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/ArtifactRegistry.java b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/ArtifactRegistry.java index 7df70414f36..bb2aa0e5e6f 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/ArtifactRegistry.java +++ b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/ArtifactRegistry.java @@ -133,192 +133,6 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog super.initialize(httpClientRequest); } - /** - * An accessor for creating requests from the Media collection. - * - *

The typical use is:

- *
-   *   {@code ArtifactRegistry artifactregistry = new ArtifactRegistry(...);}
-   *   {@code ArtifactRegistry.Media.List request = artifactregistry.media().list(parameters ...)}
-   * 
- * - * @return the resource collection - */ - public Media media() { - return new Media(); - } - - /** - * The "media" collection of methods. - */ - public class Media { - - /** - * Download a file. - * - * Create a request for the method "media.download". - * - * This request holds the parameters needed by the artifactregistry server. After setting any - * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the file to download. - * @return the request - */ - public Download download(java.lang.String name) throws java.io.IOException { - Download result = new Download(name); - initialize(result); - return result; - } - - public class Download extends ArtifactRegistryRequest { - - private static final String REST_PATH = "v1beta2/{+name}:download"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); - - /** - * Download a file. - * - * Create a request for the method "media.download". - * - * This request holds the parameters needed by the the artifactregistry server. After setting any - * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. - *

{@link - * Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the file to download. - * @since 1.13 - */ - protected Download(java.lang.String name) { - super(ArtifactRegistry.this, "GET", REST_PATH, null, com.google.api.services.artifactregistry.v1beta2.model.DownloadFileResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); - } - initializeMediaDownload(); - } - - @Override - public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { - super.executeMediaAndDownloadTo(outputStream); - } - - @Override - public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { - return super.executeMediaAsInputStream(); - } - - @Override - public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { - return super.executeMedia(); - } - - @Override - public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { - java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) - ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); - return new com.google.api.client.http.GenericUrl( - com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Download set$Xgafv(java.lang.String $Xgafv) { - return (Download) super.set$Xgafv($Xgafv); - } - - @Override - public Download setAccessToken(java.lang.String accessToken) { - return (Download) super.setAccessToken(accessToken); - } - - @Override - public Download setAlt(java.lang.String alt) { - return (Download) super.setAlt(alt); - } - - @Override - public Download setCallback(java.lang.String callback) { - return (Download) super.setCallback(callback); - } - - @Override - public Download setFields(java.lang.String fields) { - return (Download) super.setFields(fields); - } - - @Override - public Download setKey(java.lang.String key) { - return (Download) super.setKey(key); - } - - @Override - public Download setOauthToken(java.lang.String oauthToken) { - return (Download) super.setOauthToken(oauthToken); - } - - @Override - public Download setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Download) super.setPrettyPrint(prettyPrint); - } - - @Override - public Download setQuotaUser(java.lang.String quotaUser) { - return (Download) super.setQuotaUser(quotaUser); - } - - @Override - public Download setUploadType(java.lang.String uploadType) { - return (Download) super.setUploadType(uploadType); - } - - @Override - public Download setUploadProtocol(java.lang.String uploadProtocol) { - return (Download) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the file to download. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the file to download. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the file to download. */ - public Download setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Download set(String parameterName, Object value) { - return (Download) super.set(parameterName, value); - } - } - - } - /** * An accessor for creating requests from the Projects collection. * @@ -1975,7 +1789,8 @@ public List set(String parameterName, Object value) { * This request holds the parameters needed by the artifactregistry server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * @param name The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For + * each location in a project, repository names must be unique. * @param content the {@link com.google.api.services.artifactregistry.v1beta2.model.Repository} * @return the request */ @@ -2003,7 +1818,8 @@ public class Patch extends ArtifactRegistryRequest * - * @param name The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * @param name The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. For + * each location in a project, repository names must be unique. * @param content the {@link com.google.api.services.artifactregistry.v1beta2.model.Repository} * @since 1.13 */ @@ -2074,12 +1890,14 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { /** * The name of the repository, for example: `projects/p1/locations/us- - * central1/repositories/repo1`. + * central1/repositories/repo1`. For each location in a project, repository names must be + * unique. */ @com.google.api.client.util.Key private java.lang.String name; /** The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`. + For each location in a project, repository names must be unique. */ public java.lang.String getName() { return name; @@ -2087,7 +1905,8 @@ public java.lang.String getName() { /** * The name of the repository, for example: `projects/p1/locations/us- - * central1/repositories/repo1`. + * central1/repositories/repo1`. For each location in a project, repository names must be + * unique. */ public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { @@ -2788,6 +2607,169 @@ public Files files() { */ public class Files { + /** + * Download a file. + * + * Create a request for the method "files.download". + * + * This request holds the parameters needed by the artifactregistry server. After setting any + * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the file to download. + * @return the request + */ + public Download download(java.lang.String name) throws java.io.IOException { + Download result = new Download(name); + initialize(result); + return result; + } + + public class Download extends ArtifactRegistryRequest { + + private static final String REST_PATH = "v1beta2/{+name}:download"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); + + /** + * Download a file. + * + * Create a request for the method "files.download". + * + * This request holds the parameters needed by the the artifactregistry server. After setting any + * optional parameters, call the {@link Download#execute()} method to invoke the remote operation. + *

{@link + * Download#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the file to download. + * @since 1.13 + */ + protected Download(java.lang.String name) { + super(ArtifactRegistry.this, "GET", REST_PATH, null, com.google.api.services.artifactregistry.v1beta2.model.DownloadFileResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); + } + initializeMediaDownload(); + } + + @Override + public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException { + super.executeMediaAndDownloadTo(outputStream); + } + + @Override + public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException { + return super.executeMediaAsInputStream(); + } + + @Override + public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException { + return super.executeMedia(); + } + + @Override + public com.google.api.client.http.GenericUrl buildHttpRequestUrl() { + java.lang.String baseUrl = ("media".equals(get("alt")) && getMediaHttpUploader() == null) + ? getRootUrl() + "download/" + getServicePath() : getBaseUrl(); + return new com.google.api.client.http.GenericUrl( + com.google.api.client.http.UriTemplate.expand(baseUrl, getUriTemplate(), this, true)); + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Download set$Xgafv(java.lang.String $Xgafv) { + return (Download) super.set$Xgafv($Xgafv); + } + + @Override + public Download setAccessToken(java.lang.String accessToken) { + return (Download) super.setAccessToken(accessToken); + } + + @Override + public Download setAlt(java.lang.String alt) { + return (Download) super.setAlt(alt); + } + + @Override + public Download setCallback(java.lang.String callback) { + return (Download) super.setCallback(callback); + } + + @Override + public Download setFields(java.lang.String fields) { + return (Download) super.setFields(fields); + } + + @Override + public Download setKey(java.lang.String key) { + return (Download) super.setKey(key); + } + + @Override + public Download setOauthToken(java.lang.String oauthToken) { + return (Download) super.setOauthToken(oauthToken); + } + + @Override + public Download setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Download) super.setPrettyPrint(prettyPrint); + } + + @Override + public Download setQuotaUser(java.lang.String quotaUser) { + return (Download) super.setQuotaUser(quotaUser); + } + + @Override + public Download setUploadType(java.lang.String uploadType) { + return (Download) super.setUploadType(uploadType); + } + + @Override + public Download setUploadProtocol(java.lang.String uploadProtocol) { + return (Download) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the file to download. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the file to download. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the file to download. */ + public Download setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/files/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Download set(String parameterName, Object value) { + return (Download) super.set(parameterName, value); + } + } /** * Gets a file. * diff --git a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/GoogleDevtoolsArtifactregistryV1beta2File.java b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/GoogleDevtoolsArtifactregistryV1beta2File.java index b15eee645f6..d5bdf428422 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/GoogleDevtoolsArtifactregistryV1beta2File.java +++ b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/GoogleDevtoolsArtifactregistryV1beta2File.java @@ -45,8 +45,8 @@ public final class GoogleDevtoolsArtifactregistryV1beta2File extends com.google. private java.util.List hashes; /** - * The name of the file, for example: "projects/p1/locations/us- - * central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they + * The name of the file, for example: `projects/p1/locations/us- + * central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they * are escaped. * The value may be {@code null}. */ @@ -109,8 +109,8 @@ public GoogleDevtoolsArtifactregistryV1beta2File setHashes(java.util.List } /** - * The name of the file, for example: "projects/p1/locations/us- - * central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they + * The name of the file, for example: `projects/p1/locations/us- + * central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they * are escaped. * @return value or {@code null} for none */ @@ -119,8 +119,8 @@ public java.lang.String getName() { } /** - * The name of the file, for example: "projects/p1/locations/us- - * central1/repositories/repo1/files/a%2Fb%2Fc.txt". If the file ID part contains slashes, they + * The name of the file, for example: `projects/p1/locations/us- + * central1/repositories/repo1/files/a%2Fb%2Fc.txt`. If the file ID part contains slashes, they * are escaped. * @param name name or {@code null} for none */ diff --git a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/Repository.java b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/Repository.java index 765fc6524bb..f5d0c7c8a15 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/Repository.java +++ b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/com/google/api/services/artifactregistry/v1beta2/model/Repository.java @@ -79,12 +79,19 @@ public final class Repository extends com.google.api.client.json.GenericJson { /** * The name of the repository, for example: `projects/p1/locations/us- - * central1/repositories/repo1`. + * central1/repositories/repo1`. For each location in a project, repository names must be unique. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; + /** + * Output only. If set, the repository satisfies physical zone isolation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean satisfiesPzi; + /** * Output only. If set, the repository satisfies physical zone separation. * The value may be {@code null}. @@ -221,7 +228,7 @@ public Repository setMavenConfig(MavenRepositoryConfig mavenConfig) { /** * The name of the repository, for example: `projects/p1/locations/us- - * central1/repositories/repo1`. + * central1/repositories/repo1`. For each location in a project, repository names must be unique. * @return value or {@code null} for none */ public java.lang.String getName() { @@ -230,7 +237,7 @@ public java.lang.String getName() { /** * The name of the repository, for example: `projects/p1/locations/us- - * central1/repositories/repo1`. + * central1/repositories/repo1`. For each location in a project, repository names must be unique. * @param name name or {@code null} for none */ public Repository setName(java.lang.String name) { @@ -238,6 +245,23 @@ public Repository setName(java.lang.String name) { return this; } + /** + * Output only. If set, the repository satisfies physical zone isolation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getSatisfiesPzi() { + return satisfiesPzi; + } + + /** + * Output only. If set, the repository satisfies physical zone isolation. + * @param satisfiesPzi satisfiesPzi or {@code null} for none + */ + public Repository setSatisfiesPzi(java.lang.Boolean satisfiesPzi) { + this.satisfiesPzi = satisfiesPzi; + return this; + } + /** * Output only. If set, the repository satisfies physical zone separation. * @return value or {@code null} for none diff --git a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/pom.xml b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/pom.xml index 98c27abb0c1..27b097fe38a 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/2.0.0/pom.xml +++ b/clients/google-api-services-artifactregistry/v1beta2/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-artifactregistry - v1beta2-rev20240305-2.0.0 - Artifact Registry API v1beta2-rev20240305-2.0.0 + v1beta2-rev20240501-2.0.0 + Artifact Registry API v1beta2-rev20240501-2.0.0 jar 2011 diff --git a/clients/google-api-services-artifactregistry/v1beta2/README.md b/clients/google-api-services-artifactregistry/v1beta2/README.md index 1ca7ee663a5..f260cfac7d8 100644 --- a/clients/google-api-services-artifactregistry/v1beta2/README.md +++ b/clients/google-api-services-artifactregistry/v1beta2/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-artifactregistry - v1beta2-rev20240305-2.0.0 + v1beta2-rev20240501-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-artifactregistry:v1beta2-rev20240305-2.0.0' + implementation 'com.google.apis:google-api-services-artifactregistry:v1beta2-rev20240501-2.0.0' } ```