-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: regenerate artifactregistry client (#23528)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
- Loading branch information
1 parent
59ccf84
commit af9c28f
Showing
12 changed files
with
5,468 additions
and
2,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7,316 changes: 4,629 additions & 2,687 deletions
7,316
...tifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/ArtifactRegistry.java
Large diffs are not rendered by default.
Oops, something went wrong.
281 changes: 281 additions & 0 deletions
281
...tifactregistry/v1/2.0.0/com/google/api/services/artifactregistry/v1/model/Attachment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.