From 23d6e9768b7ed69a09cd4961d29e08ed52a5a1d2 Mon Sep 17 00:00:00 2001 From: GitHub Date: Wed, 4 Feb 2026 03:44:20 +0000 Subject: [PATCH] chore(update): bump openapi schema (2026-02-04) --- handler/account/account.go | 2 +- handler/billinggroup/billinggroup.go | 3 +-- .../organizationbilling.go | 22 +++++++++---------- handler/service/service.go | 10 ++++++++- 4 files changed, 22 insertions(+), 15 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..35cf566 100644 --- a/handler/billinggroup/billinggroup.go +++ b/handler/billinggroup/billinggroup.go @@ -647,7 +647,6 @@ const ( ServiceTypeKafkaMirrormaker ServiceType = "kafka_mirrormaker" ServiceTypeMysql ServiceType = "mysql" ServiceTypeOpensearch ServiceType = "opensearch" - ServiceTypeParca ServiceType = "parca" ServiceTypePg ServiceType = "pg" ServiceTypeSparkpool ServiceType = "sparkpool" ServiceTypeStresstester ServiceType = "stresstester" @@ -665,7 +664,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", "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..9eb741b 100644 --- a/handler/organizationbilling/organizationbilling.go +++ b/handler/organizationbilling/organizationbilling.go @@ -167,7 +167,7 @@ type OrganizationBillingGroupCreateIn struct { 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 + 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,6 +211,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 + PaymentMethod *PaymentMethodIn `json:"payment_method,omitempty"` // Payment method PaymentMethodId *string `json:"payment_method_id,omitempty"` // Payment method ID ShippingAddressId *string `json:"shipping_address_id,omitempty"` // Shipping address ID VatId *string `json:"vat_id,omitempty"` // VAT ID @@ -246,19 +247,18 @@ 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" + 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", "partner"} } // organizationBillingGroupListOut OrganizationBillingGroupListResponse 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 (