From e8923eb1069d722dea1cb7b2c56834295b13bf3f Mon Sep 17 00:00:00 2001 From: GitHub Date: Mon, 9 Feb 2026 03:50:57 +0000 Subject: [PATCH] chore(update): bump openapi schema (2026-02-09) --- handler/account/account.go | 2 +- handler/billinggroup/billinggroup.go | 4 +-- .../organizationbilling.go | 29 ++++++++----------- handler/project/project.go | 6 ++-- handler/projectbilling/projectbilling.go | 2 +- handler/service/service.go | 10 ++++++- 6 files changed, 28 insertions(+), 25 deletions(-) diff --git a/handler/account/account.go b/handler/account/account.go index 6184e8c..7d2f07a 100644 --- a/handler/account/account.go +++ b/handler/account/account.go @@ -46,7 +46,7 @@ type Handler interface { // https://api.aiven.io/doc/#tag/Account/operation/AccountList AccountList(ctx context.Context) ([]AccountOut, error) - // AccountMove move an existing organization unitself + // AccountMove move an existing organization unit // PUT /v1/account/{account_id}/parent_account // https://api.aiven.io/doc/#tag/Account/operation/AccountMove AccountMove(ctx context.Context, accountId string, in *AccountMoveIn) (*AccountMoveOut, error) diff --git a/handler/billinggroup/billinggroup.go b/handler/billinggroup/billinggroup.go index 8672160..deb44ba 100644 --- a/handler/billinggroup/billinggroup.go +++ b/handler/billinggroup/billinggroup.go @@ -646,8 +646,8 @@ const ( ServiceTypeKafkaConnect ServiceType = "kafka_connect" ServiceTypeKafkaMirrormaker ServiceType = "kafka_mirrormaker" ServiceTypeMysql ServiceType = "mysql" + ServiceTypeNomadclient ServiceType = "nomadclient" ServiceTypeOpensearch ServiceType = "opensearch" - ServiceTypeParca ServiceType = "parca" ServiceTypePg ServiceType = "pg" ServiceTypeSparkpool ServiceType = "sparkpool" ServiceTypeStresstester ServiceType = "stresstester" @@ -665,7 +665,7 @@ const ( ) func ServiceTypeChoices() []string { - return []string{"alertmanager", "alloydbomni", "application", "cassandra", "clickhouse", "datahub", "dragonfly", "elasticsearch", "flink", "grafana", "kafka", "kafka_connect", "kafka_mirrormaker", "mysql", "opensearch", "parca", "pg", "sparkpool", "stresstester", "sw", "thanos", "thanoscompactor", "thanosparquet", "thanosquery", "thanosreceiver", "thanosruler", "thanosstore", "valkey", "vector", "vmalert"} + return []string{"alertmanager", "alloydbomni", "application", "cassandra", "clickhouse", "datahub", "dragonfly", "elasticsearch", "flink", "grafana", "kafka", "kafka_connect", "kafka_mirrormaker", "mysql", "nomadclient", "opensearch", "pg", "sparkpool", "stresstester", "sw", "thanos", "thanoscompactor", "thanosparquet", "thanosquery", "thanosreceiver", "thanosruler", "thanosstore", "valkey", "vector", "vmalert"} } // billingGroupCreateOut BillingGroupCreateResponse diff --git a/handler/organizationbilling/organizationbilling.go b/handler/organizationbilling/organizationbilling.go index cc7b345..97e19fd 100644 --- a/handler/organizationbilling/organizationbilling.go +++ b/handler/organizationbilling/organizationbilling.go @@ -134,7 +134,6 @@ type BillingGroupOut struct { CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text OrganizationId string `json:"organization_id"` // Organization ID PaymentMethod *PaymentMethodOut `json:"payment_method,omitempty"` // Payment method - PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID ShippingAddressId string `json:"shipping_address_id"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -166,8 +165,7 @@ type OrganizationBillingGroupCreateIn struct { BillingEmails []BillingEmailIn `json:"billing_emails"` // List of billing contact emails BillingGroupName string `json:"billing_group_name"` // Billing Group Name CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text - PaymentMethod *PaymentMethodIn `json:"payment_method,omitempty"` // Payment method - PaymentMethodId string `json:"payment_method_id"` // Payment method ID + PaymentMethod PaymentMethodIn `json:"payment_method"` // Payment method ShippingAddressId string `json:"shipping_address_id"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -183,7 +181,6 @@ type OrganizationBillingGroupCreateOut struct { CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text OrganizationId string `json:"organization_id"` // Organization ID PaymentMethod *PaymentMethodOut `json:"payment_method,omitempty"` // Payment method - PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID ShippingAddressId string `json:"shipping_address_id"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -199,7 +196,6 @@ type OrganizationBillingGroupGetOut struct { CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text OrganizationId string `json:"organization_id"` // Organization ID PaymentMethod *PaymentMethodOut `json:"payment_method,omitempty"` // Payment method - PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID ShippingAddressId string `json:"shipping_address_id"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -211,7 +207,7 @@ type OrganizationBillingGroupUpdateIn struct { BillingEmails *[]BillingEmailIn `json:"billing_emails,omitempty"` // List of billing contact emails BillingGroupName *string `json:"billing_group_name,omitempty"` // Billing group name CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text - PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID + PaymentMethod *PaymentMethodIn `json:"payment_method,omitempty"` // Payment method ShippingAddressId *string `json:"shipping_address_id,omitempty"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -227,7 +223,6 @@ type OrganizationBillingGroupUpdateOut struct { CustomInvoiceText *string `json:"custom_invoice_text,omitempty"` // Extra billing text OrganizationId string `json:"organization_id"` // Organization ID PaymentMethod *PaymentMethodOut `json:"payment_method,omitempty"` // Payment method - PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID ShippingAddressId string `json:"shipping_address_id"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID } @@ -246,19 +241,19 @@ type PaymentMethodOut struct { type PaymentMethodType string const ( - PaymentMethodTypeAwsSubscription PaymentMethodType = "aws_subscription" - PaymentMethodTypeAzureSubscription PaymentMethodType = "azure_subscription" - PaymentMethodTypeBankTransfer PaymentMethodType = "bank_transfer" - PaymentMethodTypeCreditCard PaymentMethodType = "credit_card" - PaymentMethodTypeDisabled PaymentMethodType = "disabled" - PaymentMethodTypeGcpSubscription PaymentMethodType = "gcp_subscription" - PaymentMethodTypeMarketplaceSubscription PaymentMethodType = "marketplace_subscription" - PaymentMethodTypeNoPaymentExpected PaymentMethodType = "no_payment_expected" - PaymentMethodTypePartner PaymentMethodType = "partner" + PaymentMethodTypeAwsSubscription PaymentMethodType = "aws_subscription" + PaymentMethodTypeAzureSubscription PaymentMethodType = "azure_subscription" + PaymentMethodTypeBankTransfer PaymentMethodType = "bank_transfer" + PaymentMethodTypeCreditCard PaymentMethodType = "credit_card" + PaymentMethodTypeDisabled PaymentMethodType = "disabled" + PaymentMethodTypeGcpSubscription PaymentMethodType = "gcp_subscription" + PaymentMethodTypeNoPaymentExpected PaymentMethodType = "no_payment_expected" + PaymentMethodTypeNone PaymentMethodType = "none" + PaymentMethodTypePartner PaymentMethodType = "partner" ) func PaymentMethodTypeChoices() []string { - return []string{"aws_subscription", "azure_subscription", "bank_transfer", "credit_card", "disabled", "gcp_subscription", "marketplace_subscription", "no_payment_expected", "partner"} + return []string{"aws_subscription", "azure_subscription", "bank_transfer", "credit_card", "disabled", "gcp_subscription", "no_payment_expected", "none", "partner"} } // organizationBillingGroupListOut OrganizationBillingGroupListResponse diff --git a/handler/project/project.go b/handler/project/project.go index 133a3bf..94c62a4 100644 --- a/handler/project/project.go +++ b/handler/project/project.go @@ -52,17 +52,17 @@ type Handler interface { // Required roles or permissions: project:audit_logs:read ProjectGetEventLogs(ctx context.Context, project string) ([]EventOut, error) - // ProjectInvite send project membership invitation + // Deprecated: ProjectInvite send project membership invitation // POST /v1/project/{project}/invite // https://api.aiven.io/doc/#tag/Project/operation/ProjectInvite ProjectInvite(ctx context.Context, project string, in *ProjectInviteIn) error - // ProjectInviteAccept confirm project invite + // Deprecated: ProjectInviteAccept confirm project invite // POST /v1/project/{project}/invite/{invite_verification_code} // https://api.aiven.io/doc/#tag/Project/operation/ProjectInviteAccept ProjectInviteAccept(ctx context.Context, project string, inviteVerificationCode string) (*ProjectInviteAcceptOut, error) - // ProjectInviteDelete delete an invitation to a project + // Deprecated: ProjectInviteDelete delete an invitation to a project // DELETE /v1/project/{project}/invite/{invited_email} // https://api.aiven.io/doc/#tag/Project/operation/ProjectInviteDelete ProjectInviteDelete(ctx context.Context, project string, invitedEmail string) error diff --git a/handler/projectbilling/projectbilling.go b/handler/projectbilling/projectbilling.go index ad3923e..3b607c0 100644 --- a/handler/projectbilling/projectbilling.go +++ b/handler/projectbilling/projectbilling.go @@ -28,7 +28,7 @@ type Handler interface { // Required roles or permissions: developer, operator, read_only ProjectCreditsList(ctx context.Context, project string) ([]CreditOut, error) - // ProjectInvoiceList list project invoices + // Deprecated: ProjectInvoiceList list project invoices // GET /v1/project/{project}/invoice // https://api.aiven.io/doc/#tag/Project_Billing/operation/ProjectInvoiceList // Required roles or permissions: developer, operator, read_only diff --git a/handler/service/service.go b/handler/service/service.go index f54b4b2..e48913a 100644 --- a/handler/service/service.go +++ b/handler/service/service.go @@ -1565,6 +1565,7 @@ type NodeStateOut struct { Name string `json:"name"` // Name of the service node ProgressUpdates []ProgressUpdateOut `json:"progress_updates,omitempty"` // Extra information regarding the progress for current state Role RoleType `json:"role,omitempty"` // Role of this node. Only returned for a subset of service types + Roles *string `json:"roles,omitempty"` // A role string indicating the node's roles in the OpenSearch cluster. Only populated for OpenSearch services using cluster plans. Format: first character is '*' (elected cluster manager) or '-' (not elected), followed by role letters: 'd' (data), 'i' (ingest), 'm' (cluster_manager eligible), 'c' (coordinating), 'L' (ML), 'D' (Dashboards). Example: '*mc' means elected cluster manager with cluster_manager and coordinating roles. Shard *ShardOut `json:"shard,omitempty"` // Shard of this node. Only returned for a subset of service types State NodeStateType `json:"state"` // Current state of the service node } @@ -2268,8 +2269,9 @@ type ServiceTaskCreateIn struct { CreateUserBackup *CreateUserBackupIn `json:"create_user_backup,omitempty"` // Payload to be used with create_user_backup DatasetImport *DatasetImportIn `json:"dataset_import,omitempty"` // Payload to be used with dataset_import MigrationCheck *MigrationCheckIn `json:"migration_check,omitempty"` // Payload to be used with migration_check - TargetVersion TargetVersionType `json:"target_version,omitempty"` // Target version used with upgrade_check + TargetVersion TargetVersionType `json:"target_version,omitempty"` // Deprecated! Use 'upgrade_check' field TaskType TaskType `json:"task_type"` // Service task type + UpgradeCheck *UpgradeCheckIn `json:"upgrade_check,omitempty"` // Payload to be used with upgrade_check } // ServiceTaskCreateOut Task info @@ -2624,6 +2626,12 @@ type UpdateOut struct { StartAfter *string `json:"start_after,omitempty"` // The earliest time the update will be automatically applied StartAt *time.Time `json:"start_at,omitempty"` // The time when the update will be automatically applied } + +// UpgradeCheckIn Payload to be used with upgrade_check +type UpgradeCheckIn struct { + Async *bool `json:"async,omitempty"` // Run task asynchronously and return immediately + TargetVersion TargetVersionType `json:"target_version"` // Target version used with upgrade_check +} type UsageType string const (