Skip to content

Ab#82568#30

Merged
spbsoluble merged 3 commits intomainfrom
ab#82568
Mar 31, 2026
Merged

Ab#82568#30
spbsoluble merged 3 commits intomainfrom
ab#82568

Conversation

@spbsoluble
Copy link
Copy Markdown
Contributor

@spbsoluble spbsoluble commented Mar 31, 2026

Summary

  • feat(client): Update NewAPIClientWithAuth() to accept an AuthConfig interface for VCR-based integration testing
  • feat(v24): Add certificate cleanup fields to template models — new CertificateCleanupTimeUnits enum and cleanup-related fields on TemplateRetrievalResponse and TemplateUpdateRequest
  • feat(v24/v25): Add Manageability field to TemplateRetrievalResponse in both v24 and v25

Changes

File Description
v24/client.go Expose NewAPIClientWithAuth() for test injection
v24/api/keyfactor/v1/client.go Generated client updates (v1)
v24/api/keyfactor/v2/client.go Generated client updates (v2)
v24/api/keyfactor/v1/model_templates_template_retrieval_response.go Add Manageability + cleanup fields
v24/api/keyfactor/v1/model_templates_template_update_request.go Add certificate cleanup fields
v24/api/keyfactor/v1/model_..._certificate_cleanup_time_units.go New enum type
v24/api/keyfactor/v1/model_..._key_retention_policy.go Enum expansion
v25/api/keyfactor/v1/model_templates_template_retrieval_response.go Add Manageability field

Add CertificateCleanupEnabled, TimeAfterExpiration, TimeAfterExpirationUnits,
and DeleteWithArchivedKey to TemplatesTemplateRetrievalResponse and
TemplatesTemplateUpdateRequest. Add CSSCMSDataModelEnumsCertificateCleanupTimeUnits
enum (0=Days, 1=Weeks, 2=Months). Guard nullable field getters against nil
pointer dereference when JSON null is present.
Add NullableInt32 Manageability field with getter/setter and ToMap entry
to TemplatesTemplateRetrievalResponse in both v24 and v25 SDK packages.
Field is read-only (v25+) and was present in JSON responses but missing
from the Go struct, causing it to always deserialize as zero.
@spbsoluble spbsoluble merged commit af6340b into main Mar 31, 2026
59 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant