{@link CheckPrewarmedArtifact#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param repository Required. The name of the repository, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. If the package or version ID parts contain slashes, the + * slashes are escaped. + * @param content the {@link com.google.api.services.artifactregistry.v1.model.CheckPrewarmedArtifactRequest} + * @since 1.13 + */ + protected CheckPrewarmedArtifact(java.lang.String repository, com.google.api.services.artifactregistry.v1.model.CheckPrewarmedArtifactRequest content) { + super(ArtifactRegistry.this, "POST", REST_PATH, content, com.google.api.services.artifactregistry.v1.model.CheckPrewarmedArtifactResponse.class); + this.repository = com.google.api.client.util.Preconditions.checkNotNull(repository, "Required parameter repository must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public CheckPrewarmedArtifact set$Xgafv(java.lang.String $Xgafv) { + return (CheckPrewarmedArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public CheckPrewarmedArtifact setAccessToken(java.lang.String accessToken) { + return (CheckPrewarmedArtifact) super.setAccessToken(accessToken); + } + + @Override + public CheckPrewarmedArtifact setAlt(java.lang.String alt) { + return (CheckPrewarmedArtifact) super.setAlt(alt); + } + + @Override + public CheckPrewarmedArtifact setCallback(java.lang.String callback) { + return (CheckPrewarmedArtifact) super.setCallback(callback); + } + + @Override + public CheckPrewarmedArtifact setFields(java.lang.String fields) { + return (CheckPrewarmedArtifact) super.setFields(fields); + } + + @Override + public CheckPrewarmedArtifact setKey(java.lang.String key) { + return (CheckPrewarmedArtifact) super.setKey(key); + } + + @Override + public CheckPrewarmedArtifact setOauthToken(java.lang.String oauthToken) { + return (CheckPrewarmedArtifact) super.setOauthToken(oauthToken); + } + + @Override + public CheckPrewarmedArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CheckPrewarmedArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public CheckPrewarmedArtifact setQuotaUser(java.lang.String quotaUser) { + return (CheckPrewarmedArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public CheckPrewarmedArtifact setUploadType(java.lang.String uploadType) { + return (CheckPrewarmedArtifact) super.setUploadType(uploadType); + } + + @Override + public CheckPrewarmedArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (CheckPrewarmedArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the repository, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. If the package or version ID parts contain slashes, the + * slashes are escaped. + */ + @com.google.api.client.util.Key + private java.lang.String repository; + + /** Required. The name of the repository, for example: `projects/p1/locations/us- + central1/repositories/repo1`. If the package or version ID parts contain slashes, the slashes are + escaped. + */ + public java.lang.String getRepository() { + return repository; + } + + /** + * Required. The name of the repository, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. If the package or version ID parts contain slashes, the + * slashes are escaped. + */ + public CheckPrewarmedArtifact setRepository(java.lang.String repository) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.repository = repository; + return this; + } + + @Override + public CheckPrewarmedArtifact set(String parameterName, Object value) { + return (CheckPrewarmedArtifact) super.set(parameterName, value); + } + } /** * Creates a repository. The returned Operation will finish once the repository has been created. * Its response will be the created Repository. @@ -2944,6 +3090,287 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + /** + * Prewarms an artifact for streaming. + * + * Create a request for the method "repositories.prewarmArtifact". + * + * This request holds the parameters needed by the artifactregistry server. After setting any + * optional parameters, call the {@link PrewarmArtifact#execute()} method to invoke the remote + * operation. + * + * @param repository Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * If the package or version ID parts contain slashes, the slashes are escaped. + * @param content the {@link com.google.api.services.artifactregistry.v1.model.PrewarmArtifactRequest} + * @return the request + */ + public PrewarmArtifact prewarmArtifact(java.lang.String repository, com.google.api.services.artifactregistry.v1.model.PrewarmArtifactRequest content) throws java.io.IOException { + PrewarmArtifact result = new PrewarmArtifact(repository, content); + initialize(result); + return result; + } + + public class PrewarmArtifact extends ArtifactRegistryRequest{@link PrewarmArtifact#initialize(com.google.api.client.googleapis.services.Abst + * ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking + * the constructor.
+ * + * @param repository Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * If the package or version ID parts contain slashes, the slashes are escaped. + * @param content the {@link com.google.api.services.artifactregistry.v1.model.PrewarmArtifactRequest} + * @since 1.13 + */ + protected PrewarmArtifact(java.lang.String repository, com.google.api.services.artifactregistry.v1.model.PrewarmArtifactRequest content) { + super(ArtifactRegistry.this, "POST", REST_PATH, content, com.google.api.services.artifactregistry.v1.model.Operation.class); + this.repository = com.google.api.client.util.Preconditions.checkNotNull(repository, "Required parameter repository must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public PrewarmArtifact set$Xgafv(java.lang.String $Xgafv) { + return (PrewarmArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public PrewarmArtifact setAccessToken(java.lang.String accessToken) { + return (PrewarmArtifact) super.setAccessToken(accessToken); + } + + @Override + public PrewarmArtifact setAlt(java.lang.String alt) { + return (PrewarmArtifact) super.setAlt(alt); + } + + @Override + public PrewarmArtifact setCallback(java.lang.String callback) { + return (PrewarmArtifact) super.setCallback(callback); + } + + @Override + public PrewarmArtifact setFields(java.lang.String fields) { + return (PrewarmArtifact) super.setFields(fields); + } + + @Override + public PrewarmArtifact setKey(java.lang.String key) { + return (PrewarmArtifact) super.setKey(key); + } + + @Override + public PrewarmArtifact setOauthToken(java.lang.String oauthToken) { + return (PrewarmArtifact) super.setOauthToken(oauthToken); + } + + @Override + public PrewarmArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (PrewarmArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public PrewarmArtifact setQuotaUser(java.lang.String quotaUser) { + return (PrewarmArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public PrewarmArtifact setUploadType(java.lang.String uploadType) { + return (PrewarmArtifact) super.setUploadType(uploadType); + } + + @Override + public PrewarmArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (PrewarmArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The repository name, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. If the package or version ID parts contain slashes, the + * slashes are escaped. + */ + @com.google.api.client.util.Key + private java.lang.String repository; + + /** Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + If the package or version ID parts contain slashes, the slashes are escaped. + */ + public java.lang.String getRepository() { + return repository; + } + + /** + * Required. The repository name, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. If the package or version ID parts contain slashes, the + * slashes are escaped. + */ + public PrewarmArtifact setRepository(java.lang.String repository) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.repository = repository; + return this; + } + + @Override + public PrewarmArtifact set(String parameterName, Object value) { + return (PrewarmArtifact) super.set(parameterName, value); + } + } + /** + * Removes an artifact from streaming. + * + * Create a request for the method "repositories.removePrewarmedArtifact". + * + * This request holds the parameters needed by the artifactregistry server. After setting any + * optional parameters, call the {@link RemovePrewarmedArtifact#execute()} method to invoke the + * remote operation. + * + * @param repository Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * @param content the {@link com.google.api.services.artifactregistry.v1.model.RemovePrewarmedArtifactRequest} + * @return the request + */ + public RemovePrewarmedArtifact removePrewarmedArtifact(java.lang.String repository, com.google.api.services.artifactregistry.v1.model.RemovePrewarmedArtifactRequest content) throws java.io.IOException { + RemovePrewarmedArtifact result = new RemovePrewarmedArtifact(repository, content); + initialize(result); + return result; + } + + public class RemovePrewarmedArtifact extends ArtifactRegistryRequest{@link RemovePrewarmedArtifact#initialize(com.google.api.client.googleapi + * s.services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.
+ * + * @param repository Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + * @param content the {@link com.google.api.services.artifactregistry.v1.model.RemovePrewarmedArtifactRequest} + * @since 1.13 + */ + protected RemovePrewarmedArtifact(java.lang.String repository, com.google.api.services.artifactregistry.v1.model.RemovePrewarmedArtifactRequest content) { + super(ArtifactRegistry.this, "POST", REST_PATH, content, com.google.api.services.artifactregistry.v1.model.RemovePrewarmedArtifactResponse.class); + this.repository = com.google.api.client.util.Preconditions.checkNotNull(repository, "Required parameter repository must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public RemovePrewarmedArtifact set$Xgafv(java.lang.String $Xgafv) { + return (RemovePrewarmedArtifact) super.set$Xgafv($Xgafv); + } + + @Override + public RemovePrewarmedArtifact setAccessToken(java.lang.String accessToken) { + return (RemovePrewarmedArtifact) super.setAccessToken(accessToken); + } + + @Override + public RemovePrewarmedArtifact setAlt(java.lang.String alt) { + return (RemovePrewarmedArtifact) super.setAlt(alt); + } + + @Override + public RemovePrewarmedArtifact setCallback(java.lang.String callback) { + return (RemovePrewarmedArtifact) super.setCallback(callback); + } + + @Override + public RemovePrewarmedArtifact setFields(java.lang.String fields) { + return (RemovePrewarmedArtifact) super.setFields(fields); + } + + @Override + public RemovePrewarmedArtifact setKey(java.lang.String key) { + return (RemovePrewarmedArtifact) super.setKey(key); + } + + @Override + public RemovePrewarmedArtifact setOauthToken(java.lang.String oauthToken) { + return (RemovePrewarmedArtifact) super.setOauthToken(oauthToken); + } + + @Override + public RemovePrewarmedArtifact setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RemovePrewarmedArtifact) super.setPrettyPrint(prettyPrint); + } + + @Override + public RemovePrewarmedArtifact setQuotaUser(java.lang.String quotaUser) { + return (RemovePrewarmedArtifact) super.setQuotaUser(quotaUser); + } + + @Override + public RemovePrewarmedArtifact setUploadType(java.lang.String uploadType) { + return (RemovePrewarmedArtifact) super.setUploadType(uploadType); + } + + @Override + public RemovePrewarmedArtifact setUploadProtocol(java.lang.String uploadProtocol) { + return (RemovePrewarmedArtifact) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The repository name, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. + */ + @com.google.api.client.util.Key + private java.lang.String repository; + + /** Required. The repository name, for example: `projects/p1/locations/us-central1/repositories/repo1`. + */ + public java.lang.String getRepository() { + return repository; + } + + /** + * Required. The repository name, for example: `projects/p1/locations/us- + * central1/repositories/repo1`. + */ + public RemovePrewarmedArtifact setRepository(java.lang.String repository) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(REPOSITORY_PATTERN.matcher(repository).matches(), + "Parameter repository must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.repository = repository; + return this; + } + + @Override + public RemovePrewarmedArtifact set(String parameterName, Object value) { + return (RemovePrewarmedArtifact) super.set(parameterName, value); + } + } /** * Updates the IAM policy for a given resource. * @@ -9806,6 +10233,241 @@ public Patch set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the PrewarmedArtifacts collection. + * + *The typical use is:
+ *
+ * {@code ArtifactRegistry artifactregistry = new ArtifactRegistry(...);}
+ * {@code ArtifactRegistry.PrewarmedArtifacts.List request = artifactregistry.prewarmedArtifacts().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public PrewarmedArtifacts prewarmedArtifacts() {
+ return new PrewarmedArtifacts();
+ }
+
+ /**
+ * The "prewarmedArtifacts" collection of methods.
+ */
+ public class PrewarmedArtifacts {
+
+ /**
+ * Lists all streamed artifacts in a repository.
+ *
+ * Create a request for the method "prewarmedArtifacts.list".
+ *
+ * This request holds the parameters needed by the artifactregistry server. After setting any
+ * optional parameters, call the {@link List#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The repository of the artifact to list. Format:
+ * projects/{project}/locations/{location}/repositories/{repository}
+ * @return the request
+ */
+ public List list(java.lang.String parent) throws java.io.IOException {
+ List result = new List(parent);
+ initialize(result);
+ return result;
+ }
+
+ public class List extends ArtifactRegistryRequest+ * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The repository of the artifact to list. Format: + * projects/{project}/locations/{location}/repositories/{repository} + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(ArtifactRegistry.this, "GET", REST_PATH, null, com.google.api.services.artifactregistry.v1.model.ListPrewarmedArtifactsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The repository of the artifact to list. Format: + * projects/{project}/locations/{location}/repositories/{repository} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The repository of the artifact to list. Format: + projects/{project}/locations/{location}/repositories/{repository} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The repository of the artifact to list. Format: + * projects/{project}/locations/{location}/repositories/{repository} + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter should only support The location of the prewarmed artifacts. multi- + * region is not supported for this field. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter should only support The location of the prewarmed artifacts. multi-region is not + supported for this field. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter should only support The location of the prewarmed artifacts. multi- + * region is not supported for this field. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of prewarmed artifacts to return. Maximum page size is + * 1,000. Default page size is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of prewarmed artifacts to return. Maximum page size is 1,000. Default + page size is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of prewarmed artifacts to return. Maximum page size is + * 1,000. Default page size is 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list request, if any. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list request, if any. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list request, if any. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } /** * An accessor for creating requests from the PythonPackages collection. * diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactRequest.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactRequest.java new file mode 100644 index 00000000000..7176662ba21 --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactRequest.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The request for checking an artifact for streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CheckPrewarmedArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String streamLocation; + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * @return value or {@code null} for none + */ + public java.lang.String getStreamLocation() { + return streamLocation; + } + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * @param streamLocation streamLocation or {@code null} for none + */ + public CheckPrewarmedArtifactRequest setStreamLocation(java.lang.String streamLocation) { + this.streamLocation = streamLocation; + return this; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @param tag tag or {@code null} for none + */ + public CheckPrewarmedArtifactRequest setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @param version version or {@code null} for none + */ + public CheckPrewarmedArtifactRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public CheckPrewarmedArtifactRequest set(String fieldName, Object value) { + return (CheckPrewarmedArtifactRequest) super.set(fieldName, value); + } + + @Override + public CheckPrewarmedArtifactRequest clone() { + return (CheckPrewarmedArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactResponse.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactResponse.java new file mode 100644 index 00000000000..39bc180b7e6 --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/CheckPrewarmedArtifactResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The response for checking an artifact for streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CheckPrewarmedArtifactResponse extends com.google.api.client.json.GenericJson { + + /** + * The prewarmed artifact that was checked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PrewarmedArtifact prewarmedArtifact; + + /** + * The prewarmed artifact that was checked. + * @return value or {@code null} for none + */ + public PrewarmedArtifact getPrewarmedArtifact() { + return prewarmedArtifact; + } + + /** + * The prewarmed artifact that was checked. + * @param prewarmedArtifact prewarmedArtifact or {@code null} for none + */ + public CheckPrewarmedArtifactResponse setPrewarmedArtifact(PrewarmedArtifact prewarmedArtifact) { + this.prewarmedArtifact = prewarmedArtifact; + return this; + } + + @Override + public CheckPrewarmedArtifactResponse set(String fieldName, Object value) { + return (CheckPrewarmedArtifactResponse) super.set(fieldName, value); + } + + @Override + public CheckPrewarmedArtifactResponse clone() { + return (CheckPrewarmedArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/ListPrewarmedArtifactsResponse.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/ListPrewarmedArtifactsResponse.java new file mode 100644 index 00000000000..5246bf0aed8 --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/ListPrewarmedArtifactsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The response for listing artifacts for streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListPrewarmedArtifactsResponse extends com.google.api.client.json.GenericJson { + + /** + * The token to retrieve the next page of prewarmed artifacts, or empty if there are no more + * streamings to return. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The prewarmed artifacts. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PrewarmArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. If true, old artifact will be evicted to make room for the new artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** + * Optional. The retention days of the prewarmed artifact. If not specified, the artifact will be + * cached for 3 days. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long retentionDays; + + /** + * Optional. The location to cache the artifact in. If not specified, the artifact will be cached + * in the same location as the artifact. multi-region is not supported for this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String streamLocation; + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. If true, old artifact will be evicted to make room for the new artifact. + * @return value or {@code null} for none + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If true, old artifact will be evicted to make room for the new artifact. + * @param force force or {@code null} for none + */ + public PrewarmArtifactRequest setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + /** + * Optional. The retention days of the prewarmed artifact. If not specified, the artifact will be + * cached for 3 days. + * @return value or {@code null} for none + */ + public java.lang.Long getRetentionDays() { + return retentionDays; + } + + /** + * Optional. The retention days of the prewarmed artifact. If not specified, the artifact will be + * cached for 3 days. + * @param retentionDays retentionDays or {@code null} for none + */ + public PrewarmArtifactRequest setRetentionDays(java.lang.Long retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Optional. The location to cache the artifact in. If not specified, the artifact will be cached + * in the same location as the artifact. multi-region is not supported for this field. + * @return value or {@code null} for none + */ + public java.lang.String getStreamLocation() { + return streamLocation; + } + + /** + * Optional. The location to cache the artifact in. If not specified, the artifact will be cached + * in the same location as the artifact. multi-region is not supported for this field. + * @param streamLocation streamLocation or {@code null} for none + */ + public PrewarmArtifactRequest setStreamLocation(java.lang.String streamLocation) { + this.streamLocation = streamLocation; + return this; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @param tag tag or {@code null} for none + */ + public PrewarmArtifactRequest setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @param version version or {@code null} for none + */ + public PrewarmArtifactRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public PrewarmArtifactRequest set(String fieldName, Object value) { + return (PrewarmArtifactRequest) super.set(fieldName, value); + } + + @Override + public PrewarmArtifactRequest clone() { + return (PrewarmArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmArtifactResponse.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmArtifactResponse.java new file mode 100644 index 00000000000..d886e9655d4 --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmArtifactResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The response for prewarming an artifact for streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PrewarmArtifactResponse extends com.google.api.client.json.GenericJson { + + /** + * The prewarmed artifact that was prewarmed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PrewarmedArtifact prewarmedArtifact; + + /** + * The prewarmed artifact that was prewarmed. + * @return value or {@code null} for none + */ + public PrewarmedArtifact getPrewarmedArtifact() { + return prewarmedArtifact; + } + + /** + * The prewarmed artifact that was prewarmed. + * @param prewarmedArtifact prewarmedArtifact or {@code null} for none + */ + public PrewarmArtifactResponse setPrewarmedArtifact(PrewarmedArtifact prewarmedArtifact) { + this.prewarmedArtifact = prewarmedArtifact; + return this; + } + + @Override + public PrewarmArtifactResponse set(String fieldName, Object value) { + return (PrewarmArtifactResponse) super.set(fieldName, value); + } + + @Override + public PrewarmArtifactResponse clone() { + return (PrewarmArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmedArtifact.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmedArtifact.java new file mode 100644 index 00000000000..edfc6cc6587 --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/PrewarmedArtifact.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * PrewarmedArtifact represents a streamed artifact. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PrewarmedArtifact extends com.google.api.client.json.GenericJson { + + /** + * The expiration time of the prewarmed artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expirationTime; + + /** + * The location of the prewarmed artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test- + * repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The expiration time of the prewarmed artifact. + * @return value or {@code null} for none + */ + public String getExpirationTime() { + return expirationTime; + } + + /** + * The expiration time of the prewarmed artifact. + * @param expirationTime expirationTime or {@code null} for none + */ + public PrewarmedArtifact setExpirationTime(String expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The location of the prewarmed artifact. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The location of the prewarmed artifact. + * @param location location or {@code null} for none + */ + public PrewarmedArtifact setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test- + * repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test- + * repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf + * @param uri uri or {@code null} for none + */ + public PrewarmedArtifact setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public PrewarmedArtifact set(String fieldName, Object value) { + return (PrewarmedArtifact) super.set(fieldName, value); + } + + @Override + public PrewarmedArtifact clone() { + return (PrewarmedArtifact) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactRequest.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactRequest.java new file mode 100644 index 00000000000..916da4a563c --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactRequest.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The request for removing an artifact from streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RemovePrewarmedArtifactRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String streamLocation; + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String version; + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * @return value or {@code null} for none + */ + public java.lang.String getStreamLocation() { + return streamLocation; + } + + /** + * Optional. The location of the prewarmed artifact. multi-region is not supported for this field. + * @param streamLocation streamLocation or {@code null} for none + */ + public RemovePrewarmedArtifactRequest setStreamLocation(java.lang.String streamLocation) { + this.streamLocation = streamLocation; + return this; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Optional. The artifact tag Format:projects/{project}/locations/{location}/repositories/{reposit + * ory}/packages/{package}/tags/{tag} + * @param tag tag or {@code null} for none + */ + public RemovePrewarmedArtifactRequest setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getVersion() { + return version; + } + + /** + * Optional. The artifact version Format: projects/{project}/locations/{location}/repositories/{re + * pository}/packages/{package}/versions/{version} + * @param version version or {@code null} for none + */ + public RemovePrewarmedArtifactRequest setVersion(java.lang.String version) { + this.version = version; + return this; + } + + @Override + public RemovePrewarmedArtifactRequest set(String fieldName, Object value) { + return (RemovePrewarmedArtifactRequest) super.set(fieldName, value); + } + + @Override + public RemovePrewarmedArtifactRequest clone() { + return (RemovePrewarmedArtifactRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactResponse.java b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactResponse.java new file mode 100644 index 00000000000..e6b1467dcdd --- /dev/null +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/RemovePrewarmedArtifactResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.artifactregistry.v1.model; + +/** + * The response for removing an artifact from streaming. + * + *This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Artifact Registry API. For a detailed explanation + * see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *
+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RemovePrewarmedArtifactResponse extends com.google.api.client.json.GenericJson { + + /** + * The prewarmed artifact that was removed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PrewarmedArtifact prewarmedArtifact; + + /** + * The prewarmed artifact that was removed. + * @return value or {@code null} for none + */ + public PrewarmedArtifact getPrewarmedArtifact() { + return prewarmedArtifact; + } + + /** + * The prewarmed artifact that was removed. + * @param prewarmedArtifact prewarmedArtifact or {@code null} for none + */ + public RemovePrewarmedArtifactResponse setPrewarmedArtifact(PrewarmedArtifact prewarmedArtifact) { + this.prewarmedArtifact = prewarmedArtifact; + return this; + } + + @Override + public RemovePrewarmedArtifactResponse set(String fieldName, Object value) { + return (RemovePrewarmedArtifactResponse) super.set(fieldName, value); + } + + @Override + public RemovePrewarmedArtifactResponse clone() { + return (RemovePrewarmedArtifactResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-artifactregistry/v1/2.0.0/pom.xml b/clients/google-api-services-artifactregistry/v1/2.0.0/pom.xml index 9c5936690c3..7ae5f4eb906 100644 --- a/clients/google-api-services-artifactregistry/v1/2.0.0/pom.xml +++ b/clients/google-api-services-artifactregistry/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@