Skip to content

Commit

Permalink
chore: regenerate artifactregistry client (#23528)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-code-bot authored Sep 29, 2024
1 parent 59ccf84 commit af9c28f
Show file tree
Hide file tree
Showing 12 changed files with 5,468 additions and 2,693 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-artifactregistry</artifactId>
<version>v1-rev20240903-2.0.0</version>
<version>v1-rev20240923-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-artifactregistry:v1-rev20240903-2.0.0'
implementation 'com.google.apis:google-api-services-artifactregistry:v1-rev20240923-2.0.0'
}
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
/*
* 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;

/**
* An Attachment refers to additional metadata that can be attached to artifacts in
* ArtifactRegistry. An attachment consists of one or more files.
*
* <p> 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:
* <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>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class Attachment extends com.google.api.client.json.GenericJson {

/**
* Optional. User annotations. These attributes can only be set and used by the user, and not by
* Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format
* and size limitations. Client specified annotations.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.String> annotations;

/**
* The namespace this attachment belongs to. E.g. If an Attachment is created by artifact
* analysis, namespace is set to artifactanalysis.googleapis.com.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String attachmentNamespace;

/**
* Output only. The time when the attachment was created.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String createTime;

/**
* Required. The files that blong to this Attachment. If the file ID part contains slashes, they
* are escaped. E.g. "projects/p1/locations/us-central1/repositories/repo1/files/sha:".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.lang.String> files;

/**
* The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String name;

/**
* Output only. The name of the OCI version that this attachment created. Only populated for
* Docker attachments. E.g. "projects/p1/locations/us-
* central1/repositories/repo1/packages/p1/versions/v1".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String ociVersionName;

/**
* Required. The target the attachment is for, can be a Version, Package or Repository. E.g.
* "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String target;

/**
* Type of Attachment. E.g. application/vnd.spdx+jsonn
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String type;

/**
* Output only. The time when the attachment was last updated.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String updateTime;

/**
* Optional. User annotations. These attributes can only be set and used by the user, and not by
* Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format
* and size limitations. Client specified annotations.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getAnnotations() {
return annotations;
}

/**
* Optional. User annotations. These attributes can only be set and used by the user, and not by
* Artifact Registry. See https://google.aip.dev/128#annotations for more details such as format
* and size limitations. Client specified annotations.
* @param annotations annotations or {@code null} for none
*/
public Attachment setAnnotations(java.util.Map<String, java.lang.String> annotations) {
this.annotations = annotations;
return this;
}

/**
* The namespace this attachment belongs to. E.g. If an Attachment is created by artifact
* analysis, namespace is set to artifactanalysis.googleapis.com.
* @return value or {@code null} for none
*/
public java.lang.String getAttachmentNamespace() {
return attachmentNamespace;
}

/**
* The namespace this attachment belongs to. E.g. If an Attachment is created by artifact
* analysis, namespace is set to artifactanalysis.googleapis.com.
* @param attachmentNamespace attachmentNamespace or {@code null} for none
*/
public Attachment setAttachmentNamespace(java.lang.String attachmentNamespace) {
this.attachmentNamespace = attachmentNamespace;
return this;
}

/**
* Output only. The time when the attachment was created.
* @return value or {@code null} for none
*/
public String getCreateTime() {
return createTime;
}

/**
* Output only. The time when the attachment was created.
* @param createTime createTime or {@code null} for none
*/
public Attachment setCreateTime(String createTime) {
this.createTime = createTime;
return this;
}

/**
* Required. The files that blong to this Attachment. If the file ID part contains slashes, they
* are escaped. E.g. "projects/p1/locations/us-central1/repositories/repo1/files/sha:".
* @return value or {@code null} for none
*/
public java.util.List<java.lang.String> getFiles() {
return files;
}

/**
* Required. The files that blong to this Attachment. If the file ID part contains slashes, they
* are escaped. E.g. "projects/p1/locations/us-central1/repositories/repo1/files/sha:".
* @param files files or {@code null} for none
*/
public Attachment setFiles(java.util.List<java.lang.String> files) {
this.files = files;
return this;
}

/**
* The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
* @return value or {@code null} for none
*/
public java.lang.String getName() {
return name;
}

/**
* The name of the attachment. E.g. "projects/p1/locations/us/repositories/repo/attachments/sbom".
* @param name name or {@code null} for none
*/
public Attachment setName(java.lang.String name) {
this.name = name;
return this;
}

/**
* Output only. The name of the OCI version that this attachment created. Only populated for
* Docker attachments. E.g. "projects/p1/locations/us-
* central1/repositories/repo1/packages/p1/versions/v1".
* @return value or {@code null} for none
*/
public java.lang.String getOciVersionName() {
return ociVersionName;
}

/**
* Output only. The name of the OCI version that this attachment created. Only populated for
* Docker attachments. E.g. "projects/p1/locations/us-
* central1/repositories/repo1/packages/p1/versions/v1".
* @param ociVersionName ociVersionName or {@code null} for none
*/
public Attachment setOciVersionName(java.lang.String ociVersionName) {
this.ociVersionName = ociVersionName;
return this;
}

/**
* Required. The target the attachment is for, can be a Version, Package or Repository. E.g.
* "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
* @return value or {@code null} for none
*/
public java.lang.String getTarget() {
return target;
}

/**
* Required. The target the attachment is for, can be a Version, Package or Repository. E.g.
* "projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1".
* @param target target or {@code null} for none
*/
public Attachment setTarget(java.lang.String target) {
this.target = target;
return this;
}

/**
* Type of Attachment. E.g. application/vnd.spdx+jsonn
* @return value or {@code null} for none
*/
public java.lang.String getType() {
return type;
}

/**
* Type of Attachment. E.g. application/vnd.spdx+jsonn
* @param type type or {@code null} for none
*/
public Attachment setType(java.lang.String type) {
this.type = type;
return this;
}

/**
* Output only. The time when the attachment was last updated.
* @return value or {@code null} for none
*/
public String getUpdateTime() {
return updateTime;
}

/**
* Output only. The time when the attachment was last updated.
* @param updateTime updateTime or {@code null} for none
*/
public Attachment setUpdateTime(String updateTime) {
this.updateTime = updateTime;
return this;
}

@Override
public Attachment set(String fieldName, Object value) {
return (Attachment) super.set(fieldName, value);
}

@Override
public Attachment clone() {
return (Attachment) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
@SuppressWarnings("javadoc")
public final class GoogleDevtoolsArtifactregistryV1File extends com.google.api.client.json.GenericJson {

/**
* Optional. Client specified annotations.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.Map<String, java.lang.String> annotations;

/**
* Output only. The time when the File was created.
* The value may be {@code null}.
Expand Down Expand Up @@ -82,6 +89,23 @@ public final class GoogleDevtoolsArtifactregistryV1File extends com.google.api.c
@com.google.api.client.util.Key
private String updateTime;

/**
* Optional. Client specified annotations.
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getAnnotations() {
return annotations;
}

/**
* Optional. Client specified annotations.
* @param annotations annotations or {@code null} for none
*/
public GoogleDevtoolsArtifactregistryV1File setAnnotations(java.util.Map<String, java.lang.String> annotations) {
this.annotations = annotations;
return this;
}

/**
* Output only. The time when the File was created.
* @return value or {@code null} for none
Expand Down
Loading

0 comments on commit af9c28f

Please sign in to comment.