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