code clean-up and api stream-lining #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
assigned to @th-schwarz
mentioned in commit
a221de47921. API Method Naming Consistency
zoneListAll()→zoneList()zoneInfo()→zoneGet()sldListAll()→recordList()sldInfo()→recordGet()2. Code Duplication Reduction
recordBatch()for cleaning and processing batch recordsdeleteRequest()andpatchRequest()type-safe by acceptingresponseTypeparameter3. Code Simplifications
RecordEntitymethods for clarity:getName()→getSld()methodPagingRequest.defaultPaging()with named constantDEFAULT_ALL_RECORDS_PAGE_SIZE4. Fluent API Implementation - NEW FEATURE
ZoneOperations- zone-level operationsRecordOperations- record-level operationsZoneOperationsImplandRecordOperationsImpl- public implementationszone(String zoneName)entry point toCfDnsClientclient.zone("example.com").record("api").create(...)5. Empty Result Exception Handling - BREAKING CHANGE
emptyResultThrowsExceptiondefault fromtruetofalseAbstractSingleResponse(checks for null result)Breaking Changes
@Deprecatedmethods where applicable)emptyResultThrowsExceptiondefault changed fromtruetofalseRecordEntity.getName()→ `getSld()mentioned in commit
acf2a2fc3bmentioned in commit
0f1248d08bmentioned in commit
34010a4e77mentioned in commit
b241d8cf09