-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[AutoPR azure-security-keyvault-secrets]-generated-from-SDK Generation - Java-6031743 #48467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
375afee
89d8088
ea35114
983ec2f
bdee4ad
5ec206a
0d031eb
5d7bb2e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
| // Code generated by Microsoft (R) TypeSpec Code Generator. | ||
|
|
||
| package com.azure.security.keyvault.secrets.implementation.models; | ||
|
|
||
| import com.azure.core.annotation.Generated; | ||
| import com.azure.core.util.ExpandableStringEnum; | ||
| import java.util.Collection; | ||
|
|
||
| /** | ||
| * The media type (MIME type). | ||
| */ | ||
| public final class ContentType extends ExpandableStringEnum<ContentType> { | ||
| /** | ||
| * The PKCS#12 file format. | ||
| */ | ||
| @Generated | ||
| public static final ContentType PFX = fromString("application/x-pkcs12"); | ||
|
|
||
| /** | ||
| * The PEM file format. | ||
| */ | ||
| @Generated | ||
| public static final ContentType PEM = fromString("application/x-pem-file"); | ||
|
|
||
| /** | ||
| * Creates a new instance of ContentType value. | ||
| * | ||
| * @deprecated Use the {@link #fromString(String)} factory method. | ||
| */ | ||
| @Generated | ||
| @Deprecated | ||
| public ContentType() { | ||
| } | ||
|
|
||
| /** | ||
| * Creates or finds a ContentType from its string representation. | ||
| * | ||
| * @param name a name to look for. | ||
| * @return the corresponding ContentType. | ||
| */ | ||
| @Generated | ||
| public static ContentType fromString(String name) { | ||
| return fromString(name, ContentType.class); | ||
| } | ||
|
|
||
| /** | ||
| * Gets known ContentType values. | ||
| * | ||
| * @return known ContentType values. | ||
| */ | ||
| @Generated | ||
| public static Collection<ContentType> values() { | ||
| return values(ContentType.class); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,13 @@ public final class DeletedSecretBundle implements JsonSerializable<DeletedSecret | |
| @Generated | ||
| private Boolean managed; | ||
|
|
||
| /* | ||
| * The version of the previous certificate, if applicable. Applies only to certificates created after June 1, 2025. | ||
| * Certificates created before this date are not retroactively updated. | ||
| */ | ||
| @Generated | ||
| private String previousVersion; | ||
|
|
||
|
Comment on lines
+70
to
+75
|
||
| /* | ||
| * The url of the recovery object, used to identify and recover the deleted secret. | ||
| */ | ||
|
|
@@ -163,6 +170,17 @@ public Boolean isManaged() { | |
| return this.managed; | ||
| } | ||
|
|
||
| /** | ||
| * Get the previousVersion property: The version of the previous certificate, if applicable. Applies only to | ||
| * certificates created after June 1, 2025. Certificates created before this date are not retroactively updated. | ||
| * | ||
| * @return the previousVersion value. | ||
| */ | ||
| @Generated | ||
| public String getPreviousVersion() { | ||
| return this.previousVersion; | ||
| } | ||
|
|
||
| /** | ||
| * Get the recoveryId property: The url of the recovery object, used to identify and recover the deleted secret. | ||
| * | ||
|
|
@@ -211,6 +229,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { | |
| jsonWriter.writeStringField("contentType", this.contentType); | ||
| jsonWriter.writeJsonField("attributes", this.attributes); | ||
| jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); | ||
| jsonWriter.writeStringField("previousVersion", this.previousVersion); | ||
| jsonWriter.writeStringField("recoveryId", this.recoveryId); | ||
| return jsonWriter.writeEndObject(); | ||
| } | ||
|
|
@@ -246,6 +265,8 @@ public static DeletedSecretBundle fromJson(JsonReader jsonReader) throws IOExcep | |
| deserializedDeletedSecretBundle.kid = reader.getString(); | ||
| } else if ("managed".equals(fieldName)) { | ||
| deserializedDeletedSecretBundle.managed = reader.getNullable(JsonReader::getBoolean); | ||
| } else if ("previousVersion".equals(fieldName)) { | ||
| deserializedDeletedSecretBundle.previousVersion = reader.getString(); | ||
| } else if ("recoveryId".equals(fieldName)) { | ||
| deserializedDeletedSecretBundle.recoveryId = reader.getString(); | ||
| } else if ("scheduledPurgeDate".equals(fieldName)) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -62,6 +62,13 @@ public final class SecretBundle implements JsonSerializable<SecretBundle> { | |||||||||
| @Generated | ||||||||||
| private Boolean managed; | ||||||||||
|
|
||||||||||
| /* | ||||||||||
| * The version of the previous certificate, if applicable. Applies only to certificates created after June 1, 2025. | ||||||||||
| * Certificates created before this date are not retroactively updated. | ||||||||||
|
Comment on lines
+66
to
+67
|
||||||||||
| * The version of the previous certificate, if applicable. Applies only to certificates created after June 1, 2025. | |
| * Certificates created before this date are not retroactively updated. | |
| * The version identifier of the previous secret, if applicable. Applies only to secrets created after June 1, 2025. | |
| * Secrets created before this date are not retroactively updated. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| directory: specification/keyvault/Security.KeyVault.Secrets | ||
| commit: 396ab529763b7195ab089f58e2eefb011e1b290d | ||
| directory: specification/keyvault/data-plane/Secrets | ||
| commit: f6bd06be22baf3a18504ffef0f590230850953e5 | ||
| repo: Azure/azure-rest-api-specs | ||
| cleanup: true | ||
| additionalDirectories: | ||
| - specification/keyvault/Security.KeyVault.Common/ | ||
| - specification/keyvault/data-plane/Secrets/common | ||
|
Comment on lines
+1
to
+5
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The top CHANGELOG entry was changed from "(Unreleased)" to a specific date. In this repo, Key Vault packages keep the next version marked as "Unreleased" until the release is finalized (see
azure-security-keyvault-keys/CHANGELOG.md). Also, this section removed the standard empty subsections (Breaking Changes/Other Changes). Consider reverting to the standard format and keeping the entry as Unreleased.