Skip to content

Commit

Permalink
Attributes renamed and resorted!
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone committed Jul 12, 2024
1 parent 3d3021e commit 15df8a7
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
package it.pagopa.swclient.mil.azureservices.keyvault.keys.bean;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -29,40 +31,81 @@
@RegisterForReflection
@Getter
@Setter
@Accessors(chain = true)
@Accessors(chain = true, prefix = "del")
@ToString
@JsonInclude(value = Include.NON_NULL)
public class DeletedKeyBundle extends KeyBundle {
public class DeletedKeyBundle {
/**
* <p>
* The key management attributes.
* </p>
*/
@JsonProperty("attributes")
private KeyAttributes delAttributes;

/**
* <p>
* The time when the key was deleted, in UTC.
* </p>
*/
@JsonProperty("deletedDate")
private Long deletedDate;
private Long delDeletedDate;

/**
* <p>
* The Json web key.
* </p>
*/
@JsonProperty("key")
private JsonWebKey delKey;

/**
* <p>
* True if the key's lifetime is managed by key vault. If this is a key backing a certificate, then
* managed will be true.
* </p>
*/
@JsonProperty("managed")
private Boolean delManaged;

/**
* <p>
* The url of the recovery object, used to identify and recover the deleted key.
* </p>
*/
@JsonProperty("recoveryId")
private String recoveryId;
private String delRecoveryId;

/**
* <p>
* The policy rules under which the key can be exported.
* </p>
*/
@JsonProperty("release_policy")
private KeyReleasePolicy delReleasePolicy;

/**
* <p>
* The time when the key is scheduled to be purged, in UTC.
* </p>
*/
@JsonProperty("scheduledPurgeDate")
private Long scheduledPurgeDate;
private Long delScheduledPurgeDate;

/**
* <p>
* Application specific metadata in the form of key-value pairs.
* </p>
*/
@JsonProperty("tags")
private Map<String, String> delTags;

/**
* <p>
* Default constructor.
* </p>
*/
public DeletedKeyBundle() {
super();
// Default constructor.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import io.quarkus.test.InjectMock;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.mockito.InjectSpy;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.helpers.test.UniAssertSubscriber;
import it.pagopa.swclient.mil.azureservices.keyvault.keys.bean.DeletedKeyBundle;
Expand Down

0 comments on commit 15df8a7

Please sign in to comment.