Releases: kislerdm/neon-sdk-go
v0.11.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-12-08 10:35:00 GMT.
Added
- Added the attribute
Archived
to the typeBranchCreateRequestBranch
to create archived branches.
Removed
- [BREAKING] Removed the attribute
ProtectedBranchOnly
from the typeAllowedIps
.
New Contributors
- @danieltprice made their first contribution in #91
Full Changelog: v0.10.0...v0.11.0
v0.10.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-11-21 00:12:18 GMT.
Added
- Added the
MaintenanceWindow
attribute of theProjectSettingsData
type to configure the Neon project's
maintenance window.
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-11-09 11:12:00 GMT.
Added
-
Added the methods to manipulate JWKS for the project:
AddProjectJWKS
: adds the JWKS URL to the project.GetProjectJWKS
: retrieve all JWKS URLs configured for the project.DeleteProjectJWKS
: deletes the JWKS URL from the project.
-
Added the method
GetOrganization
to read the organization's info -
Added the methods to manage the organization's membership invitations:
GetOrganizationInvitations
: retrieves the memberships invitations for the organization.GetOrganizationMember
: reads the info about the organization's members.GetOrganizationMembers
: retrieves the info about all organization's members.
-
Added Vercel as the identity provider's enum value.
Changed
- [BREAKING] Changed the type of the attributes
Primary
in theBranch
struct to the pointer to bool from bool.
Full Changelog: v0.8.0...v0.9.0
v0.8.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-10-28 22:27:00 GMT.
Added
- [BREAKING] Added the argument
search
to the methodListProjectBranches
to list branches by name or id. A partial name or id values may be specified to filter results. - Added the property
BillingAccount
of the typeCurrentUserInfoResponse
: added theState
to define the billing account's state. - Added the attribute
CreatedBy
to the typeApiKeysListResponseItem
to define the user who created the API key. - Added the endpoint
GetActiveRegions
to list active regions to provision databases.
Full Changelog: v0.7.0...v0.8.0
v0.7.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-10-20 11:15:00 GMT.
Added
-
Added the attributes to reflect when and who created, or revoked API keys:
- Added
CreatedBy
toApiKeyCreateResponse
andApiKeysListResponseItem
; - Added
CreatedAt
andCreatedBy
toApiKeyRevokeResponse
.
- Added
-
Added the attribute
StateChangedAt
to the typeBranch
to reflect when the "current_state" began.
Removed
- [BREAKING] Removed the method to list projects consumption
ListProjectsConsumption
.
Full Changelog: v0.6.2...v0.7.0
v0.6.2
What's Changed
The release incorporates the up-to-date API contract as of 2024-10-08 00:11:00 GMT.
Added
- Added the mapping of the enum value "archived" to the type
BranchState
. - Added the mapping of the enum values "timeline_archive" and "timeline_unarchive" to the type
OperationAction
.
Full Changelog: v0.6.1...v0.6.2
v0.6.1
What's Changed
The release incorporates the up-to-date API contract as of 2024-10-01 06:44:00 GMT.
Added
- Added "azure_mp" as a
BillingPaymentMethod
enum value.
Changed
- Changed the response type of the method
ListProjects
,ListProjectsRespObj
. It includes the mapProjectsApplicationsMapResponse
which contains all applications available in the project.
Deprecated
- Deprecated
Login
field in the typesCurrentUserAuthAccount
andCurrentUserInfoResponse
.
Full Changelog: v0.6.0...v0.6.1
v0.6.0
What's Changed
The release incorporates the up-to-date API contract as of 2024-09-28 21:53:00 GMT.
Added
- Added the method
TransferProjectsFromUserToOrg
to migrate personal projects to organisation. - Added the payment method attribute to the struct
BillingAccount
. - Added
Business
subscription type's value. - Added the attribute
CreatedBy
to the structBranch
to indicate who created the branch.
Changed
- [BREAKING] Change the signatures of the methods:
ListProjectBranches
;CreateProjectBranch
;GetProjectBranch
;GetProjectBranchSchema
.
Full Changelog: v0.5.0...v0.6.0
v0.5.0
The release incorporates the up-to-date API contract as of 2024-06-24 22:03:00 GMT.
Added
- Added support of the following ENUMs as type aliases:
- The type
BillingSubscriptionType
as the attribute of the response of the methodGetCurrentUserInfo
. - The type
BranchState
as attributes of the response of the methodGetProjectBranch
. - The type
ConsumptionHistoryGranularity
as the argument of the methodGetConsumptionHistoryPerAccount
andGetConsumptionHistoryPerProject
. - The types
EndpointPoolerMode
,EndpointState
as the attributes of the structEndpoint
, which defines the
response of the methodGetProjectEndpoint
. - The type
EndpointType
as the attribute which defines the endpoint's type to create an endpoint, or define the
options of the branch's endpoints. - The type
IdentityProviderId
as the attribute of the structCurrentUserAuthAccount
which defines the response
of the methodGetCurrentUserInfo
. - The types
OperationAction
andOperationStatus
as the attributes of the structOperation
which defines the
response of several endpoints which include the operations. - The type
Provisioner
which defines the Neon compute provisioner's type.
- The type
- Added the method
GetProjectBranchSchema
to retrieve the database schema, see details here. - Added the methods to retrieve the consumption metrics:
- Added the method
GetCurrentUserOrganizations
to read all organization which a given user belongs to. - Added support of the organization ID (
orgID
argument) when using the following methods:ListProjectsConsumption
, see details here.
- Added the name, the address and the tax information to the billing details of the account:
BillingAccount
struct.
Changed
- All arguments which end with the suffices Id/Ids, Url/Urls, Uri/Uris will follow the Go convention. For example, the query parameter
project_ids
will correspond to the method's argumentprojectIDs
.
Deprecated
- The method
SetPrimaryProjectBranch
is deprecated, please use the methodSetDefaultProjectBranch
instead. - The label "primary" branch and the attributes
Primary
is deprecated for the label "default" and the respective
attributeDefault
. See the structBranch
for example. - The attribute
ProxyHost
of the structEndpoint
is deprecated, please use the attributeHost
instead. - The attribute
CpuUsedSec
of the structsProject
andProjectListItem
is deprecated,
please use the attributeComputeTimeSeconds
instead. - The attribute
QuotaResetAt
of the structsProject
andProjectListItem
is deprecated,
please use the attributeConsumptionPeriodEnd
instead.
Full Changelog: v0.4.9...v0.5.0
v0.4.9
Added
- Added the filtering argument
orgID
to the methodListProjects
to enhance the projects listing functionality. - Added the method
RestartProjectEndpoint
to restart the project's endpoint. Find details here. - Added the filter
ProtectedBranchesOnly
provision the list of allowed IP addresses only for the protected branches. - Added the field
ComputeReleaseVersion
to the structEndpoint
to reflect the version of the compute resources.
Changed
- Changed the type of the
HistoryRetentionSeconds
toint32
attribute.
Fixed
- Fixed the method
GetConnectionURI
by correcting the logic of building the request query.
Full Changelog: v0.4.8...v0.4.9