Releases: kislerdm/neon-sdk-go
Releases · kislerdm/neon-sdk-go
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
v0.4.8
v0.4.7
v0.4.6
v0.4.5
Changed
- [BREAKING] The signature of the method
VerifyUserPassword
includes the password sent for verification.
Full Changelog: v0.4.4...v0.4.5
v0.4.4
Added
- [BREAKING] Added the
search
argument to the signature of the methodsListProjects
andListSharedProjects
. It allows to filter the search results by the project name or ID (see more). - Added the methods
GetCurrentUserAuthInfo
andVerifyUserPassword
to query the user identity.
Fixed
- Trailing "?"-sign for empty request queries.
Full Changelog: v0.4.3...v0.4.4
v0.4.3
Added
- Added support to manage the project's permissions:
- List permissions:
ListProjectPermissions
; - Grant project's permissions to the user:
GrantPermissionToProject
; - Revoke project's permissions from the user:
RevokePermissionFromProject
.
- List permissions:
Changed
- [BREAKING] Changed the type of the attribute
Ips
in the structAllowedIps
.
Full Changelog: v0.4.2...v0.4.3