Skip to content

Releases: kislerdm/neon-sdk-go

v0.6.2

08 Oct 11:13
a3647c2
Compare
Choose a tag to compare

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

01 Oct 07:01
57004cd
Compare
Choose a tag to compare

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 map ProjectsApplicationsMapResponse which contains all applications available in the project.

Deprecated

  • Deprecated Login field in the types CurrentUserAuthAccount and CurrentUserInfoResponse.

Full Changelog: v0.6.0...v0.6.1

v0.6.0

28 Sep 21:55
2ace220
Compare
Choose a tag to compare

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 struct Branch 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

24 Jun 22:12
7dd0055
Compare
Choose a tag to compare

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 method GetCurrentUserInfo.
    • The type BranchState as attributes of the response of the method GetProjectBranch.
    • The type ConsumptionHistoryGranularity as the argument of the method GetConsumptionHistoryPerAccount and GetConsumptionHistoryPerProject.
    • The types EndpointPoolerMode, EndpointState as the attributes of the struct Endpoint, which defines the
      response of the method GetProjectEndpoint.
    • 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 struct CurrentUserAuthAccount which defines the response
      of the method GetCurrentUserInfo.
    • The types OperationAction and OperationStatus as the attributes of the struct Operation which defines the
      response of several endpoints which include the operations.
    • The type Provisioner which defines the Neon compute provisioner's type.
  • Added the method GetProjectBranchSchema to retrieve the database schema, see details here.
  • Added the methods to retrieve the consumption metrics:
    • GetConsumptionHistoryPerAccount allows to read the account's consumption history, see details here.
    • GetConsumptionHistoryPerProject allows to read the consumption history for a list of projects, see details here.
  • 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 argument projectIDs.

Deprecated

  • The method SetPrimaryProjectBranch is deprecated, please use the method SetDefaultProjectBranch instead.
  • The label "primary" branch and the attributes Primary is deprecated for the label "default" and the respective
    attribute Default. See the struct Branch for example.
  • The attribute ProxyHost of the struct Endpoint is deprecated, please use the attribute Host instead.
  • The attribute CpuUsedSec of the structs Project and ProjectListItem is deprecated,
    please use the attribute ComputeTimeSeconds instead.
  • The attribute QuotaResetAt of the structs Project and ProjectListItem is deprecated,
    please use the attribute ConsumptionPeriodEnd instead.

Full Changelog: v0.4.9...v0.5.0

v0.4.9

13 Apr 10:13
d8302fa
Compare
Choose a tag to compare

Added

  • Added the filtering argument orgID to the method ListProjects 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 struct Endpoint to reflect the version of the compute resources.

Changed

  • Changed the type of the HistoryRetentionSeconds to int32 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

21 Mar 23:29
b030423
Compare
Choose a tag to compare

Added

  • Added the method GetConnectionURI to retrieve the connection URI for the given role and database, see details.
  • The branch can be set as protected at creation, or update using the attribute Protected.

Full Changelog: v0.4.7...v0.4.8

v0.4.7

07 Mar 19:35
deb2900
Compare
Choose a tag to compare

Added

  • Added the RestoreProjectBranch method to restore the branch to a specified state: details.

Full Changelog: v0.4.6...v0.4.7

v0.4.6

26 Feb 10:46
d85ceeb
Compare
Choose a tag to compare

Removed

  • [BREAKING] Removed the method VerifyUserPassword.

Full Changelog: v0.4.5...v0.4.6

v0.4.5

22 Feb 09:39
095c2a7
Compare
Choose a tag to compare

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

18 Feb 12:12
41c386e
Compare
Choose a tag to compare

Added

  • [BREAKING] Added the search argument to the signature of the methods ListProjects and ListSharedProjects. It allows to filter the search results by the project name or ID (see more).
  • Added the methods GetCurrentUserAuthInfo and VerifyUserPassword to query the user identity.

Fixed

  • Trailing "?"-sign for empty request queries.

Full Changelog: v0.4.3...v0.4.4